Changeset 43571 for trunk/src/wp-admin/includes/class-theme-upgrader.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-theme-upgrader.php
r42871 r43571 112 112 // We don't have the parent theme, let's install it. 113 113 $api = themes_api( 114 'theme_information', array( 114 'theme_information', 115 array( 115 116 'slug' => $theme_info->get( 'Template' ), 116 117 'fields' => array( … … 419 420 /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ 420 421 do_action( 421 'upgrader_process_complete', $this, array( 422 'upgrader_process_complete', 423 $this, 424 array( 422 425 'action' => 'update', 423 426 'type' => 'theme', … … 469 472 if ( ! file_exists( $working_directory . 'style.css' ) ) { 470 473 return new WP_Error( 471 'incompatible_archive_theme_no_style', $this->strings['incompatible_archive'], 474 'incompatible_archive_theme_no_style', 475 $this->strings['incompatible_archive'], 472 476 /* translators: %s: style.css */ 473 477 sprintf( … … 479 483 480 484 $info = get_file_data( 481 $working_directory . 'style.css', array( 485 $working_directory . 'style.css', 486 array( 482 487 'Name' => 'Theme Name', 483 488 'Template' => 'Template', … … 487 492 if ( empty( $info['Name'] ) ) { 488 493 return new WP_Error( 489 'incompatible_archive_theme_no_name', $this->strings['incompatible_archive'], 494 'incompatible_archive_theme_no_name', 495 $this->strings['incompatible_archive'], 490 496 /* translators: %s: style.css */ 491 497 sprintf( … … 499 505 if ( empty( $info['Template'] ) && ! file_exists( $working_directory . 'index.php' ) ) { 500 506 return new WP_Error( 501 'incompatible_archive_theme_no_index', $this->strings['incompatible_archive'], 507 'incompatible_archive_theme_no_index', 508 $this->strings['incompatible_archive'], 502 509 /* translators: %s: index.php */ 503 510 sprintf(
Note: See TracChangeset
for help on using the changeset viewer.