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-post-type.php

    r40302 r41162  
    2020     *
    2121     * @since 4.6.0
    22      * @access public
    2322     * @var string $name
    2423     */
     
    2928     *
    3029     * @since 4.6.0
    31      * @access public
    3230     * @var string $label
    3331     */
     
    4341     *
    4442     * @since 4.6.0
    45      * @access public
    4643     * @var object $labels
    4744     */
     
    5451     *
    5552     * @since 4.6.0
    56      * @access public
    5753     * @var string $description
    5854     */
     
    6864     *
    6965     * @since 4.6.0
    70      * @access public
    7166     * @var bool $public
    7267     */
     
    7974     *
    8075     * @since 4.6.0
    81      * @access public
    8276     * @var bool $hierarchical
    8377     */
     
    9185     *
    9286     * @since 4.6.0
    93      * @access public
    9487     * @var bool $exclude_from_search
    9588     */
     
    107100     *
    108101     * @since 4.6.0
    109      * @access public
    110102     * @var bool $publicly_queryable
    111103     */
     
    118110     *
    119111     * @since 4.6.0
    120      * @access public
    121112     * @var bool $show_ui
    122113     */
     
    133124     *
    134125     * @since 4.6.0
    135      * @access public
    136126     * @var bool $show_in_menu
    137127     */
     
    144134     *
    145135     * @since 4.6.0
    146      * @access public
    147136     * @var bool $show_in_nav_menus
    148137     */
     
    155144     *
    156145     * @since 4.6.0
    157      * @access public
    158146     * @var bool $show_in_admin_bar
    159147     */
     
    166154     *
    167155     * @since 4.6.0
    168      * @access public
    169156     * @var int $menu_position
    170157     */
     
    182169     *
    183170     * @since 4.6.0
    184      * @access public
    185171     * @var string $menu_icon
    186172     */
     
    195181     *
    196182     * @since 4.6.0
    197      * @access public
    198183     * @var string $capability_type
    199184     */
     
    206191     *
    207192     * @since 4.6.0
    208      * @access public
    209193     * @var bool $map_meta_cap
    210194     */
     
    217201     *
    218202     * @since 4.6.0
    219      * @access public
    220203     * @var string $register_meta_box_cb
    221204     */
     
    230213     *
    231214     * @since 4.6.0
    232      * @access public
    233215     * @var array $taxonomies
    234216     */
     
    241223     *
    242224     * @since 4.6.0
    243      * @access public
    244225     * @var bool|string $has_archive
    245226     */
     
    253234     *
    254235     * @since 4.6.0
    255      * @access public
    256236     * @var string|bool $query_var
    257237     */
     
    264244     *
    265245     * @since 4.6.0
    266      * @access public
    267246     * @var bool $can_export
    268247     */
     
    278257     *
    279258     * @since 4.6.0
    280      * @access public
    281259     * @var bool $delete_with_user
    282260     */
     
    289267     *
    290268     * @since 4.6.0
    291      * @access public
    292269     * @var bool $_builtin
    293270     */
     
    300277     *
    301278     * @since 4.6.0
    302      * @access public
    303279     * @var string $_edit_link
    304280     */
     
    309285     *
    310286     * @since 4.6.0
    311      * @access public
    312287     * @var object $cap
    313288     */
     
    320295     *
    321296     * @since 4.6.0
    322      * @access public
    323297     * @var array|false $rewrite
    324298     */
     
    329303     *
    330304     * @since 4.6.0
    331      * @access public
    332305     * @var array|bool $supports
    333306     */
     
    341314     *
    342315     * @since 4.7.4
    343      * @access public
    344316     * @var bool $show_in_rest
    345317     */
     
    350322     *
    351323     * @since 4.7.4
    352      * @access public
    353324     * @var string|bool $rest_base
    354325     */
     
    361332     *
    362333     * @since 4.7.4
    363      * @access public
    364334     * @var string|bool $rest_controller_class
    365335     */
     
    373343     *
    374344     * @since 4.6.0
    375      * @access public
    376345     *
    377346     * @see register_post_type()
     
    391360     *
    392361     * @since 4.6.0
    393      * @access public
    394362     *
    395363     * @param array|string $args Array or string of arguments for registering a post type.
     
    543511     *
    544512     * @since 4.6.0
    545      * @access public
    546513     */
    547514    public function add_supports() {
     
    559526     *
    560527     * @since 4.6.0
    561      * @access public
    562528     *
    563529     * @global WP_Rewrite $wp_rewrite WordPress Rewrite Component.
     
    607573     *
    608574     * @since 4.6.0
    609      * @access public
    610575     */
    611576    public function register_meta_boxes() {
     
    619584     *
    620585     * @since 4.6.0
    621      * @access public
    622586     */
    623587    public function add_hooks() {
     
    629593     *
    630594     * @since 4.6.0
    631      * @access public
    632595     */
    633596    public function register_taxonomies() {
     
    641604     *
    642605     * @since 4.6.0
    643      * @access public
    644606     *
    645607     * @global array $_wp_post_type_features Post type features.
     
    655617     *
    656618     * @since 4.6.0
    657      * @access public
    658619     *
    659620     * @global WP_Rewrite $wp_rewrite          WordPress rewrite component.
     
    690651     *
    691652     * @since 4.6.0
    692      * @access public
    693653     */
    694654    public function unregister_meta_boxes() {
     
    702662     *
    703663     * @since 4.6.0
    704      * @access public
    705664     */
    706665    public function unregister_taxonomies() {
     
    714673     *
    715674     * @since 4.6.0
    716      * @access public
    717675     */
    718676    public function remove_hooks() {
Note: See TracChangeset for help on using the changeset viewer.