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-content/themes/twentynineteen/classes/class-twentynineteen-svg-icons.php

    r47808 r49184  
    7171     * @var array
    7272     */
    73     static $ui_icons = array(
     73    public static $ui_icons = array(
    7474        'link'                     => /* material-design – link */ '
    7575<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
     
    179179     * @var array
    180180     */
    181     static $social_icons_map = array(
     181    public static $social_icons_map = array(
    182182        'amazon'      => array(
    183183            'amazon.com',
     
    238238     * @var array
    239239     */
    240     static $social_icons = array(
     240    public static $social_icons = array(
    241241        '500px'       => '
    242242<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
Note: See TracChangeset for help on using the changeset viewer.