Changes between Version 1 and Version 2 of Ticket #50787, comment 9
- Timestamp:
- 10/14/2020 10:17:57 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #50787, comment 9
v1 v2 17 17 */ 18 18 function wp_get_compatibility_string( $key = false, $name = '' ) { 19 static $strings = [];19 static $strings = array(); 20 20 21 21 if ( empty( $strings ) ) { 22 $strings = [22 $strings = array( 23 23 'theme_incompatible_wp_php' => __( 'This theme doesn’t work with your versions of WordPress and PHP.' ), 24 24 'plugin_incompatible_wp_php' => __( 'This plugin doesn’t work with your versions of WordPress and PHP.' ), … … 30 30 'plugin_incompatible_php' => __( 'This plugin doesn’t work with your version of PHP.' ), 31 31 'core_update_incompatible_php' => __( 'This update doesn’t work with your version of PHP.' ), 32 ];32 ); 33 33 } 34 34 … … 38 38 39 39 if ( $name ) { 40 $names = [40 $names = array( 41 41 /* translators: 1: plugin or theme name */ 42 42 '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 ), … … 45 45 /* translators: 1: plugin or theme name */ 46 46 '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 ); 48 48 49 49 if ( array_key_exists( $key, $names ) ) {