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

    r40997 r41162  
    3131     *              access via magic methods. As part of the access change, the type was
    3232     *              also changed from `string` to `int`.
    33      * @access private
    3433     * @var int
    3534     */
     
    4039     *
    4140     * @since 4.4.0
    42      * @access public
    4341     * @var string
    4442     */
     
    4947     *
    5048     * @since 4.4.0
    51      * @access public
    5249     * @var string
    5350     */
     
    6360     *
    6461     * @since 4.4.0
    65      * @access private
    6662     * @var string
    6763     */
     
    7268     *
    7369     * @since 4.4.0
    74      * @access public
    7570     * @var string
    7671     */
     
    8378     *
    8479     * @since 4.4.0
    85      * @access public
    8680     * @var string
    8781     */
     
    9286     *
    9387     * @since 4.4.0
    94      * @access public
    9588     *
    9689     * @global wpdb $wpdb WordPress database abstraction object.
     
    129122     *
    130123     * @since 4.4.0
    131      * @access public
    132124     *
    133125     * @param WP_Network|object $network A network object.
     
    148140     *
    149141     * @since 4.6.0
    150      * @access public
    151142     *
    152143     * @param string $key Property to get.
     
    172163     *
    173164     * @since 4.6.0
    174      * @access public
    175165     *
    176166     * @param string $key Property to check if set.
     
    194184     *
    195185     * @since 4.6.0
    196      * @access public
    197186     *
    198187     * @param string $key   Property to set.
     
    217206     *
    218207     * @since 4.4.0
    219      * @access private
    220208     */
    221209    private function _set_site_name() {
     
    235223     *
    236224     * @since 4.4.0
    237      * @access private
    238225     */
    239226    private function _set_cookie_domain() {
     
    259246     *
    260247     * @since 4.4.0
    261      * @access public
    262248     * @static
    263249     *
Note: See TracChangeset for help on using the changeset viewer.