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.

Built from https://develop.svn.wordpress.org/trunk@31078


git-svn-id: http://core.svn.wordpress.org/trunk@31059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-01-08 05:44:23 +00:00
parent ff98cfcf45
commit e029005847
5 changed files with 20 additions and 34 deletions

View File

@ -9,9 +9,9 @@
*/ */
class WP_Plugin_Install_List_Table extends WP_List_Table { class WP_Plugin_Install_List_Table extends WP_List_Table {
var $order = 'ASC'; public $order = 'ASC';
var $orderby = null; public $orderby = null;
var $groups = array(); public $groups = array();
public function ajax_user_can() { public function ajax_user_can() {
return current_user_can('install_plugins'); return current_user_can('install_plugins');

View File

@ -421,10 +421,9 @@ class WP_User {
* User data container. * User data container.
* *
* @since 2.0.0 * @since 2.0.0
* @access private
* @var object * @var object
*/ */
var $data; public $data;
/** /**
* The user's ID. * The user's ID.

View File

@ -17,9 +17,8 @@ class WP_Locale {
* *
* @since 2.1.0 * @since 2.1.0
* @var array * @var array
* @access private
*/ */
var $weekday; public $weekday;
/** /**
* Stores the translated strings for the one character weekday names. * Stores the translated strings for the one character weekday names.
@ -31,36 +30,32 @@ class WP_Locale {
* *
* @since 2.1.0 * @since 2.1.0
* @var array * @var array
* @access private
*/ */
var $weekday_initial; public $weekday_initial;
/** /**
* Stores the translated strings for the abbreviated weekday names. * Stores the translated strings for the abbreviated weekday names.
* *
* @since 2.1.0 * @since 2.1.0
* @var array * @var array
* @access private
*/ */
var $weekday_abbrev; public $weekday_abbrev;
/** /**
* Stores the translated strings for the full month names. * Stores the translated strings for the full month names.
* *
* @since 2.1.0 * @since 2.1.0
* @var array * @var array
* @access private
*/ */
var $month; public $month;
/** /**
* Stores the translated strings for the abbreviated month names. * Stores the translated strings for the abbreviated month names.
* *
* @since 2.1.0 * @since 2.1.0
* @var array * @var array
* @access private
*/ */
var $month_abbrev; public $month_abbrev;
/** /**
* Stores the translated strings for 'am' and 'pm'. * Stores the translated strings for 'am' and 'pm'.
@ -69,9 +64,8 @@ class WP_Locale {
* *
* @since 2.1.0 * @since 2.1.0
* @var array * @var array
* @access private
*/ */
var $meridiem; public $meridiem;
/** /**
* The text direction of the locale language. * The text direction of the locale language.
@ -80,14 +74,13 @@ class WP_Locale {
* *
* @since 2.1.0 * @since 2.1.0
* @var string * @var string
* @access private
*/ */
var $text_direction = 'ltr'; public $text_direction = 'ltr';
/** /**
* @var array * @var array
*/ */
var $number_format; public $number_format;
/** /**
* Sets up the translated strings and object properties. * Sets up the translated strings and object properties.

View File

@ -420,19 +420,17 @@ class WP_Rewrite {
* Permalink structure for posts. * Permalink structure for posts.
* *
* @since 1.5.0 * @since 1.5.0
* @access private
* @var string * @var string
*/ */
var $permalink_structure; public $permalink_structure;
/** /**
* Whether to add trailing slashes. * Whether to add trailing slashes.
* *
* @since 2.2.0 * @since 2.2.0
* @access private
* @var bool * @var bool
*/ */
var $use_trailing_slashes; public $use_trailing_slashes;
/** /**
* Base for the author permalink structure (example.com/$author_base/authorname). * Base for the author permalink structure (example.com/$author_base/authorname).
@ -501,10 +499,9 @@ class WP_Rewrite {
* Pagination permalink base. * Pagination permalink base.
* *
* @since 3.1.0 * @since 3.1.0
* @access private
* @var string * @var string
*/ */
var $pagination_base = 'page'; public $pagination_base = 'page';
/** /**
* Feed permalink base. * Feed permalink base.
@ -522,7 +519,7 @@ class WP_Rewrite {
* @access private * @access private
* @var string * @var string
*/ */
var $comments_feed_structure; var $comment_feed_structure;
/** /**
* Feed request permalink structure. * Feed request permalink structure.
@ -542,10 +539,9 @@ class WP_Rewrite {
* *
* @see WP_Rewrite::init() * @see WP_Rewrite::init()
* @since 1.5.0 * @since 1.5.0
* @access private
* @var string * @var string
*/ */
var $front; public $front;
/** /**
* The prefix for all permalink structures. * The prefix for all permalink structures.
@ -557,10 +553,9 @@ class WP_Rewrite {
* @see WP_Rewrite::init() * @see WP_Rewrite::init()
* @see WP_Rewrite::using_index_permalinks() * @see WP_Rewrite::using_index_permalinks()
* @since 1.5.0 * @since 1.5.0
* @access private
* @var string * @var string
*/ */
var $root = ''; public $root = '';
/** /**
* The name of the index file which is the entry point to all requests. * The name of the index file which is the entry point to all requests.
@ -746,10 +741,9 @@ class WP_Rewrite {
* Supported default feeds. * Supported default feeds.
* *
* @since 1.5.0 * @since 1.5.0
* @access private
* @var array * @var array
*/ */
var $feeds = array( 'feed', 'rdf', 'rss', 'rss2', 'atom' ); public $feeds = array( 'feed', 'rdf', 'rss', 'rss2', 'atom' );
/** /**
* Whether permalinks are being used. * Whether permalinks are being used.

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.2-alpha-31077'; $wp_version = '4.2-alpha-31078';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.