Make WordPress Core


Ignore:
Timestamp:
07/27/2017 12:40:27 AM (9 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-scripts.php

    r40988 r41162  
    2323     *
    2424     * @since 2.6.0
    25      * @access public
    2625     * @var string
    2726     */
     
    3231     *
    3332     * @since 2.8.0
    34      * @access public
    3533     * @var string
    3634     */
     
    4139     *
    4240     * @since 2.6.0
    43      * @access public
    4441     * @var string
    4542     */
     
    5047     *
    5148     * @since 2.8.0
    52      * @access public
    5349     * @var array
    5450     */
     
    5955     *
    6056     * @since 2.8.0
    61      * @access public
    6257     * @var string
    6358     */
     
    6964     * @since 2.8.0
    7065     * @deprecated 3.4.0
    71      * @access public
    7266     * @var string
    7367     */
     
    7872     *
    7973     * @since 2.8.0
    80      * @access public
    8174     * @var bool
    8275     */
     
    8881     *
    8982     * @since 2.8.0
    90      * @access public
    9183     * @var string
    9284     */
     
    9789     *
    9890     * @since 2.8.0
    99      * @access public
    10091     * @var string
    10192     */
     
    109100     *
    110101     * @since 2.8.0
    111      * @access public
    112102     * @var string
    113103     */
     
    121111     *
    122112     * @since 2.8.0
    123      * @access public
    124113     * @var string
    125114     */
     
    130119     *
    131120     * @since 2.8.0
    132      * @access public
    133121     * @var array
    134122     */
     
    139127     *
    140128     * @since 2.6.0
    141      * @access public
    142129     */
    143130    public function __construct() {
     
    150137     *
    151138     * @since 3.4.0
    152      * @access public
    153139     */
    154140    public function init() {
     
    170156     * @since 2.1.0
    171157     * @since 2.8.0 Added the `$group` parameter.
    172      * @access public
    173158     *
    174159     * @param mixed $handles Optional. Scripts to be printed. (void) prints queue, (string) prints
     
    188173     * @since 2.8.0 Added the `$echo` parameter.
    189174     * @deprecated 3.3.0
    190      * @access public
    191175     *
    192176     * @see print_extra_script()
     
    206190     *
    207191     * @since 3.3.0
    208      * @access public
    209192     *
    210193     * @param string $handle The script's registered handle.
     
    234217     * @since 2.6.0
    235218     * @since 2.8.0 Added the `$group` parameter.
    236      * @access public
    237219     *
    238220     * @see WP_Dependencies::do_item()
     
    369351     *
    370352     * @since 4.5.0
    371      * @access public
    372353     *
    373354     * @param string $handle   Name of the script to add the inline script to. Must be lowercase.
     
    396377     *
    397378     * @since 4.5.0
    398      * @access public
    399379     *
    400380     * @param string $handle   Name of the script to add the inline script to. Must be lowercase.
     
    425405     *
    426406     * @since 2.1.0
    427      * @access public
    428407     *
    429408     * @param string $handle
     
    465444     *
    466445     * @since 2.8.0
    467      * @access public
    468446     *
    469447     * @see WP_Dependencies::set_group()
     
    490468     *
    491469     * @since 2.1.0
    492      * @access public
    493470     *
    494471     * @see WP_Dependencies::all_deps()
     
    518495     *
    519496     * @since 2.8.0
    520      * @access public
    521497     *
    522498     * @see WP_Dependencies::do_items()
     
    533509     *
    534510     * @since 2.8.0
    535      * @access public
    536511     *
    537512     * @see WP_Dependencies::do_items()
     
    548523     *
    549524     * @since 2.8.0
    550      * @access public
    551525     *
    552526     * @param string $src The source of the enqueued script.
     
    574548     *
    575549     * @since 2.8.0
    576      * @access public
    577550     */
    578551    public function reset() {
Note: See TracChangeset for help on using the changeset viewer.