| @@ -11,9 +11,8 @@ | ||
| 11 | 11 | private $steps = array(); |
| 12 | 12 | |
| 13 | 13 | public function __construct() { |
| 14 | 14 | |
| 15 | - add_action( 'admin_init', array( $this, 'remove_deprecated_functions' ) ); | |
| 16 | 15 | add_action( 'admin_menu', array( $this, 'admin_menus' ) ); |
| 17 | 16 | add_action( 'current_screen', array( $this, 'setup_wizard' ) ); |
| 18 | 17 | add_action( 'uwp_wizard_content_general_settings', array( $this, 'content_general_settings' ) ); |
| 19 | 18 | add_action( 'uwp_wizard_content_use_userswp', array( $this, 'content_use_userswp' ) ); |
| @@ -23,14 +22,8 @@ | ||
| 23 | 22 | add_action( 'wp_loaded', array( $this, 'hide_wizard_notices' ) ); |
| 24 | 23 | |
| 25 | 24 | } |
| 26 | 25 | |
| 27 | - public function remove_deprecated_functions() { | |
| 28 | - // removes deprecated warnings from page | |
| 29 | - remove_action('admin_print_styles', 'print_emoji_styles'); | |
| 30 | - remove_action( 'admin_head', 'wp_admin_bar_header' ); | |
| 31 | - } | |
| 32 | - | |
| 33 | 26 | public function setup_wizard_notice() { |
| 34 | 27 | |
| 35 | 28 | $show_notice = get_option( "uwp_setup_wizard_notice" ); |
| 36 | 29 | |
| @@ -616,10 +609,10 @@ | ||
| 616 | 609 | |
| 617 | 610 | if ( ! empty( $recommend_wp_plugins ) ) { |
| 618 | 611 | echo "<ul>"; |
| 619 | 612 | |
| 620 | - $installed_text = '<i class="fas fa-check-circle" aria-hidden="true"></i> ' . esc_html__( 'Installed', 'userswp' ); | |
| 621 | - $installing_text = '<i class="fas fa-sync fa-spin" aria-hidden="true"></i> ' . esc_html__( 'Installing', 'userswp' ); | |
| 613 | + $installed_text = '<i class="fas fa-check-circle" aria-hidden="true"></i> ' . __( 'Installed', 'userswp' ); | |
| 614 | + $installing_text = '<i class="fas fa-sync fa-spin" aria-hidden="true"></i> ' . __( 'Installing', 'userswp' ); | |
| 622 | 615 | |
| 623 | 616 | echo "<input type='hidden' id='uwp-installing-text' value='" . esc_attr( $installing_text ) . "' >"; |
| 624 | 617 | echo "<input type='hidden' id='uwp-installed-text' value='" . esc_attr( $installed_text ) . "' >"; |
| 625 | 618 | |
| @@ -648,9 +641,9 @@ | ||
| 648 | 641 | } else { |
| 649 | 642 | if ( ! empty( $plugin_status ) ) { |
| 650 | 643 | $plugin_status = $installed_text; |
| 651 | 644 | } |
| 652 | - echo " | <span class='uwp-plugin-status'>" . $plugin_status . "</span>"; | |
| 645 | + echo " | <span class='uwp-plugin-status'>" . esc_html( $plugin_status ) . "</span>"; | |
| 653 | 646 | } |
| 654 | 647 | echo "</li>"; |
| 655 | 648 | |
| 656 | 649 | } |
| @@ -714,9 +707,9 @@ | ||
| 714 | 707 | <div class="uwp-setup-next-steps-last"> |
| 715 | 708 | <h2><?php esc_html_e( 'Learn more', 'userswp' ); ?></h2> |
| 716 | 709 | <ul> |
| 717 | 710 | <li class="uwp-getting-started"> |
| 718 | - <a href="https://userswp.io/documentation/?utm_source=setupwizard&utm_medium=product&utm_content=getting-started&utm_campaign=userswpplugin" | |
| 711 | + <a href="https://userswp.io/docs/?utm_source=setupwizard&utm_medium=product&utm_content=getting-started&utm_campaign=userswpplugin" | |
| 719 | 712 | target="_blank"><?php esc_html_e( 'Getting started guide', 'userswp' ); ?></a> |
| 720 | 713 | </li> |
| 721 | 714 | <li class="uwp-newsletter"> |
| 722 | 715 | <a href="https://userswp.io/newsletter-signup/?utm_source=setupwizard&utm_medium=product&utm_content=newsletter&utm_campaign=userswpplugin" |