@@ -76,38 +76,38 @@ private function get_all_themes() {
7676 }
7777
7878 foreach ( wp_get_themes () as $ key => $ theme ) {
79- $ file = $ theme ->get_stylesheet_directory ();
79+ $ stylesheet = $ theme ->get_stylesheet ();
8080
81- $ update_info = ( isset ( $ all_update_info ->response [ $ theme -> get_stylesheet () ] ) && null !== $ all_update_info ->response [ $ theme ->get_stylesheet () ] ) ? (array ) $ all_update_info ->response [ $ theme ->get_stylesheet () ] : null ;
81+ $ update_info = ( isset ( $ all_update_info ->response [ $ stylesheet ] ) && null !== $ all_update_info ->response [ $ theme ->get_stylesheet () ] ) ? (array ) $ all_update_info ->response [ $ theme ->get_stylesheet () ] : null ;
8282
83- $ items [ $ file ] = [
83+ $ items [ $ stylesheet ] = [
8484 'name ' => $ key ,
8585 'status ' => $ this ->get_status ( $ theme ),
8686 'update ' => (bool ) $ update_info ,
8787 'update_version ' => isset ( $ update_info ['new_version ' ] ) ? $ update_info ['new_version ' ] : null ,
8888 'update_package ' => isset ( $ update_info ['package ' ] ) ? $ update_info ['package ' ] : null ,
8989 'version ' => $ theme ->get ( 'Version ' ),
90- 'update_id ' => $ theme -> get_stylesheet () ,
90+ 'update_id ' => $ stylesheet ,
9191 'title ' => $ theme ->get ( 'Name ' ),
9292 'description ' => wordwrap ( $ theme ->get ( 'Description ' ) ),
9393 'author ' => $ theme ->get ( 'Author ' ),
94- 'auto_update ' => in_array ( $ theme -> get_stylesheet () , $ auto_updates , true ),
94+ 'auto_update ' => in_array ( $ stylesheet , $ auto_updates , true ),
9595 ];
9696
9797 // Compare version and update information in theme list.
9898 if ( isset ( $ theme_version_info [ $ key ] ) && false === $ theme_version_info [ $ key ] ) {
99- $ items [ $ file ]['update ' ] = 'version higher than expected ' ;
99+ $ items [ $ stylesheet ]['update ' ] = 'version higher than expected ' ;
100100 }
101101
102102 if ( is_multisite () ) {
103103 if ( ! empty ( $ site_enabled [ $ key ] ) && ! empty ( $ network_enabled [ $ key ] ) ) {
104- $ items [ $ file ]['enabled ' ] = 'network,site ' ;
104+ $ items [ $ stylesheet ]['enabled ' ] = 'network,site ' ;
105105 } elseif ( ! empty ( $ network_enabled [ $ key ] ) ) {
106- $ items [ $ file ]['enabled ' ] = 'network ' ;
106+ $ items [ $ stylesheet ]['enabled ' ] = 'network ' ;
107107 } elseif ( ! empty ( $ site_enabled [ $ key ] ) ) {
108- $ items [ $ file ]['enabled ' ] = 'site ' ;
108+ $ items [ $ stylesheet ]['enabled ' ] = 'site ' ;
109109 } else {
110- $ items [ $ file ]['enabled ' ] = 'no ' ;
110+ $ items [ $ stylesheet ]['enabled ' ] = 'no ' ;
111111 }
112112 }
113113 }
0 commit comments