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-locale.php

    r39737 r41162  
    100100     *
    101101     * @since 2.3.0
    102      * @access public
    103102     * @var array
    104103     */
     
    123122     *
    124123     * @since 2.1.0
    125      * @access public
    126124     *
    127125     * @global string $text_direction
     
    241239     *
    242240     * @since 3.8.0
    243      * @access public
    244241     */
    245242    public function rtl_src_admin_notice() {
     
    256253     *
    257254     * @since 2.1.0
    258      * @access public
    259255     *
    260256     * @param int $weekday_number 0 for Sunday through 6 Saturday
     
    274270     *
    275271     * @since 2.1.0
    276      * @access public
    277272     *
    278273     * @param string $weekday_name
     
    290285     *
    291286     * @since 2.1.0
    292      * @access public
    293287     *
    294288     * @param string $weekday_name Full translated weekday word
     
    311305     *
    312306     * @since 2.1.0
    313      * @access public
    314307     *
    315308     * @param string|int $month_number '01' through '12'
     
    327320     *
    328321     * @since 2.1.0
    329      * @access public
    330322     *
    331323     * @param string $month_name Translated month to get abbreviated version
     
    342334     *
    343335     * @since 2.1.0
    344      * @access public
    345336     *
    346337     * @param string $meridiem Either 'am', 'pm', 'AM', or 'PM'. Not translated version.
     
    357348     *
    358349     * @deprecated For backward compatibility only.
    359      * @access public
    360350     *
    361351     * @global array $weekday
Note: See TracChangeset for help on using the changeset viewer.