Make WordPress Core


Ignore:
Timestamp:
07/27/2017 12:40:27 AM (7 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-widget-factory.php

    r38121 r41162  
    2020     *
    2121     * @since 2.8.0
    22      * @access public
    2322     * @var array
    2423     */
     
    2928     *
    3029     * @since 4.3.0
    31      * @access public
    3230     */
    3331    public function __construct() {
     
    3937     *
    4038     * @since 2.8.0
    41      * @access public
    4239     */
    4340    public function WP_Widget_Factory() {
     
    5350     *
    5451     * @since 4.6.0
    55      * @access private
    5652     * @var array
    5753     *
     
    6763     *
    6864     * @since 4.6.0
    69      * @access private
    7065     *
    7166     * @param WP_Widget $widget Widget.
     
    9691     * @since 4.6.0 Updated the `$widget` parameter to also accept a WP_Widget instance object
    9792     *              instead of simply a `WP_Widget` subclass name.
    98      * @access public
    9993     *
    10094     * @param string|WP_Widget $widget Either the name of a `WP_Widget` subclass or an instance of a `WP_Widget` subclass.
     
    114108     * @since 4.6.0 Updated the `$widget` parameter to also accept a WP_Widget instance object
    115109     *              instead of simply a `WP_Widget` subclass name.
    116      * @access public
    117110     *
    118111     * @param string|WP_Widget $widget Either the name of a `WP_Widget` subclass or an instance of a `WP_Widget` subclass.
     
    130123     *
    131124     * @since 2.8.0
    132      * @access public
    133125     *
    134126     * @global array $wp_registered_widgets
Note: See TracChangeset for help on using the changeset viewer.