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/src/wp-includes/pomo/translations.php

    r49120 r49184  
    1313if ( ! class_exists( 'Translations', false ) ) :
    1414    class Translations {
    15         var $entries = array();
    16         var $headers = array();
     15        public $entries = array();
     16        public $headers = array();
    1717
    1818        /**
     
    302302     */
    303303    class NOOP_Translations {
    304         var $entries = array();
    305         var $headers = array();
     304        public $entries = array();
     305        public $headers = array();
    306306
    307307        function add_entry( $entry ) {
Note: See TracChangeset for help on using the changeset viewer.