mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user