Summery Summery
Turn off maintenance mode after upgrading the current theme.
Syntax Syntax
Description Description
Hooked to the ‘upgrader_post_install’ filter by Theme_Upgrader::upgrade() and Theme_Upgrader::bulk_upgrade().
Parameters Parameters
- $return
-
(Required) Upgrade offer return.
- $theme
-
(Required) Theme arguments.
Return Return
Source Source
File: wp-admin/includes/class-theme-upgrader.php
if ( empty( $info['Name'] ) ) { return new WP_Error( 'incompatible_archive_theme_no_name', $this->strings['incompatible_archive'], sprintf( /* translators: %s: style.css */ __( 'The %s stylesheet doesn’t contain a valid theme header.' ), '<code>style.css</code>' ) ); } // If it's not a child theme, it must have at least an index.php to be legit. if ( empty( $info['Template'] ) && ! file_exists( $working_directory . 'index.php' ) ) { return new WP_Error( 'incompatible_archive_theme_no_index', $this->strings['incompatible_archive'], sprintf( /* translators: %s: index.php */ __( 'The theme is missing the %s file.' ), '<code>index.php</code>' ) ); }
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |