290 | | <td><?php echo $broken_theme->errors()->get_error_message(); ?></td> |
| 291 | <td> |
| 292 | <?php echo $broken_theme->errors()->get_error_message(); ?> |
| 293 | <?php |
| 294 | $parent_theme_name = $broken_theme->get( 'Template' ); |
| 295 | $parent_theme = themes_api( 'theme_information', array( 'slug' => urlencode( $parent_theme_name ) ) ); |
| 296 | if ( $can_install && ! is_wp_error( $parent_theme ) ) { |
| 297 | $install_url = add_query_arg( array( |
| 298 | 'action' => 'install-theme', |
| 299 | 'theme' => urlencode( $parent_theme_name ), |
| 300 | ), admin_url( 'update.php' ) ); |
| 301 | $install_url = wp_nonce_url( $install_url, 'install-theme_' . $parent_theme_name ); |
| 302 | ?> |
| 303 | <br /><a href="<?php echo esc_url( $install_url ); ?>" class="button button-secondary"><?php _e( 'Install Parent Theme' ); ?></a> |
| 304 | <?php |
| 305 | } |
| 306 | ?> |
| 307 | </td> |