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.


git-svn-id: https://develop.svn.wordpress.org/trunk@31078 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-01-08 05:43:54 +00:00
parent 469164785f
commit 97d6901048
4 changed files with 19 additions and 33 deletions

View File

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