diff --git a/wp-includes/cache.php b/wp-includes/cache.php index 44178ff2a3..2daa0a7f23 100644 --- a/wp-includes/cache.php +++ b/wp-includes/cache.php @@ -291,7 +291,6 @@ class WP_Object_Cache { * Holds the cached objects. * * @since 2.0.0 - * @access private * @var array */ private $cache = array(); @@ -300,7 +299,6 @@ class WP_Object_Cache { * The amount of times the cache data was already stored in the cache. * * @since 2.5.0 - * @access public * @var int */ public $cache_hits = 0; @@ -309,7 +307,6 @@ class WP_Object_Cache { * Amount of times the cache did not have the request in cache. * * @since 2.0.0 - * @access public * @var int */ public $cache_misses = 0; @@ -318,7 +315,6 @@ class WP_Object_Cache { * List of global cache groups. * * @since 3.0.0 - * @access protected * @var array */ protected $global_groups = array(); @@ -327,7 +323,6 @@ class WP_Object_Cache { * The blog prefix to prepend to keys in non-global groups. * * @since 3.5.0 - * @access private * @var int */ private $blog_prefix; @@ -336,7 +331,6 @@ class WP_Object_Cache { * Holds the value of is_multisite(). * * @since 3.5.0 - * @access private * @var bool */ private $multisite; @@ -345,7 +339,6 @@ class WP_Object_Cache { * Makes private properties readable for backward compatibility. * * @since 4.0.0 - * @access public * * @param string $name Property to get. * @return mixed Property. @@ -358,7 +351,6 @@ class WP_Object_Cache { * Makes private properties settable for backward compatibility. * * @since 4.0.0 - * @access public * * @param string $name Property to set. * @param mixed $value Property value. @@ -372,7 +364,6 @@ class WP_Object_Cache { * Makes private properties checkable for backward compatibility. * * @since 4.0.0 - * @access public * * @param string $name Property to check if set. * @return bool Whether the property is set. @@ -385,7 +376,6 @@ class WP_Object_Cache { * Makes private properties un-settable for backward compatibility. * * @since 4.0.0 - * @access public * * @param string $name Property to unset. */ @@ -397,7 +387,6 @@ class WP_Object_Cache { * Adds data to the cache if it doesn't already exist. * * @since 2.0.0 - * @access public * * @uses WP_Object_Cache::_exists() Checks to see if the cache already has data. * @uses WP_Object_Cache::set() Sets the data after the checking the cache @@ -430,7 +419,6 @@ class WP_Object_Cache { * Sets the list of global cache groups. * * @since 3.0.0 - * @access public * * @param array $groups List of groups that are global. */ @@ -445,7 +433,6 @@ class WP_Object_Cache { * Decrements numeric cache item's value. * * @since 3.3.0 - * @access public * * @param int|string $key The cache key to decrement. * @param int $offset Optional. The amount by which to decrement the item's value. Default 1. @@ -481,7 +468,6 @@ class WP_Object_Cache { * If the cache key does not exist in the group, then nothing will happen. * * @since 2.0.0 - * @access public * * @param int|string $key What the contents in the cache are called. * @param string $group Optional. Where the cache contents are grouped. Default 'default'. @@ -506,7 +492,6 @@ class WP_Object_Cache { * Clears the object cache of all data. * * @since 2.0.0 - * @access public * * @return true Always returns true. */ @@ -526,7 +511,6 @@ class WP_Object_Cache { * On failure, the number of cache misses will be incremented. * * @since 2.0.0 - * @access public * * @param int|string $key What the contents in the cache are called. * @param string $group Optional. Where the cache contents are grouped. Default 'default'. @@ -561,7 +545,6 @@ class WP_Object_Cache { * Increments numeric cache item's value. * * @since 3.3.0 - * @access public * * @param int|string $key The cache key to increment * @param int $offset Optional. The amount by which to increment the item's value. Default 1. @@ -595,7 +578,6 @@ class WP_Object_Cache { * Replaces the contents in the cache, if contents already exist. * * @since 2.0.0 - * @access public * * @see WP_Object_Cache::set() * @@ -623,7 +605,6 @@ class WP_Object_Cache { * Resets cache keys. * * @since 3.0.0 - * @access public * * @deprecated 3.5.0 Use switch_to_blog() * @see switch_to_blog() @@ -651,7 +632,6 @@ class WP_Object_Cache { * more for cache plugins which use files. * * @since 2.0.0 - * @access public * * @param int|string $key What to call the contents in the cache. * @param mixed $data The contents to store in the cache. @@ -680,7 +660,6 @@ class WP_Object_Cache { * key and the data. * * @since 2.0.0 - * @access public */ public function stats() { echo "

"; @@ -700,7 +679,6 @@ class WP_Object_Cache { * This changes the blog ID used to create keys in blog specific groups. * * @since 3.5.0 - * @access public * * @param int $blog_id Blog ID. */ @@ -713,7 +691,6 @@ class WP_Object_Cache { * Serves as a utility function to determine whether a key exists in the cache. * * @since 3.4.0 - * @access protected * * @param int|string $key Cache key to check for existence. * @param string $group Cache group for the key existence check. diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index 786b06d647..31baadacb6 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -98,7 +98,6 @@ class WP_Http { * Please note: The only URI that are supported in the HTTP Transport implementation * are the HTTP and HTTPS protocols. * - * @access public * @since 2.7.0 * * @param string $url The request URL. @@ -428,7 +427,6 @@ class WP_Http { * Normalizes cookies for using in Requests. * * @since 4.6.0 - * @access public * @static * * @param array $cookies List of cookies to send with the request. @@ -456,7 +454,6 @@ class WP_Http { * specification for compatibility purposes. * * @since 4.6.0 - * @access public * @static * * @param string $location URL to redirect to. @@ -489,7 +486,6 @@ class WP_Http { * Tests which transports are capable of supporting the request. * * @since 3.2.0 - * @access public * * @param array $args Request arguments * @param string $url URL to Request @@ -539,7 +535,6 @@ class WP_Http { * @since 3.2.0 * * @static - * @access private * * @param string $url URL to Request * @param array $args Request arguments @@ -581,7 +576,6 @@ class WP_Http { * * Used for sending data that is expected to be in the body. * - * @access public * @since 2.7.0 * * @param string $url The request URL. @@ -599,7 +593,6 @@ class WP_Http { * * Used for sending data that is expected to be in the body. * - * @access public * @since 2.7.0 * * @param string $url The request URL. @@ -617,7 +610,6 @@ class WP_Http { * * Used for sending data that is expected to be in the body. * - * @access public * @since 2.7.0 * * @param string $url The request URL. @@ -633,7 +625,6 @@ class WP_Http { /** * Parses the responses and splits the parts into headers and body. * - * @access public * @static * @since 2.7.0 * @@ -652,7 +643,6 @@ class WP_Http { * If an array is given then it is assumed to be raw header data with numeric keys with the * headers as the values. No headers must be passed that were already processed. * - * @access public * @static * @since 2.7.0 * @@ -730,7 +720,6 @@ class WP_Http { * which are each parsed into strings and added to the Cookie: header (within the arguments array). * Edits the array by reference. * - * @access public * @since 2.8.0 * @static * @@ -761,7 +750,6 @@ class WP_Http { * * @link https://tools.ietf.org/html/rfc2616#section-19.4.6 Process for chunked decoding. * - * @access public * @since 2.7.0 * @static * @@ -811,7 +799,6 @@ class WP_Http { * are supported, eg *.wordpress.org will allow for all subdomains of wordpress.org to be contacted. * * @since 2.8.0 - * @access public * @link https://core.trac.wordpress.org/ticket/8927 Allow preventing external requests. * @link https://core.trac.wordpress.org/ticket/14636 Allow wildcard domains in WP_ACCESSIBLE_HOSTS * @@ -871,7 +858,6 @@ class WP_Http { /** * Used as a wrapper for PHP's parse_url() function that handles edgecases in < PHP 5.4.7. * - * @access protected * @deprecated 4.4.0 Use wp_parse_url() * @see wp_parse_url() * @@ -892,7 +878,6 @@ class WP_Http { * @since 3.4.0 * * @static - * @access public * * @param string $maybe_relative_path The URL which might be relative * @param string $url The URL which $maybe_relative_path is relative to @@ -963,7 +948,6 @@ class WP_Http { * Handles HTTP Redirects and follows them if appropriate. * * @since 3.7.0 - * @access public * @static * * @param string $url The URL which was requested. @@ -1020,7 +1004,6 @@ class WP_Http { * @link http://home.deds.nl/~aeron/regex/ for IPv6 regex * * @since 3.7.0 - * @access public * @static * * @param string $maybe_ip A suspected IP address diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index 5462bec63a..616a844186 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -22,7 +22,6 @@ class WP_oEmbed { * A list of oEmbed providers. * * @since 2.9.0 - * @access public * @var array */ public $providers = array(); @@ -31,7 +30,6 @@ class WP_oEmbed { * A list of an early oEmbed providers. * * @since 4.0.0 - * @access public * @static * @var array */ @@ -41,7 +39,6 @@ class WP_oEmbed { * A list of private/protected methods, used for backward compatibility. * * @since 4.2.0 - * @access private * @var array */ private $compat_methods = array( '_fetch_with_format', '_parse_json', '_parse_xml', '_parse_xml_body' ); @@ -50,7 +47,6 @@ class WP_oEmbed { * Constructor. * * @since 2.9.0 - * @access public */ public function __construct() { $host = urlencode( home_url() ); @@ -211,7 +207,6 @@ class WP_oEmbed { * Exposes private/protected methods for backward compatibility. * * @since 4.0.0 - * @access public * * @param callable $name Method to call. * @param array $arguments Arguments to pass when calling. @@ -228,7 +223,6 @@ class WP_oEmbed { * Takes a URL and returns the corresponding oEmbed provider's URL, if there is one. * * @since 4.0.0 - * @access public * * @see WP_oEmbed::discover() * @@ -275,7 +269,6 @@ class WP_oEmbed { * * @static * @since 4.0.0 - * @access public * * @see wp_oembed_add_provider() * @@ -302,7 +295,6 @@ class WP_oEmbed { * The just-in-time removal is for the benefit of the {@see 'oembed_providers'} filter. * * @since 4.0.0 - * @access public * @static * * @see wp_oembed_remove_provider() @@ -324,7 +316,6 @@ class WP_oEmbed { * @see WP_oEmbed::fetch() * * @since 4.8.0 - * @access public * * @param string $url The URL to the content that should be attempted to be embedded. * @param array|string $args Optional. Arguments, usually passed from a shortcode. Default empty. @@ -355,7 +346,6 @@ class WP_oEmbed { * @see WP_oEmbed::data2html() * * @since 2.9.0 - * @access public * * @param string $url The URL to the content that should be attempted to be embedded. * @param array|string $args Optional. Arguments, usually passed from a shortcode. Default empty. @@ -405,7 +395,6 @@ class WP_oEmbed { * Attempts to discover link tags at the given URL for an oEmbed provider. * * @since 2.9.0 - * @access public * * @param string $url The URL that should be inspected for discovery `` tags. * @return false|string False on failure, otherwise the oEmbed provider URL. @@ -489,7 +478,6 @@ class WP_oEmbed { * Connects to a oEmbed provider and returns the result. * * @since 2.9.0 - * @access public * * @param string $provider The URL to the oEmbed provider. * @param string $url The URL to the content that is desired to be embedded. @@ -527,7 +515,6 @@ class WP_oEmbed { * Fetches result from an oEmbed provider for a specific format and complete provider URL * * @since 3.0.0 - * @access private * * @param string $provider_url_with_args URL to the provider with full arguments list (url, maxheight, etc.) * @param string $format Format to use @@ -552,7 +539,6 @@ class WP_oEmbed { * Parses a json response body. * * @since 3.0.0 - * @access private * * @param string $response_body * @return object|false @@ -566,7 +552,6 @@ class WP_oEmbed { * Parses an XML response body. * * @since 3.0.0 - * @access private * * @param string $response_body * @return object|false @@ -590,7 +575,6 @@ class WP_oEmbed { * Serves as a helper function for parsing an XML response body. * * @since 3.6.0 - * @access private * * @param string $response_body * @return stdClass|false @@ -628,7 +612,6 @@ class WP_oEmbed { * Converts a data object from WP_oEmbed::fetch() and returns the HTML. * * @since 2.9.0 - * @access public * * @param object $data A data object result from an oEmbed provider. * @param string $url The URL to the content that is desired to be embedded. @@ -685,7 +668,6 @@ class WP_oEmbed { * * @since 2.9.0 as strip_scribd_newlines() * @since 3.0.0 - * @access public * * @param string $html Existing HTML. * @param object $data Data object from WP_oEmbed::data2html() diff --git a/wp-includes/class-walker-category-dropdown.php b/wp-includes/class-walker-category-dropdown.php index 7d89dc8b97..cd167129d6 100644 --- a/wp-includes/class-walker-category-dropdown.php +++ b/wp-includes/class-walker-category-dropdown.php @@ -20,7 +20,6 @@ class Walker_CategoryDropdown extends Walker { * What the class handles. * * @since 2.1.0 - * @access private * @var string * * @see Walker::$tree_type @@ -31,7 +30,6 @@ class Walker_CategoryDropdown extends Walker { * Database fields to use. * * @since 2.1.0 - * @access public * @todo Decouple this * @var array * @@ -43,7 +41,6 @@ class Walker_CategoryDropdown extends Walker { * Starts the element output. * * @since 2.1.0 - * @access public * * @see Walker::start_el() * diff --git a/wp-includes/class-walker-category.php b/wp-includes/class-walker-category.php index 01b7264fa8..5281919e84 100644 --- a/wp-includes/class-walker-category.php +++ b/wp-includes/class-walker-category.php @@ -20,7 +20,6 @@ class Walker_Category extends Walker { * What the class handles. * * @since 2.1.0 - * @access public * @var string * * @see Walker::$tree_type @@ -31,7 +30,6 @@ class Walker_Category extends Walker { * Database fields to use. * * @since 2.1.0 - * @access public * @var array * * @see Walker::$db_fields @@ -43,7 +41,6 @@ class Walker_Category extends Walker { * Starts the list before the elements are added. * * @since 2.1.0 - * @access public * * @see Walker::start_lvl() * @@ -64,7 +61,6 @@ class Walker_Category extends Walker { * Ends the list of after the elements are added. * * @since 2.1.0 - * @access public * * @see Walker::end_lvl() * @@ -85,7 +81,6 @@ class Walker_Category extends Walker { * Starts the element output. * * @since 2.1.0 - * @access public * * @see Walker::start_el() * @@ -215,7 +210,6 @@ class Walker_Category extends Walker { * Ends the element output, if needed. * * @since 2.1.0 - * @access public * * @see Walker::end_el() * diff --git a/wp-includes/class-walker-comment.php b/wp-includes/class-walker-comment.php index 8383740b43..d1b3d399ee 100644 --- a/wp-includes/class-walker-comment.php +++ b/wp-includes/class-walker-comment.php @@ -20,7 +20,6 @@ class Walker_Comment extends Walker { * What the class handles. * * @since 2.7.0 - * @access public * @var string * * @see Walker::$tree_type @@ -31,7 +30,6 @@ class Walker_Comment extends Walker { * Database fields to use. * * @since 2.7.0 - * @access public * @var array * * @see Walker::$db_fields @@ -43,7 +41,6 @@ class Walker_Comment extends Walker { * Starts the list before the elements are added. * * @since 2.7.0 - * @access public * * @see Walker::start_lvl() * @global int $comment_depth @@ -72,7 +69,6 @@ class Walker_Comment extends Walker { * Ends the list of items after the elements are added. * * @since 2.7.0 - * @access public * * @see Walker::end_lvl() * @global int $comment_depth @@ -118,7 +114,6 @@ class Walker_Comment extends Walker { * 2.2 * * @since 2.7.0 - * @access public * * @see Walker::display_element() * @see wp_list_comments() @@ -157,7 +152,6 @@ class Walker_Comment extends Walker { * Starts the element output. * * @since 2.7.0 - * @access public * * @see Walker::start_el() * @see wp_list_comments() @@ -201,7 +195,6 @@ class Walker_Comment extends Walker { * Ends the element output, if needed. * * @since 2.7.0 - * @access public * * @see Walker::end_el() * @see wp_list_comments() @@ -228,7 +221,6 @@ class Walker_Comment extends Walker { * Outputs a pingback comment. * * @since 3.6.0 - * @access protected * * @see wp_list_comments() * @@ -250,7 +242,6 @@ class Walker_Comment extends Walker { * Outputs a single comment. * * @since 3.6.0 - * @access protected * * @see wp_list_comments() * @@ -314,7 +305,6 @@ class Walker_Comment extends Walker { * Outputs a comment in the HTML5 format. * * @since 3.6.0 - * @access protected * * @see wp_list_comments() * diff --git a/wp-includes/class-walker-nav-menu.php b/wp-includes/class-walker-nav-menu.php index 83dbfed45c..da6f3599b7 100644 --- a/wp-includes/class-walker-nav-menu.php +++ b/wp-includes/class-walker-nav-menu.php @@ -19,7 +19,6 @@ class Walker_Nav_Menu extends Walker { * What the class handles. * * @since 3.0.0 - * @access public * @var string * * @see Walker::$tree_type @@ -30,7 +29,6 @@ class Walker_Nav_Menu extends Walker { * Database fields to use. * * @since 3.0.0 - * @access public * @todo Decouple this. * @var array * diff --git a/wp-includes/class-walker-page-dropdown.php b/wp-includes/class-walker-page-dropdown.php index 047098b25b..7d2b8523fb 100644 --- a/wp-includes/class-walker-page-dropdown.php +++ b/wp-includes/class-walker-page-dropdown.php @@ -20,7 +20,6 @@ class Walker_PageDropdown extends Walker { * What the class handles. * * @since 2.1.0 - * @access public * @var string * * @see Walker::$tree_type @@ -31,7 +30,6 @@ class Walker_PageDropdown extends Walker { * Database fields to use. * * @since 2.1.0 - * @access public * @var array * * @see Walker::$db_fields @@ -43,7 +41,6 @@ class Walker_PageDropdown extends Walker { * Starts the element output. * * @since 2.1.0 - * @access public * * @see Walker::start_el() * diff --git a/wp-includes/class-walker-page.php b/wp-includes/class-walker-page.php index 8bec66f417..cb2ba59c40 100644 --- a/wp-includes/class-walker-page.php +++ b/wp-includes/class-walker-page.php @@ -20,7 +20,6 @@ class Walker_Page extends Walker { * What the class handles. * * @since 2.1.0 - * @access public * @var string * * @see Walker::$tree_type @@ -31,7 +30,6 @@ class Walker_Page extends Walker { * Database fields to use. * * @since 2.1.0 - * @access private * @var array * * @see Walker::$db_fields @@ -43,7 +41,6 @@ class Walker_Page extends Walker { * Outputs the beginning of the current level in the tree before elements are output. * * @since 2.1.0 - * @access public * * @see Walker::start_lvl() * @@ -68,7 +65,6 @@ class Walker_Page extends Walker { * Outputs the end of the current level in the tree after elements are output. * * @since 2.1.0 - * @access public * * @see Walker::end_lvl() * @@ -94,7 +90,6 @@ class Walker_Page extends Walker { * * @see Walker::start_el() * @since 2.1.0 - * @access public * * @param string $output Used to append additional content. Passed by reference. * @param WP_Post $page Page data object. @@ -214,7 +209,6 @@ class Walker_Page extends Walker { * Outputs the end of the current element in the tree. * * @since 2.1.0 - * @access public * * @see Walker::end_el() * diff --git a/wp-includes/class-wp-admin-bar.php b/wp-includes/class-wp-admin-bar.php index 7bb4881ece..734a04827d 100644 --- a/wp-includes/class-wp-admin-bar.php +++ b/wp-includes/class-wp-admin-bar.php @@ -33,7 +33,6 @@ class WP_Admin_Bar { } /** - * @access public */ public function initialize() { $this->user = new stdClass; @@ -100,7 +99,6 @@ class WP_Admin_Bar { * * @since 3.1.0 * @since 4.5.0 Added the ability to pass 'lang' and 'dir' meta data. - * @access public * * @param array $args { * Arguments for adding a node. @@ -258,7 +256,6 @@ class WP_Admin_Bar { } /** - * @access public */ public function render() { $root = $this->_bind(); @@ -572,7 +569,6 @@ class WP_Admin_Bar { } /** - * @access public */ public function add_menus() { // User related, aligned right. diff --git a/wp-includes/class-wp-ajax-response.php b/wp-includes/class-wp-ajax-response.php index a86d8dd532..7123d1076f 100644 --- a/wp-includes/class-wp-ajax-response.php +++ b/wp-includes/class-wp-ajax-response.php @@ -39,7 +39,6 @@ class WP_Ajax_Response { * * * @since 2.1.0 - * @access public * * @param string|array $args { * Optional. An array or string of XML response arguments. diff --git a/wp-includes/class-wp-comment-query.php b/wp-includes/class-wp-comment-query.php index df79c2a7a5..4365e1753f 100644 --- a/wp-includes/class-wp-comment-query.php +++ b/wp-includes/class-wp-comment-query.php @@ -20,7 +20,6 @@ class WP_Comment_Query { * SQL for database query. * * @since 4.0.1 - * @access public * @var string */ public $request; @@ -29,7 +28,6 @@ class WP_Comment_Query { * Metadata query container * * @since 3.5.0 - * @access public * @var object WP_Meta_Query */ public $meta_query = false; @@ -38,7 +36,6 @@ class WP_Comment_Query { * Metadata query clauses. * * @since 4.4.0 - * @access protected * @var array */ protected $meta_query_clauses; @@ -47,7 +44,6 @@ class WP_Comment_Query { * SQL query clauses. * * @since 4.4.0 - * @access protected * @var array */ protected $sql_clauses = array( @@ -65,7 +61,6 @@ class WP_Comment_Query { * Stored after the {@see 'comments_clauses'} filter is run on the compiled WHERE sub-clauses. * * @since 4.4.2 - * @access protected * @var string */ protected $filtered_where_clause; @@ -74,7 +69,6 @@ class WP_Comment_Query { * Date query container * * @since 3.7.0 - * @access public * @var object WP_Date_Query */ public $date_query = false; @@ -83,7 +77,6 @@ class WP_Comment_Query { * Query vars set by the user. * * @since 3.1.0 - * @access public * @var array */ public $query_vars; @@ -92,7 +85,6 @@ class WP_Comment_Query { * Default values for query vars. * * @since 4.2.0 - * @access public * @var array */ public $query_var_defaults; @@ -101,7 +93,6 @@ class WP_Comment_Query { * List of comments located by the query. * * @since 4.0.0 - * @access public * @var array */ public $comments; @@ -110,7 +101,6 @@ class WP_Comment_Query { * The amount of found comments for the current query. * * @since 4.4.0 - * @access public * @var int */ public $found_comments = 0; @@ -119,7 +109,6 @@ class WP_Comment_Query { * The number of pages. * * @since 4.4.0 - * @access public * @var int */ public $max_num_pages = 0; @@ -128,7 +117,6 @@ class WP_Comment_Query { * Make private/protected methods readable for backward compatibility. * * @since 4.0.0 - * @access public * * @param callable $name Method to call. * @param array $arguments Arguments to pass when calling. @@ -152,7 +140,6 @@ class WP_Comment_Query { * `$hierarchical`, and `$update_comment_post_cache` were added. * @since 4.5.0 Introduced the `$author_url` argument. * @since 4.6.0 Introduced the `$cache_domain` argument. - * @access public * * @param string|array $query { * Optional. Array or query string of comment query parameters. Default empty. @@ -317,7 +304,6 @@ class WP_Comment_Query { * * @since 4.2.0 Extracted from WP_Comment_Query::query(). * - * @access public * * @param string|array $query WP_Comment_Query arguments. See WP_Comment_Query::__construct() */ @@ -347,7 +333,6 @@ class WP_Comment_Query { * 'post__not_in', 'include_unapproved', 'type__in', and 'type__not_in' * arguments to $query_vars. * @since 4.2.0 Moved parsing to WP_Comment_Query::parse_query(). - * @access public * * @param string|array $query Array or URL query string of parameters. * @return array|int List of comments, or number of comments when 'count' is passed as a query var. @@ -361,7 +346,6 @@ class WP_Comment_Query { * Get a list of comments matching the query vars. * * @since 4.2.0 - * @access public * * @global wpdb $wpdb WordPress database abstraction object. * @@ -476,7 +460,6 @@ class WP_Comment_Query { * Used internally to get a list of comment IDs matching the query vars. * * @since 4.4.0 - * @access protected * * @global wpdb $wpdb WordPress database abstraction object. */ @@ -906,7 +889,6 @@ class WP_Comment_Query { * query if the limit clause was used. * * @since 4.6.0 - * @access private * * @global wpdb $wpdb WordPress database abstraction object. */ @@ -935,8 +917,7 @@ class WP_Comment_Query { * the descendant trees for all matched top-level comments. * * @since 4.4.0 - * @access protected - * + * * @global wpdb $wpdb WordPress database abstraction object. * * @param array $comments Array of top-level comments whose descendants should be filled in. @@ -1050,7 +1031,6 @@ class WP_Comment_Query { * Used internally to generate an SQL string for searching across multiple columns * * @since 3.1.0 - * @access protected * * @global wpdb $wpdb WordPress database abstraction object. * @@ -1075,7 +1055,6 @@ class WP_Comment_Query { * Parse and sanitize 'orderby' keys passed to the comment query. * * @since 4.2.0 - * @access protected * * @global wpdb $wpdb WordPress database abstraction object. * @@ -1139,7 +1118,6 @@ class WP_Comment_Query { * Parse an 'order' query variable and cast it to ASC or DESC as necessary. * * @since 4.2.0 - * @access protected * * @param string $order The 'order' query variable. * @return string The sanitized 'order' query variable. diff --git a/wp-includes/class-wp-comment.php b/wp-includes/class-wp-comment.php index 0e9f88a352..d3b96a32dc 100644 --- a/wp-includes/class-wp-comment.php +++ b/wp-includes/class-wp-comment.php @@ -18,7 +18,6 @@ final class WP_Comment { * Comment ID. * * @since 4.4.0 - * @access public * @var int */ public $comment_ID; @@ -27,7 +26,6 @@ final class WP_Comment { * ID of the post the comment is associated with. * * @since 4.4.0 - * @access public * @var int */ public $comment_post_ID = 0; @@ -36,7 +34,6 @@ final class WP_Comment { * Comment author name. * * @since 4.4.0 - * @access public * @var string */ public $comment_author = ''; @@ -45,7 +42,6 @@ final class WP_Comment { * Comment author email address. * * @since 4.4.0 - * @access public * @var string */ public $comment_author_email = ''; @@ -54,7 +50,6 @@ final class WP_Comment { * Comment author URL. * * @since 4.4.0 - * @access public * @var string */ public $comment_author_url = ''; @@ -63,7 +58,6 @@ final class WP_Comment { * Comment author IP address (IPv4 format). * * @since 4.4.0 - * @access public * @var string */ public $comment_author_IP = ''; @@ -72,7 +66,6 @@ final class WP_Comment { * Comment date in YYYY-MM-DD HH:MM:SS format. * * @since 4.4.0 - * @access public * @var string */ public $comment_date = '0000-00-00 00:00:00'; @@ -81,7 +74,6 @@ final class WP_Comment { * Comment GMT date in YYYY-MM-DD HH::MM:SS format. * * @since 4.4.0 - * @access public * @var string */ public $comment_date_gmt = '0000-00-00 00:00:00'; @@ -90,7 +82,6 @@ final class WP_Comment { * Comment content. * * @since 4.4.0 - * @access public * @var string */ public $comment_content; @@ -99,7 +90,6 @@ final class WP_Comment { * Comment karma count. * * @since 4.4.0 - * @access public * @var int */ public $comment_karma = 0; @@ -108,7 +98,6 @@ final class WP_Comment { * Comment approval status. * * @since 4.4.0 - * @access public * @var string */ public $comment_approved = '1'; @@ -117,7 +106,6 @@ final class WP_Comment { * Comment author HTTP user agent. * * @since 4.4.0 - * @access public * @var string */ public $comment_agent = ''; @@ -126,7 +114,6 @@ final class WP_Comment { * Comment type. * * @since 4.4.0 - * @access public * @var string */ public $comment_type = ''; @@ -135,7 +122,6 @@ final class WP_Comment { * Parent comment ID. * * @since 4.4.0 - * @access public * @var int */ public $comment_parent = 0; @@ -144,7 +130,6 @@ final class WP_Comment { * Comment author ID. * * @since 4.4.0 - * @access public * @var int */ public $user_id = 0; @@ -153,7 +138,6 @@ final class WP_Comment { * Comment children. * * @since 4.4.0 - * @access protected * @var array */ protected $children; @@ -162,7 +146,6 @@ final class WP_Comment { * Whether children have been populated for this comment object. * * @since 4.4.0 - * @access protected * @var bool */ protected $populated_children = false; @@ -171,7 +154,6 @@ final class WP_Comment { * Post fields. * * @since 4.4.0 - * @access protected * @var array */ protected $post_fields = array( 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_excerpt', 'post_status', 'comment_status', 'ping_status', 'post_name', 'to_ping', 'pinged', 'post_modified', 'post_modified_gmt', 'post_content_filtered', 'post_parent', 'guid', 'menu_order', 'post_type', 'post_mime_type', 'comment_count' ); @@ -180,7 +162,6 @@ final class WP_Comment { * Retrieves a WP_Comment instance. * * @since 4.4.0 - * @access public * @static * * @global wpdb $wpdb WordPress database abstraction object. @@ -217,7 +198,6 @@ final class WP_Comment { * Populates properties with object vars. * * @since 4.4.0 - * @access public * * @param WP_Comment $comment Comment object. */ @@ -231,7 +211,6 @@ final class WP_Comment { * Convert object to array. * * @since 4.4.0 - * @access public * * @return array Object as array. */ @@ -243,7 +222,6 @@ final class WP_Comment { * Get the children of a comment. * * @since 4.4.0 - * @access public * * @param array $args { * Array of arguments used to pass to get_comments() and determine format. @@ -318,7 +296,6 @@ final class WP_Comment { * Used by `WP_Comment_Query` when bulk-filling descendants. * * @since 4.4.0 - * @access public * * @param WP_Comment $child Child comment. */ @@ -330,7 +307,6 @@ final class WP_Comment { * Get a child comment by ID. * * @since 4.4.0 - * @access public * * @param int $child_id ID of the child. * @return WP_Comment|bool Returns the comment object if found, otherwise false. @@ -363,7 +339,6 @@ final class WP_Comment { * If `$name` matches a post field, the comment post will be loaded and the post's value checked. * * @since 4.4.0 - * @access public * * @param string $name Property name. * @return bool @@ -381,7 +356,6 @@ final class WP_Comment { * If `$name` matches a post field, the comment post will be loaded and the post's value returned. * * @since 4.4.0 - * @access public * * @param string $name * @return mixed diff --git a/wp-includes/class-wp-customize-control.php b/wp-includes/class-wp-customize-control.php index 267989da5e..b9c83c7575 100644 --- a/wp-includes/class-wp-customize-control.php +++ b/wp-includes/class-wp-customize-control.php @@ -22,7 +22,6 @@ class WP_Customize_Control { * @since 4.1.0 * * @static - * @access protected * @var int */ protected static $instance_count = 0; @@ -31,7 +30,6 @@ class WP_Customize_Control { * Order in which this instance was created in relation to other instances. * * @since 4.1.0 - * @access public * @var int */ public $instance_number; @@ -40,7 +38,6 @@ class WP_Customize_Control { * Customizer manager. * * @since 3.4.0 - * @access public * @var WP_Customize_Manager */ public $manager; @@ -49,7 +46,6 @@ class WP_Customize_Control { * Control ID. * * @since 3.4.0 - * @access public * @var string */ public $id; @@ -58,7 +54,6 @@ class WP_Customize_Control { * All settings tied to the control. * * @since 3.4.0 - * @access public * @var array */ public $settings; @@ -67,7 +62,6 @@ class WP_Customize_Control { * The primary setting for the control (if there is one). * * @since 3.4.0 - * @access public * @var string */ public $setting = 'default'; @@ -79,7 +73,6 @@ class WP_Customize_Control { * of the associated `$settings`. * * @since 4.5.0 - * @access public * @var string */ public $capability; @@ -88,7 +81,6 @@ class WP_Customize_Control { * Order priority to load the control in Customizer. * * @since 3.4.0 - * @access public * @var int */ public $priority = 10; @@ -97,7 +89,6 @@ class WP_Customize_Control { * Section the control belongs to. * * @since 3.4.0 - * @access public * @var string */ public $section = ''; @@ -106,7 +97,6 @@ class WP_Customize_Control { * Label for the control. * * @since 3.4.0 - * @access public * @var string */ public $label = ''; @@ -115,7 +105,6 @@ class WP_Customize_Control { * Description for the control. * * @since 4.0.0 - * @access public * @var string */ public $description = ''; @@ -124,7 +113,6 @@ class WP_Customize_Control { * List of choices for 'radio' or 'select' type controls, where values are the keys, and labels are the values. * * @since 3.4.0 - * @access public * @var array */ public $choices = array(); @@ -135,7 +123,6 @@ class WP_Customize_Control { * Not used for 'checkbox', 'radio', 'select', 'textarea', or 'dropdown-pages' control types. * * @since 4.0.0 - * @access public * @var array */ public $input_attrs = array(); @@ -144,7 +131,6 @@ class WP_Customize_Control { * Show UI for adding new content, currently only used for the dropdown-pages control. * * @since 4.7.0 - * @access public * @var bool */ public $allow_addition = false; @@ -152,7 +138,6 @@ class WP_Customize_Control { /** * @deprecated It is better to just call the json() method * @since 3.4.0 - * @access public * @var array */ public $json = array(); @@ -161,7 +146,6 @@ class WP_Customize_Control { * Control's Type. * * @since 3.4.0 - * @access public * @var string */ public $type = 'text'; @@ -170,7 +154,6 @@ class WP_Customize_Control { * Callback. * * @since 4.0.0 - * @access public * * @see WP_Customize_Control::active() * diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php index 9330d2789b..b26833beb7 100644 --- a/wp-includes/class-wp-customize-manager.php +++ b/wp-includes/class-wp-customize-manager.php @@ -25,7 +25,6 @@ final class WP_Customize_Manager { * An instance of the theme being previewed. * * @since 3.4.0 - * @access protected * @var WP_Theme */ protected $theme; @@ -34,7 +33,6 @@ final class WP_Customize_Manager { * The directory name of the previously active theme (within the theme_root). * * @since 3.4.0 - * @access protected * @var string */ protected $original_stylesheet; @@ -43,7 +41,6 @@ final class WP_Customize_Manager { * Whether this is a Customizer pageload. * * @since 3.4.0 - * @access protected * @var bool */ protected $previewing = false; @@ -52,7 +49,6 @@ final class WP_Customize_Manager { * Methods and properties dealing with managing widgets in the Customizer. * * @since 3.9.0 - * @access public * @var WP_Customize_Widgets */ public $widgets; @@ -61,7 +57,6 @@ final class WP_Customize_Manager { * Methods and properties dealing with managing nav menus in the Customizer. * * @since 4.3.0 - * @access public * @var WP_Customize_Nav_Menus */ public $nav_menus; @@ -70,7 +65,6 @@ final class WP_Customize_Manager { * Methods and properties dealing with selective refresh in the Customizer preview. * * @since 4.5.0 - * @access public * @var WP_Customize_Selective_Refresh */ public $selective_refresh; @@ -79,7 +73,6 @@ final class WP_Customize_Manager { * Registered instances of WP_Customize_Setting. * * @since 3.4.0 - * @access protected * @var array */ protected $settings = array(); @@ -88,7 +81,6 @@ final class WP_Customize_Manager { * Sorted top-level instances of WP_Customize_Panel and WP_Customize_Section. * * @since 4.0.0 - * @access protected * @var array */ protected $containers = array(); @@ -97,7 +89,6 @@ final class WP_Customize_Manager { * Registered instances of WP_Customize_Panel. * * @since 4.0.0 - * @access protected * @var array */ protected $panels = array(); @@ -106,7 +97,6 @@ final class WP_Customize_Manager { * List of core components. * * @since 4.5.0 - * @access protected * @var array */ protected $components = array( 'widgets', 'nav_menus' ); @@ -115,7 +105,6 @@ final class WP_Customize_Manager { * Registered instances of WP_Customize_Section. * * @since 3.4.0 - * @access protected * @var array */ protected $sections = array(); @@ -124,7 +113,6 @@ final class WP_Customize_Manager { * Registered instances of WP_Customize_Control. * * @since 3.4.0 - * @access protected * @var array */ protected $controls = array(); @@ -133,7 +121,6 @@ final class WP_Customize_Manager { * Panel types that may be rendered from JS templates. * * @since 4.3.0 - * @access protected * @var array */ protected $registered_panel_types = array(); @@ -142,7 +129,6 @@ final class WP_Customize_Manager { * Section types that may be rendered from JS templates. * * @since 4.3.0 - * @access protected * @var array */ protected $registered_section_types = array(); @@ -151,7 +137,6 @@ final class WP_Customize_Manager { * Control types that may be rendered from JS templates. * * @since 4.1.0 - * @access protected * @var array */ protected $registered_control_types = array(); @@ -160,7 +145,6 @@ final class WP_Customize_Manager { * Initial URL being previewed. * * @since 4.4.0 - * @access protected * @var string */ protected $preview_url; @@ -169,7 +153,6 @@ final class WP_Customize_Manager { * URL to link the user to when closing the Customizer. * * @since 4.4.0 - * @access protected * @var string */ protected $return_url; @@ -178,7 +161,6 @@ final class WP_Customize_Manager { * Mapping of 'panel', 'section', 'control' to the ID which should be autofocused. * * @since 4.4.0 - * @access protected * @var array */ protected $autofocus = array(); @@ -187,7 +169,6 @@ final class WP_Customize_Manager { * Messenger channel. * * @since 4.7.0 - * @access protected * @var string */ protected $messenger_channel; @@ -203,7 +184,6 @@ final class WP_Customize_Manager { * Changeset UUID. * * @since 4.7.0 - * @access private * @var string */ private $_changeset_uuid; @@ -212,7 +192,6 @@ final class WP_Customize_Manager { * Changeset post ID. * * @since 4.7.0 - * @access private * @var int|false */ private $_changeset_post_id; @@ -221,7 +200,6 @@ final class WP_Customize_Manager { * Changeset data loaded from a customize_changeset post. * * @since 4.7.0 - * @access private * @var array */ private $_changeset_data; @@ -373,7 +351,6 @@ final class WP_Customize_Manager { * * @since 3.4.0 * @since 4.2.0 Added `$action` param. - * @access public * * @param string|null $action Whether the supplied Ajax action is being run. * @return bool True if it's an Ajax request, false otherwise. @@ -648,7 +625,6 @@ final class WP_Customize_Manager { * Get the changeset UUID. * * @since 4.7.0 - * @access public * * @return string UUID. */ @@ -718,7 +694,6 @@ final class WP_Customize_Manager { * Get the registered panels. * * @since 4.0.0 - * @access public * * @return array Panels. */ @@ -798,7 +773,6 @@ final class WP_Customize_Manager { * Find the changeset post ID for a given changeset UUID. * * @since 4.7.0 - * @access public * * @param string $uuid Changeset UUID. * @return int|null Returns post ID on success and null on failure. @@ -835,7 +809,6 @@ final class WP_Customize_Manager { * Get the changeset post id for the loaded changeset. * * @since 4.7.0 - * @access public * * @return int|null Post ID on success or null if there is no post yet saved. */ @@ -857,7 +830,6 @@ final class WP_Customize_Manager { * Get the data stored in a changeset post. * * @since 4.7.0 - * @access protected * * @param int $post_id Changeset post ID. * @return array|WP_Error Changeset data or WP_Error on error. @@ -887,7 +859,6 @@ final class WP_Customize_Manager { * Get changeset data. * * @since 4.7.0 - * @access public * * @return array Changeset data. */ @@ -913,7 +884,6 @@ final class WP_Customize_Manager { * Starter content setting IDs. * * @since 4.7.0 - * @access private * @var array */ protected $pending_starter_content_settings_ids = array(); @@ -922,7 +892,6 @@ final class WP_Customize_Manager { * Import theme starter content into the customized state. * * @since 4.7.0 - * @access public * * @param array $starter_content Starter content. Defaults to `get_theme_starter_content()`. */ @@ -1315,7 +1284,6 @@ final class WP_Customize_Manager { * Ensure that the attachments are valid and that they have slugs and file name/path. * * @since 4.7.0 - * @access private * * @param array $attachments Attachments. * @return array Prepared attachments. @@ -1376,7 +1344,6 @@ final class WP_Customize_Manager { * Save starter content changeset. * * @since 4.7.0 - * @access private */ public function _save_starter_content_changeset() { @@ -1485,7 +1452,6 @@ final class WP_Customize_Manager { * @since 3.4.0 * @since 4.1.1 Introduced the `$default` parameter. * @since 4.6.0 `$default` is now returned early when the setting post value is invalid. - * @access public * * @see WP_REST_Server::dispatch() * @see WP_Rest_Request::sanitize_params() @@ -1520,7 +1486,6 @@ final class WP_Customize_Manager { * exclusively sourced from `$_POST['customized']`. * * @since 4.2.0 - * @access public * * @param string $setting_id ID for the WP_Customize_Setting instance. * @param mixed $value Post value. @@ -1618,7 +1583,6 @@ final class WP_Customize_Manager { * Filter the X-Frame-Options and Content-Security-Policy headers to ensure frontend can load in customizer. * * @since 4.7.0 - * @access public * * @param array $headers Headers. * @return array Headers. @@ -1634,7 +1598,6 @@ final class WP_Customize_Manager { * Add customize state query params to a given URL if preview is allowed. * * @since 4.7.0 - * @access public * @see wp_redirect() * @see WP_Customize_Manager::get_allowed_url() * @@ -1680,7 +1643,6 @@ final class WP_Customize_Manager { * * @since 4.0.0 * @deprecated 4.7.0 - * @access public */ public function customize_preview_override_404_status() { _deprecated_function( __METHOD__, '4.7.0' ); @@ -1710,7 +1672,6 @@ final class WP_Customize_Manager { * Print CSS for loading indicators for the Customizer preview. * * @since 4.2.0 - * @access public */ public function customize_preview_loading_style() { ?>