315 | | <td><?php echo $broken_theme->errors()->get_error_message(); ?></td> |
| 316 | <td> |
| 317 | <?php echo $broken_theme->errors()->get_error_message(); ?> |
| 318 | <?php |
| 319 | $parent_theme_name = $broken_theme->get( 'Template' ); |
| 320 | $parent_theme = themes_api( 'theme_information', array( 'slug' => urlencode( $parent_theme_name ) ) ); |
| 321 | if ( $can_install && ! is_wp_error( $parent_theme ) ) { |
| 322 | $install_url = add_query_arg( array( |
| 323 | 'action' => 'install-theme', |
| 324 | 'theme' => urlencode( $parent_theme_name ), |
| 325 | ), admin_url( 'update.php' ) ); |
| 326 | $install_url = wp_nonce_url( $install_url, 'install-theme_' . $parent_theme_name ); |
| 327 | ?> |
| 328 | <br /><a href="<?php echo esc_url( $install_url ); ?>" class="button button-secondary"><?php _e( 'Install Parent Theme' ); ?></a> |
| 329 | <?php |
| 330 | } |
| 331 | ?> |
| 332 | </td> |
| 333 | |