Make WordPress Core

Changeset 31078


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.

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php

    r31055 r31078  
    1010class WP_Plugin_Install_List_Table extends WP_List_Table {
    1111
    12         var $order = 'ASC';
    13         var $orderby = null;
    14         var $groups = array();
     12        public $order = 'ASC';
     13        public $orderby = null;
     14        public $groups = array();
    1515
    1616        public function ajax_user_can() {
  • trunk/src/wp-includes/capabilities.php

    r31049 r31078  
    422422         *
    423423         * @since 2.0.0
    424          * @access private
    425424         * @var object
    426425         */
    427         var $data;
     426        public $data;
    428427
    429428        /**
  • 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        /**
  • trunk/src/wp-includes/rewrite.php

    r30982 r31078  
    421421         *
    422422         * @since 1.5.0
     423         * @var string
     424         */
     425        public $permalink_structure;
     426
     427        /**
     428         * Whether to add trailing slashes.
     429         *
     430         * @since 2.2.0
     431         * @var bool
     432         */
     433        public $use_trailing_slashes;
     434
     435        /**
     436         * Base for the author permalink structure (example.com/$author_base/authorname).
     437         *
     438         * @since 1.5.0
    423439         * @access private
    424440         * @var string
    425441         */
    426         var $permalink_structure;
    427 
    428         /**
    429          * Whether to add trailing slashes.
    430          *
    431          * @since 2.2.0
    432          * @access private
    433          * @var bool
    434          */
    435         var $use_trailing_slashes;
    436 
    437         /**
    438          * Base for the author permalink structure (example.com/$author_base/authorname).
     442        var $author_base = 'author';
     443
     444        /**
     445         * Permalink structure for author archives.
    439446         *
    440447         * @since 1.5.0
     
    442449         * @var string
    443450         */
    444         var $author_base = 'author';
    445 
    446         /**
    447          * Permalink structure for author archives.
     451        var $author_structure;
     452
     453        /**
     454         * Permalink structure for date archives.
    448455         *
    449456         * @since 1.5.0
     
    451458         * @var string
    452459         */
    453         var $author_structure;
    454 
    455         /**
    456          * Permalink structure for date archives.
     460        var $date_structure;
     461
     462        /**
     463         * Permalink structure for pages.
    457464         *
    458465         * @since 1.5.0
     
    460467         * @var string
    461468         */
    462         var $date_structure;
    463 
    464         /**
    465          * Permalink structure for pages.
     469        var $page_structure;
     470
     471        /**
     472         * Base of the search permalink structure (example.com/$search_base/query).
    466473         *
    467474         * @since 1.5.0
     
    469476         * @var string
    470477         */
    471         var $page_structure;
    472 
    473         /**
    474          * Base of the search permalink structure (example.com/$search_base/query).
     478        var $search_base = 'search';
     479
     480        /**
     481         * Permalink structure for searches.
    475482         *
    476483         * @since 1.5.0
     
    478485         * @var string
    479486         */
    480         var $search_base = 'search';
    481 
    482         /**
    483          * Permalink structure for searches.
     487        var $search_structure;
     488
     489        /**
     490         * Comments permalink base.
    484491         *
    485492         * @since 1.5.0
     
    487494         * @var string
    488495         */
    489         var $search_structure;
    490 
    491         /**
    492          * Comments permalink base.
     496        var $comments_base = 'comments';
     497
     498        /**
     499         * Pagination permalink base.
     500         *
     501         * @since 3.1.0
     502         * @var string
     503         */
     504        public $pagination_base = 'page';
     505
     506        /**
     507         * Feed permalink base.
    493508         *
    494509         * @since 1.5.0
     
    496511         * @var string
    497512         */
    498         var $comments_base = 'comments';
    499 
    500         /**
    501          * Pagination permalink base.
    502          *
    503          * @since 3.1.0
     513        var $feed_base = 'feed';
     514
     515        /**
     516         * Comments feed permalink structure.
     517         *
     518         * @since 1.5.0
    504519         * @access private
    505520         * @var string
    506521         */
    507         var $pagination_base = 'page';
    508 
    509         /**
    510          * Feed permalink base.
    511          *
    512          * @since 1.5.0
    513          * @access private
    514          * @var string
    515          */
    516         var $feed_base = 'feed';
    517 
    518         /**
    519          * Comments feed permalink structure.
    520          *
    521          * @since 1.5.0
    522          * @access private
    523          * @var string
    524          */
    525         var $comments_feed_structure;
     522        var $comment_feed_structure;
    526523
    527524        /**
     
    543540         * @see WP_Rewrite::init()
    544541         * @since 1.5.0
    545          * @access private
    546542         * @var string
    547543         */
    548         var $front;
     544        public $front;
    549545
    550546        /**
     
    558554         * @see WP_Rewrite::using_index_permalinks()
    559555         * @since 1.5.0
    560          * @access private
    561556         * @var string
    562557         */
    563         var $root = '';
     558        public $root = '';
    564559
    565560        /**
     
    747742         *
    748743         * @since 1.5.0
    749          * @access private
    750744         * @var array
    751745         */
    752         var $feeds = array( 'feed', 'rdf', 'rss', 'rss2', 'atom' );
     746        public $feeds = array( 'feed', 'rdf', 'rss', 'rss2', 'atom' );
    753747
    754748        /**
Note: See TracChangeset for help on using the changeset viewer.