mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Docs: Remove @access notations from method DocBlocks in wp-includes/* classes.
Prior to about 2013, many class methods lacked even access modifiers which made the `@access` notations that much more useful. Now that we've gotten to a point where the codebase is more mature from a maintenance perspective and we can finally remove these notations. Notable exceptions to this change include standalone functions notated as private as well as some classes still considered to represent "private" APIs. See #41452. git-svn-id: https://develop.svn.wordpress.org/trunk@41162 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -30,7 +30,6 @@ final class WP_Site {
|
||||
* A numeric string, for compatibility reasons.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $blog_id;
|
||||
@@ -39,7 +38,6 @@ final class WP_Site {
|
||||
* Domain of the site.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $domain = '';
|
||||
@@ -48,7 +46,6 @@ final class WP_Site {
|
||||
* Path of the site.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $path = '';
|
||||
@@ -62,7 +59,6 @@ final class WP_Site {
|
||||
* A numeric string, for compatibility reasons.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $site_id = '0';
|
||||
@@ -71,7 +67,6 @@ final class WP_Site {
|
||||
* The date on which the site was created or registered.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var string Date in MySQL's datetime format.
|
||||
*/
|
||||
public $registered = '0000-00-00 00:00:00';
|
||||
@@ -80,7 +75,6 @@ final class WP_Site {
|
||||
* The date and time on which site settings were last updated.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var string Date in MySQL's datetime format.
|
||||
*/
|
||||
public $last_updated = '0000-00-00 00:00:00';
|
||||
@@ -91,7 +85,6 @@ final class WP_Site {
|
||||
* A numeric string, for compatibility reasons.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $public = '1';
|
||||
@@ -102,7 +95,6 @@ final class WP_Site {
|
||||
* A numeric string, for compatibility reasons.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $archived = '0';
|
||||
@@ -116,7 +108,6 @@ final class WP_Site {
|
||||
* A numeric string, for compatibility reasons.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $mature = '0';
|
||||
@@ -127,7 +118,6 @@ final class WP_Site {
|
||||
* A numeric string, for compatibility reasons.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $spam = '0';
|
||||
@@ -138,7 +128,6 @@ final class WP_Site {
|
||||
* A numeric string, for compatibility reasons.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $deleted = '0';
|
||||
@@ -149,7 +138,6 @@ final class WP_Site {
|
||||
* A numeric string, for compatibility reasons.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $lang_id = '0';
|
||||
@@ -159,7 +147,6 @@ final class WP_Site {
|
||||
*
|
||||
* @static
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
@@ -196,7 +183,6 @@ final class WP_Site {
|
||||
* default properties based on that information.
|
||||
*
|
||||
* @since 4.5.0
|
||||
* @access public
|
||||
*
|
||||
* @param WP_Site|object $site A site object.
|
||||
*/
|
||||
@@ -210,7 +196,6 @@ final class WP_Site {
|
||||
* Converts an object to array.
|
||||
*
|
||||
* @since 4.6.0
|
||||
* @access public
|
||||
*
|
||||
* @return array Object as array.
|
||||
*/
|
||||
@@ -225,7 +210,6 @@ final class WP_Site {
|
||||
* Allows access to extended site properties.
|
||||
*
|
||||
* @since 4.6.0
|
||||
* @access public
|
||||
*
|
||||
* @param string $key Property to get.
|
||||
* @return mixed Value of the property. Null if not available.
|
||||
@@ -261,7 +245,6 @@ final class WP_Site {
|
||||
* Checks for extended site properties.
|
||||
*
|
||||
* @since 4.6.0
|
||||
* @access public
|
||||
*
|
||||
* @param string $key Property to check if set.
|
||||
* @return bool Whether the property is set.
|
||||
@@ -299,7 +282,6 @@ final class WP_Site {
|
||||
* Allows current multisite naming conventions while setting properties.
|
||||
*
|
||||
* @since 4.6.0
|
||||
* @access public
|
||||
*
|
||||
* @param string $key Property to set.
|
||||
* @param mixed $value Value to assign to the property.
|
||||
@@ -323,7 +305,6 @@ final class WP_Site {
|
||||
* This method is used internally to lazy-load the extended properties of a site.
|
||||
*
|
||||
* @since 4.6.0
|
||||
* @access private
|
||||
*
|
||||
* @see WP_Site::__get()
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user