Make WordPress Core


Ignore:
Timestamp:
01/08/2015 05:43:54 AM (12 years ago)
Author:
wonderboymusic
Message:

Access Modifiers:

  • In WP_Plugin_Install_List_Table, use public instead of var
  • In WP_User, ->data is accessed directly on an instance if the constructor receives it: make it public
  • In WP_Locale, every property is exported to a global and is already public via var, half of the properties are accessed directly already, make them all public
  • In WP_Rewrite, several properties are accessed publicly in functions via the $wp_rewrite global, make those props public.
  • In WP_Rewrite, the property ->comment_feed_structure was misspelled as ->comments_feed_structure

See #30799.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/locale.php

    r31077 r31078  
    1818         * @since 2.1.0
    1919         * @var array
    20          * @access private
    21          */
    22         var $weekday;
     20         */
     21        public $weekday;
    2322
    2423        /**
     
    3231         * @since 2.1.0
    3332         * @var array
    34          * @access private
    35          */
    36         var $weekday_initial;
     33         */
     34        public $weekday_initial;
    3735
    3836        /**
     
    4139         * @since 2.1.0
    4240         * @var array
    43          * @access private
    44          */
    45         var $weekday_abbrev;
     41         */
     42        public $weekday_abbrev;
    4643
    4744        /**
     
    5047         * @since 2.1.0
    5148         * @var array
    52          * @access private
    53          */
    54         var $month;
     49         */
     50        public $month;
    5551
    5652        /**
     
    5955         * @since 2.1.0
    6056         * @var array
    61          * @access private
    62          */
    63         var $month_abbrev;
     57         */
     58        public $month_abbrev;
    6459
    6560        /**
     
    7065         * @since 2.1.0
    7166         * @var array
    72          * @access private
    73          */
    74         var $meridiem;
     67         */
     68        public $meridiem;
    7569
    7670        /**
     
    8175         * @since 2.1.0
    8276         * @var string
    83          * @access private
    84          */
    85         var $text_direction = 'ltr';
    86 
    87         /**
    88          * @var array
    89          */
    90         var $number_format;
     77         */
     78        public $text_direction = 'ltr';
     79
     80        /**
     81         * @var array
     82         */
     83        public $number_format;
    9184
    9285        /**
Note: See TracChangeset for help on using the changeset viewer.