Make WordPress Core


Ignore:
Timestamp:
10/17/2020 04:24:35 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Code Modernization: Use explicit visibility for class property declarations.

Using var or only static to declare a class property is PHP 4 code.

This updates the codebase to use explicit visibility modifiers introduced in PHP 5.

Props jrf.
Fixes #51557. See #22234.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/admin/includesScreen.php

    r48940 r49184  
    66 */
    77class Tests_Admin_includesScreen extends WP_UnitTestCase {
    8     var $core_screens = array(
     8    public $core_screens = array(
    99        'index.php'                            => array(
    1010            'base'            => 'dashboard',
Note: See TracChangeset for help on using the changeset viewer.