mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +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 @@ final class WP_Term {
|
||||
* Term ID.
|
||||
*
|
||||
* @since 4.4.0
|
||||
* @access public
|
||||
* @var int
|
||||
*/
|
||||
public $term_id;
|
||||
@@ -29,7 +28,6 @@ final class WP_Term {
|
||||
* The term's name.
|
||||
*
|
||||
* @since 4.4.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $name = '';
|
||||
@@ -38,7 +36,6 @@ final class WP_Term {
|
||||
* The term's slug.
|
||||
*
|
||||
* @since 4.4.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $slug = '';
|
||||
@@ -47,7 +44,6 @@ final class WP_Term {
|
||||
* The term's term_group.
|
||||
*
|
||||
* @since 4.4.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $term_group = '';
|
||||
@@ -56,7 +52,6 @@ final class WP_Term {
|
||||
* Term Taxonomy ID.
|
||||
*
|
||||
* @since 4.4.0
|
||||
* @access public
|
||||
* @var int
|
||||
*/
|
||||
public $term_taxonomy_id = 0;
|
||||
@@ -65,7 +60,6 @@ final class WP_Term {
|
||||
* The term's taxonomy name.
|
||||
*
|
||||
* @since 4.4.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $taxonomy = '';
|
||||
@@ -74,7 +68,6 @@ final class WP_Term {
|
||||
* The term's description.
|
||||
*
|
||||
* @since 4.4.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $description = '';
|
||||
@@ -83,7 +76,6 @@ final class WP_Term {
|
||||
* ID of a term's parent term.
|
||||
*
|
||||
* @since 4.4.0
|
||||
* @access public
|
||||
* @var int
|
||||
*/
|
||||
public $parent = 0;
|
||||
@@ -92,7 +84,6 @@ final class WP_Term {
|
||||
* Cached object count for this term.
|
||||
*
|
||||
* @since 4.4.0
|
||||
* @access public
|
||||
* @var int
|
||||
*/
|
||||
public $count = 0;
|
||||
@@ -103,7 +94,6 @@ final class WP_Term {
|
||||
* Does not correspond to a database field.
|
||||
*
|
||||
* @since 4.4.0
|
||||
* @access public
|
||||
* @var string
|
||||
*/
|
||||
public $filter = 'raw';
|
||||
@@ -112,7 +102,6 @@ final class WP_Term {
|
||||
* Retrieve WP_Term instance.
|
||||
*
|
||||
* @since 4.4.0
|
||||
* @access public
|
||||
* @static
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
@@ -202,7 +191,6 @@ final class WP_Term {
|
||||
* Constructor.
|
||||
*
|
||||
* @since 4.4.0
|
||||
* @access public
|
||||
*
|
||||
* @param WP_Term|object $term Term object.
|
||||
*/
|
||||
@@ -216,7 +204,6 @@ final class WP_Term {
|
||||
* Sanitizes term fields, according to the filter type provided.
|
||||
*
|
||||
* @since 4.4.0
|
||||
* @access public
|
||||
*
|
||||
* @param string $filter Filter context. Accepts 'edit', 'db', 'display', 'attribute', 'js', 'raw'.
|
||||
*/
|
||||
@@ -228,7 +215,6 @@ final class WP_Term {
|
||||
* Converts an object to array.
|
||||
*
|
||||
* @since 4.4.0
|
||||
* @access public
|
||||
*
|
||||
* @return array Object as array.
|
||||
*/
|
||||
@@ -240,7 +226,6 @@ final class WP_Term {
|
||||
* Getter.
|
||||
*
|
||||
* @since 4.4.0
|
||||
* @access public
|
||||
*
|
||||
* @param string $key Property to get.
|
||||
* @return mixed Property value.
|
||||
|
||||
Reference in New Issue
Block a user