Changeset 47083
- Timestamp:
- 01/18/2020 12:24:57 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-debug-data.php
r46586 r47083 88 88 'permalink' => array( 89 89 'label' => __( 'Permalink structure' ), 90 'value' => $permalink_structure ? : __( 'No permalink structure set' ),90 'value' => $permalink_structure ? $permalink_structure : __( 'No permalink structure set' ), 91 91 'debug' => $permalink_structure, 92 92 ), … … 880 880 $theme_updates = get_theme_updates(); 881 881 882 // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase 883 $active_theme_version = $active_theme->Version; 882 $active_theme_version = $active_theme->version; 884 883 $active_theme_version_debug = $active_theme_version; 885 884 … … 892 891 } 893 892 894 $active_theme_author_uri = $active_theme-> offsetGet( 'AuthorURI' );893 $active_theme_author_uri = $active_theme->display( 'AuthorURI' ); 895 894 896 895 if ( $active_theme->parent_theme ) { … … 914 913 'name' => array( 915 914 'label' => __( 'Name' ), 916 // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase917 915 'value' => sprintf( 918 916 /* translators: 1: Theme name. 2: Theme slug. */ 919 917 __( '%1$s (%2$s)' ), 920 // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase 921 $active_theme->Name, 918 $active_theme->name, 922 919 $active_theme->stylesheet 923 920 ), … … 930 927 'author' => array( 931 928 'label' => __( 'Author' ), 932 // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase 933 'value' => wp_kses( $active_theme->Author, array() ), 929 'value' => wp_kses( $active_theme->author, array() ), 934 930 ), 935 931 'author_website' => array( … … 956 952 957 953 if ( $parent_theme ) { 958 // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase 959 $parent_theme_version = $parent_theme->Version; 954 $parent_theme_version = $parent_theme->version; 960 955 $parent_theme_version_debug = $parent_theme_version; 961 956 … … 968 963 } 969 964 970 $parent_theme_author_uri = $parent_theme-> offsetGet( 'AuthorURI' );965 $parent_theme_author_uri = $parent_theme->display( 'AuthorURI' ); 971 966 972 967 $info['wp-parent-theme']['fields'] = array( 973 968 'name' => array( 974 969 'label' => __( 'Name' ), 975 // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase976 970 'value' => sprintf( 977 971 /* translators: 1: Theme name. 2: Theme slug. */ 978 972 __( '%1$s (%2$s)' ), 979 // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase 980 $parent_theme->Name, 973 $parent_theme->name, 981 974 $parent_theme->stylesheet 982 975 ), … … 989 982 'author' => array( 990 983 'label' => __( 'Author' ), 991 // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase 992 'value' => wp_kses( $parent_theme->Author, array() ), 984 'value' => wp_kses( $parent_theme->author, array() ), 993 985 ), 994 986 'author_website' => array( … … 1018 1010 } 1019 1011 1020 // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase 1021 $theme_version = $theme->Version; 1022 // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase 1023 $theme_author = $theme->Author; 1012 $theme_version = $theme->version; 1013 $theme_author = $theme->author; 1024 1014 1025 1015 // Sanitize … … 1053 1043 } 1054 1044 1055 // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase 1056 $info['wp-themes-inactive']['fields'][ sanitize_text_field( $theme->Name ) ] = array( 1045 $info['wp-themes-inactive']['fields'][ sanitize_text_field( $theme->name ) ] = array( 1057 1046 'label' => sprintf( 1058 1047 /* translators: 1: Theme name. 2: Theme slug. */ 1059 1048 __( '%1$s (%2$s)' ), 1060 // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase 1061 $theme->Name, 1049 $theme->name, 1062 1050 $theme_slug 1063 1051 ),
Note: See TracChangeset
for help on using the changeset viewer.