Changeset 43571 for trunk/src/wp-admin/themes.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/themes.php
r42719 r43571 134 134 135 135 wp_localize_script( 136 'theme', '_wpThemeSettings', array( 136 'theme', 137 '_wpThemeSettings', 138 array( 137 139 'themes' => $themes, 138 140 'settings' => array( … … 173 175 <?php 174 176 if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) : 175 ?>177 ?> 176 178 <div id="message1" class="updated notice is-dismissible"><p><?php _e( 'The active theme is broken. Reverting to the default theme.' ); ?></p></div> 177 <?php179 <?php 178 180 elseif ( isset( $_GET['activated'] ) ) : 179 181 if ( isset( $_GET['previewed'] ) ) { … … 185 187 } 186 188 elseif ( isset( $_GET['deleted'] ) ) : 187 ?>189 ?> 188 190 <div id="message3" class="updated notice is-dismissible"><p><?php _e( 'Theme deleted.' ); ?></p></div> 189 191 <?php elseif ( isset( $_GET['delete-active-child'] ) ) : ?> 190 192 <div id="message4" class="error"><p><?php _e( 'You cannot delete a theme while it has an active child theme.' ); ?></p></div> 191 <?php193 <?php 192 194 endif; 193 195 … … 336 338 // List broken themes, if any. 337 339 if ( ! is_multisite() && current_user_can( 'edit_themes' ) && $broken_themes = wp_get_themes( array( 'errors' => true ) ) ) { 338 ?>340 ?> 339 341 340 342 <div class="broken-themes"> … … 342 344 <p><?php _e( 'The following themes are installed but incomplete.' ); ?></p> 343 345 344 <?php345 $can_delete = current_user_can( 'delete_themes' );346 $can_install = current_user_can( 'install_themes' );347 ?>346 <?php 347 $can_delete = current_user_can( 'delete_themes' ); 348 $can_install = current_user_can( 'install_themes' ); 349 ?> 348 350 <table> 349 351 <tr> … … 368 370 'action' => 'delete', 369 371 'stylesheet' => urlencode( $stylesheet ), 370 ), admin_url( 'themes.php' ) 372 ), 373 admin_url( 'themes.php' ) 371 374 ); 372 375 $delete_url = wp_nonce_url( $delete_url, 'delete-theme_' . $stylesheet ); … … 385 388 'action' => 'install-theme', 386 389 'theme' => urlencode( $parent_theme_name ), 387 ), admin_url( 'update.php' ) 390 ), 391 admin_url( 'update.php' ) 388 392 ); 389 393 $install_url = wp_nonce_url( $install_url, 'install-theme_' . $parent_theme_name ); … … 399 403 </div> 400 404 401 <?php405 <?php 402 406 } 403 407 ?> … … 534 538 535 539 wp_localize_script( 536 'updates', '_wpUpdatesItemCounts', array( 540 'updates', 541 '_wpUpdatesItemCounts', 542 array( 537 543 'totals' => wp_get_update_data(), 538 544 )
Note: See TracChangeset
for help on using the changeset viewer.