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:
parent
469164785f
commit
97d6901048
@ -9,9 +9,9 @@
|
||||
*/
|
||||
class WP_Plugin_Install_List_Table extends WP_List_Table {
|
||||
|
||||
var $order = 'ASC';
|
||||
var $orderby = null;
|
||||
var $groups = array();
|
||||
public $order = 'ASC';
|
||||
public $orderby = null;
|
||||
public $groups = array();
|
||||
|
||||
public function ajax_user_can() {
|
||||
return current_user_can('install_plugins');
|
||||
|
@ -421,10 +421,9 @@ class WP_User {
|
||||
* User data container.
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @access private
|
||||
* @var object
|
||||
*/
|
||||
var $data;
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* The user's ID.
|
||||
|
@ -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.
|
||||
|
@ -420,19 +420,17 @@ class WP_Rewrite {
|
||||
* Permalink structure for posts.
|
||||
*
|
||||
* @since 1.5.0
|
||||
* @access private
|
||||
* @var string
|
||||
*/
|
||||
var $permalink_structure;
|
||||
public $permalink_structure;
|
||||
|
||||
/**
|
||||
* Whether to add trailing slashes.
|
||||
*
|
||||
* @since 2.2.0
|
||||
* @access private
|
||||
* @var bool
|
||||
*/
|
||||
var $use_trailing_slashes;
|
||||
public $use_trailing_slashes;
|
||||
|
||||
/**
|
||||
* Base for the author permalink structure (example.com/$author_base/authorname).
|
||||
@ -501,10 +499,9 @@ class WP_Rewrite {
|
||||
* Pagination permalink base.
|
||||
*
|
||||
* @since 3.1.0
|
||||
* @access private
|
||||
* @var string
|
||||
*/
|
||||
var $pagination_base = 'page';
|
||||
public $pagination_base = 'page';
|
||||
|
||||
/**
|
||||
* Feed permalink base.
|
||||
@ -522,7 +519,7 @@ class WP_Rewrite {
|
||||
* @access private
|
||||
* @var string
|
||||
*/
|
||||
var $comments_feed_structure;
|
||||
var $comment_feed_structure;
|
||||
|
||||
/**
|
||||
* Feed request permalink structure.
|
||||
@ -542,10 +539,9 @@ class WP_Rewrite {
|
||||
*
|
||||
* @see WP_Rewrite::init()
|
||||
* @since 1.5.0
|
||||
* @access private
|
||||
* @var string
|
||||
*/
|
||||
var $front;
|
||||
public $front;
|
||||
|
||||
/**
|
||||
* The prefix for all permalink structures.
|
||||
@ -557,10 +553,9 @@ class WP_Rewrite {
|
||||
* @see WP_Rewrite::init()
|
||||
* @see WP_Rewrite::using_index_permalinks()
|
||||
* @since 1.5.0
|
||||
* @access private
|
||||
* @var string
|
||||
*/
|
||||
var $root = '';
|
||||
public $root = '';
|
||||
|
||||
/**
|
||||
* The name of the index file which is the entry point to all requests.
|
||||
@ -746,10 +741,9 @@ class WP_Rewrite {
|
||||
* Supported default feeds.
|
||||
*
|
||||
* @since 1.5.0
|
||||
* @access private
|
||||
* @var array
|
||||
*/
|
||||
var $feeds = array( 'feed', 'rdf', 'rss', 'rss2', 'atom' );
|
||||
public $feeds = array( 'feed', 'rdf', 'rss', 'rss2', 'atom' );
|
||||
|
||||
/**
|
||||
* Whether permalinks are being used.
|
||||
|
Loading…
Reference in New Issue
Block a user