Changeset 47122 for trunk/src/wp-admin/includes/theme.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/theme.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/theme.php
r47060 r47122 46 46 if ( ! WP_Filesystem( $credentials ) ) { 47 47 ob_start(); 48 request_filesystem_credentials( $redirect, '', true ); // Failed to connect, Error and request again. 48 // Failed to connect. Error and request again. 49 request_filesystem_credentials( $redirect, '', true ); 49 50 $data = ob_get_clean(); 50 51 … … 195 196 ), 196 197 $update['url'] 197 ); // Theme browser inside WP? replace this,Also, theme preview JS will override this on the available list.198 ); // Theme browser inside WP? Replace this. Also, theme preview JS will override this on the available list. 198 199 $update_url = wp_nonce_url( admin_url( 'update.php?action=upgrade-theme&theme=' . urlencode( $stylesheet ) ), 'upgrade-theme_' . $stylesheet ); 199 200 … … 261 262 */ 262 263 function get_theme_feature_list( $api = true ) { 263 // Hard-coded list is used if apinot accessible.264 // Hard-coded list is used if API is not accessible. 264 265 $features = array( 265 266 … … 332 333 ); 333 334 334 // Loop over the wp org canonical list and apply translations335 // Loop over the wp.org canonical list and apply translations. 335 336 $wporg_features = array(); 336 337 foreach ( (array) $feature_list as $feature_category => $feature_items ) { … … 434 435 */ 435 436 function themes_api( $action, $args = array() ) { 436 // include an unmodified $wp_version437 // Include an unmodified $wp_version. 437 438 include( ABSPATH . WPINC . '/version.php' ); 438 439 … … 452 453 453 454 if ( ! isset( $args->wp_version ) ) { 454 $args->wp_version = substr( $wp_version, 0, 3 ); // X.y455 $args->wp_version = substr( $wp_version, 0, 3 ); // x.y 455 456 } 456 457 … … 656 657 'id' => $slug, 657 658 'name' => $theme->display( 'Name' ), 658 'screenshot' => array( $theme->get_screenshot() ), // @todo multiple659 'screenshot' => array( $theme->get_screenshot() ), // @todo Multiple screenshots. 659 660 'description' => $theme->display( 'Description' ), 660 661 'author' => $theme->display( 'Author', false, true ), … … 675 676 } 676 677 677 // Remove 'delete' action if theme has an active child 678 // Remove 'delete' action if theme has an active child. 678 679 if ( ! empty( $parents ) && array_key_exists( $current_theme, $parents ) ) { 679 680 unset( $prepared_themes[ $parents[ $current_theme ] ]['actions']['delete'] );
Note: See TracChangeset
for help on using the changeset viewer.