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

@@ -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.