Upgrade _WP_List_Table_Compat to PHP5-style constructor.

Add `public` to methods/members of `WP_Role`.
Add `public` to methods/members of `WP_User` where appropriate. Don't set `private` where indicated until more study has occurred and tests have been written for compatibiliy with existing magic methods.

See #27881, #22234.

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


git-svn-id: http://core.svn.wordpress.org/trunk@28357 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor
2014-05-19 17:20:17 +00:00
parent 7415ae10a3
commit 7de0b2b2c8
2 changed files with 34 additions and 34 deletions

View File

@@ -87,7 +87,7 @@ class _WP_List_Table_Compat extends WP_List_Table {
public $_screen;
public $_columns;
public function _WP_List_Table_Compat( $screen, $columns = array() ) {
public function __construct( $screen, $columns = array() ) {
if ( is_string( $screen ) )
$screen = convert_to_screen( $screen );