Make WordPress Core


Ignore:
Timestamp:
07/27/2017 12:39:34 AM (8 years ago)
Author:
DrewAPicture
Message:

Docs: Remove @access notations from method DocBlocks in wp-admin/* 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r38622 r41161  
    5555     *
    5656     * @since 2.8.0
    57      * @access public
    5857     * @var array $strings
    5958     */
     
    6463     *
    6564     * @since 2.8.0
    66      * @access public
    6765     * @var Automatic_Upgrader_Skin|WP_Upgrader_Skin $skin
    6866     */
     
    7876     *
    7977     * @since 2.8.0
    80      * @access public
    8178     *
    8279     * @var WP_Error|array $result {
     
    10198     *
    10299     * @since 3.0.0
    103      * @access public
    104100     * @var int $update_count
    105101     */
     
    112108     *
    113109     * @since 3.0.0
    114      * @access public
    115110     * @var int
    116111     */
     
    121116     *
    122117     * @since 2.8.0
    123      * @access public
    124118     *
    125119     * @param WP_Upgrader_Skin $skin The upgrader skin to use. Default is a WP_Upgrader_Skin.
     
    140134     *
    141135     * @since 2.8.0
    142      * @access public
    143136     */
    144137    public function init() {
     
    151144     *
    152145     * @since 2.8.0
    153      * @access public
    154146     */
    155147    public function generic_strings() {
     
    180172     *
    181173     * @since 2.8.0
    182      * @access public
    183174     *
    184175     * @global WP_Filesystem_Base $wp_filesystem Subclass
     
    244235     *
    245236     * @since 2.8.0
    246      * @access public
    247237     *
    248238     * @param string $package The URI of the package. If this is the full path to an
     
    287277     *
    288278     * @since 2.8.0
    289      * @access public
    290279     *
    291280     * @global WP_Filesystem_Base $wp_filesystem Subclass
     
    339328     *
    340329     * @since 4.3.0
    341      * @access public
    342330     *
    343331     * @global WP_Filesystem_Base $wp_filesystem Subclass
     
    403391     *
    404392     * @since 2.8.0
    405      * @access public
    406393     *
    407394     * @global WP_Filesystem_Base $wp_filesystem Subclass
     
    611598     *
    612599     * @since 2.8.0
    613      * @access public
    614600     *
    615601     * @param array $options {
     
    803789     *
    804790     * @since 2.8.0
    805      * @access public
    806791     *
    807792     * @global WP_Filesystem_Base $wp_filesystem Subclass
Note: See TracChangeset for help on using the changeset viewer.