Changeset 45932 for trunk/src/wp-admin/includes/class-wp-debug-data.php
- Timestamp:
- 09/03/2019 12:39:13 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-debug-data.php
r45905 r45932 46 46 foreach ( $core_updates as $core => $update ) { 47 47 if ( 'upgrade' === $update->response ) { 48 / / translators: %s: Latest WordPress version number.48 /* translators: %s: Latest WordPress version number. */ 49 49 $core_update_needed = ' ' . sprintf( __( '(Latest version: %s)' ), $update->version ); 50 50 } else { … … 125 125 'show_count' => true, 126 126 'description' => sprintf( 127 /* translators: %s: wp-content directory name */127 /* translators: %s: wp-content directory name. */ 128 128 __( 'Drop-ins are single files, found in the %s directory, that replace or enhance WordPress features in ways that are not possible for traditional plugins.' ), 129 129 '<code>' . str_replace( ABSPATH, '', WP_CONTENT_DIR ) . '</code>' … … 406 406 'label' => __( 'Communication with WordPress.org' ), 407 407 'value' => sprintf( 408 / / translators: 1: The IP address WordPress.org resolves to. 2: The error returned by the lookup.408 /* translators: 1: The IP address WordPress.org resolves to. 2: The error returned by the lookup. */ 409 409 __( 'Unable to reach WordPress.org at %1$s: %2$s' ), 410 410 gethostbyname( 'wordpress.org' ), … … 799 799 800 800 if ( ! empty( $plugin_version ) && ! empty( $plugin_author ) ) { 801 / / translators: 1: Plugin version number. 2: Plugin author name.801 /* translators: 1: Plugin version number. 2: Plugin author name. */ 802 802 $plugin_version_string = sprintf( __( 'Version %1$s by %2$s' ), $plugin_version, $plugin_author ); 803 803 $plugin_version_string_debug = sprintf( 'version: %s, author: %s', $plugin_version, $plugin_author ); 804 804 } else { 805 805 if ( ! empty( $plugin_author ) ) { 806 / / translators: %s: Plugin author name.806 /* translators: %s: Plugin author name. */ 807 807 $plugin_version_string = sprintf( __( 'By %s' ), $plugin_author ); 808 808 $plugin_version_string_debug = sprintf( 'author: %s, version: (undefined)', $plugin_author ); … … 810 810 811 811 if ( ! empty( $plugin_version ) ) { 812 / / translators: %s: Plugin version number.812 /* translators: %s: Plugin version number. */ 813 813 $plugin_version_string = sprintf( __( 'Version %s' ), $plugin_version ); 814 814 $plugin_version_string_debug = sprintf( 'author: (undefined), version: %s', $plugin_version ); … … 837 837 838 838 if ( ! empty( $plugin_version ) && ! empty( $plugin_author ) ) { 839 / / translators: 1: Plugin version number. 2: Plugin author name.839 /* translators: 1: Plugin version number. 2: Plugin author name. */ 840 840 $plugin_version_string = sprintf( __( 'Version %1$s by %2$s' ), $plugin_version, $plugin_author ); 841 841 $plugin_version_string_debug = sprintf( 'version: %s, author: %s', $plugin_version, $plugin_author ); 842 842 } else { 843 843 if ( ! empty( $plugin_author ) ) { 844 / / translators: %s: Plugin author name.844 /* translators: %s: Plugin author name. */ 845 845 $plugin_version_string = sprintf( __( 'By %s' ), $plugin_author ); 846 846 $plugin_version_string_debug = sprintf( 'author: %s, version: (undefined)', $plugin_author ); … … 848 848 849 849 if ( ! empty( $plugin_version ) ) { 850 / / translators: %s: Plugin version number.850 /* translators: %s: Plugin version number. */ 851 851 $plugin_version_string = sprintf( __( 'Version %s' ), $plugin_version ); 852 852 $plugin_version_string_debug = sprintf( 'author: (undefined), version: %s', $plugin_version ); … … 855 855 856 856 if ( array_key_exists( $plugin_path, $plugin_updates ) ) { 857 / / translators: %s: Latest plugin version number.857 /* translators: %s: Latest plugin version number. */ 858 858 $plugin_version_string .= ' ' . sprintf( __( '(Latest version: %s)' ), $plugin_updates[ $plugin_path ]->update->new_version ); 859 859 $plugin_version_string_debug .= sprintf( ' (latest version: %s)', $plugin_updates[ $plugin_path ]->update->new_version ); … … 887 887 $theme_update_new_version = $theme_updates[ $active_theme->stylesheet ]->update['new_version']; 888 888 889 / / translators: %s: Latest theme version number.889 /* translators: %s: Latest theme version number. */ 890 890 $active_theme_version .= ' ' . sprintf( __( '(Latest version: %s)' ), $theme_update_new_version ); 891 891 $active_theme_version_debug .= sprintf( ' (latest version: %s)', $theme_update_new_version ); … … 896 896 if ( $active_theme->parent_theme ) { 897 897 $active_theme_parent_theme = sprintf( 898 / / translators: 1: Theme name. 2: Theme slug.898 /* translators: 1: Theme name. 2: Theme slug. */ 899 899 __( '%1$s (%2$s)' ), 900 900 $active_theme->parent_theme, … … 916 916 // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase 917 917 'value' => sprintf( 918 / / translators: 1: Theme name. 2: Theme slug.918 /* translators: 1: Theme name. 2: Theme slug. */ 919 919 __( '%1$s (%2$s)' ), 920 920 // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase … … 963 963 $parent_theme_update_new_version = $theme_updates[ $parent_theme->stylesheet ]->update['new_version']; 964 964 965 / / translators: %s: Latest theme version number.965 /* translators: %s: Latest theme version number. */ 966 966 $parent_theme_version .= ' ' . sprintf( __( '(Latest version: %s)' ), $parent_theme_update_new_version ); 967 967 $parent_theme_version_debug .= sprintf( ' (latest version: %s)', $parent_theme_update_new_version ); … … 975 975 // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase 976 976 'value' => sprintf( 977 / / translators: 1: Theme name. 2: Theme slug.977 /* translators: 1: Theme name. 2: Theme slug. */ 978 978 __( '%1$s (%2$s)' ), 979 979 // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase … … 1030 1030 1031 1031 if ( ! empty( $theme_version ) && ! empty( $theme_author ) ) { 1032 / / translators: 1: Theme version number. 2: Theme author name.1032 /* translators: 1: Theme version number. 2: Theme author name. */ 1033 1033 $theme_version_string = sprintf( __( 'Version %1$s by %2$s' ), $theme_version, $theme_author ); 1034 1034 $theme_version_string_debug = sprintf( 'version: %s, author: %s', $theme_version, $theme_author ); 1035 1035 } else { 1036 1036 if ( ! empty( $theme_author ) ) { 1037 / / translators: %s: Theme author name.1037 /* translators: %s: Theme author name. */ 1038 1038 $theme_version_string = sprintf( __( 'By %s' ), $theme_author ); 1039 1039 $theme_version_string_debug = sprintf( 'author: %s, version: (undefined)', $theme_author ); … … 1041 1041 1042 1042 if ( ! empty( $theme_version ) ) { 1043 / / translators: %s: Theme version number.1043 /* translators: %s: Theme version number. */ 1044 1044 $theme_version_string = sprintf( __( 'Version %s' ), $theme_version ); 1045 1045 $theme_version_string_debug = sprintf( 'author: (undefined), version: %s', $theme_version ); … … 1048 1048 1049 1049 if ( array_key_exists( $theme_slug, $theme_updates ) ) { 1050 / / translators: %s: Latest theme version number.1050 /* translators: %s: Latest theme version number. */ 1051 1051 $theme_version_string .= ' ' . sprintf( __( '(Latest version: %s)' ), $theme_updates[ $theme_slug ]->update['new_version'] ); 1052 1052 $theme_version_string_debug .= sprintf( ' (latest version: %s)', $theme_updates[ $theme_slug ]->update['new_version'] ); … … 1056 1056 $info['wp-themes-inactive']['fields'][ sanitize_text_field( $theme->Name ) ] = array( 1057 1057 'label' => sprintf( 1058 / / translators: 1: Theme name. 2: Theme slug.1058 /* translators: 1: Theme name. 2: Theme slug. */ 1059 1059 __( '%1$s (%2$s)' ), 1060 1060 // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
Note: See TracChangeset
for help on using the changeset viewer.