Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #50787, comment 9


Ignore:
Timestamp:
10/14/2020 10:17:57 PM (4 years ago)
Author:
hellofromTonya
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #50787, comment 9

    v1 v2  
    1717 */
    1818function wp_get_compatibility_string( $key = false, $name = '' ) {
    19         static $strings = [];
     19        static $strings = array();
    2020
    2121        if ( empty( $strings ) ) {
    22                 $strings = [
     22                $strings = array(
    2323                        'theme_incompatible_wp_php'       => __( 'This theme doesn’t work with your versions of WordPress and PHP.' ),
    2424                        'plugin_incompatible_wp_php'      => __( 'This plugin doesn’t work with your versions of WordPress and PHP.' ),
     
    3030                        'plugin_incompatible_php'         => __( 'This plugin doesn’t work with your version of PHP.' ),
    3131                        'core_update_incompatible_php'    => __( 'This update doesn’t work with your version of PHP.' ),
    32                 ];
     32                );
    3333        }
    3434
     
    3838
    3939        if ( $name ) {
    40                 $names = [
     40                $names = array(
    4141                        /* translators: 1: plugin or theme name */
    4242                        'update_incompatible_wp_php' => sprintf( __( 'There is a new version of %s available, but it doesn’t work with your versions of WordPress and PHP.' ), $name ),
     
    4545                        /* translators: 1: plugin or theme name */
    4646                        'update_incompatible_php'    => sprintf( __( 'There is a new version of %s available, but it doesn’t work with your version of PHP.' ), $name ),
    47                 ];
     47                );
    4848
    4949                if ( array_key_exists( $key, $names ) ) {