Make WordPress Core


Ignore:
Timestamp:
07/27/2017 12:39:34 AM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Remove @access notations from method DocBlocks in wp-admin/* 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-admin/includes/class-wp-automatic-updater.php

    r40638 r41161  
    2020         *
    2121         * @var array
    22          * @access protected
    2322         */
    2423        protected $update_results = array();
     
    2827         *
    2928         * @since 3.7.0
    30          * @access public
    3129         */
    3230        public function is_disabled() {
     
    6967         *
    7068         * @since 3.7.0
    71          * @access public
    7269         *
    7370         * @param string $context The filesystem path to check, in addition to ABSPATH.
     
    122119         *
    123120         * @since 3.7.0
    124          * @access public
    125121         *
    126122         * @global wpdb $wpdb WordPress database abstraction object.
     
    206202         *
    207203         * @since 3.7.0
    208          * @access protected
    209204         *
    210205         * @param object $item The update offer.
     
    250245         *
    251246         * @since 3.7.0
    252          * @access public
    253247         *
    254248         * @param string $type The type of update being checked: 'core', 'theme', 'plugin', 'translation'.
     
    371365         *
    372366         * @since 3.7.0
    373          * @access public
    374367         */
    375368        public function run() {
     
    488481         *
    489482         * @since Unknown
    490          * @access protected
    491483         *
    492484         * @param object $update_result The result of the core update. Includes the update offer and result.
     
    576568         *
    577569         * @since 3.7.0
    578          * @access protected
    579570         *
    580571         * @param string $type        The type of email to send. Can be one of 'success', 'fail', 'manual', 'critical'.
     
    774765         *
    775766         * @since 3.7.0
    776          * @access protected
    777767         */
    778768        protected function send_debug_email() {
Note: See TracChangeset for help on using the changeset viewer.