diff --git a/ayecode-connect-helper.php b/ayecode-connect-helper.php index 834b83f..6e8651f 100644 --- a/ayecode-connect-helper.php +++ b/ayecode-connect-helper.php @@ -1,5 +1,4 @@ is_localhost() && current_user_can( 'manage_options' ) ) { - - // set default strings $default_strings = array( - 'connect_title' => __( "Thanks for choosing an AyeCode Product!" ), - 'connect_external' => __( "Please confirm you wish to connect your site?" ), - 'connect' => sprintf( __( "Have a license? Forget about entering license keys or downloading zip files, connect your site for instant access. %slearn more%s" ), "", "" ), - 'connect_button' => __( "Connect Site" ), - 'connecting_button' => __( "Connecting..." ), - 'error_localhost' => __( "This service will only work with a live domain, not a localhost." ), - 'error' => __( "Something went wrong, please refresh and try again." ), + 'connect_title' => __( "Thanks for choosing an AyeCode Product!", 'ayecode-connect' ), + 'connect_external' => __( "Please confirm you wish to connect your site?", 'ayecode-connect' ), + 'connect' => wp_sprintf( __( "Have a license? Forget about entering license keys or downloading zip files, connect your site for instant access. %slearn more%s", 'ayecode-connect' ), "", "" ), + 'connect_button' => __( "Connect Site", 'ayecode-connect' ), + 'connecting_button' => __( "Connecting...", 'ayecode-connect' ), + 'error_localhost' => __( "This service will only work with a live domain, not a localhost.", 'ayecode-connect' ), + 'error' => __( "Something went wrong, please refresh and try again.", 'ayecode-connect' ), ); $this->strings = array_merge( $default_strings, $strings ); - // set default pages $default_pages = array(); $this->pages = array_merge( $default_pages, $pages ); @@ -65,7 +60,6 @@ public function __construct( $strings = array(), $pages = array() ) { if ( ! has_action( 'wp_ajax_nopriv_ayecode_connect_helper_installed' ) ) { add_action( 'wp_ajax_nopriv_ayecode_connect_helper_installed', array( $this, 'ayecode_connect_helper_installed' ) ); } - } /** @@ -99,7 +93,6 @@ private function format_plugin_slug( $key ) { * Install and activate the AyeCode Connect Plugin */ public function ayecode_connect_install() { - // bail if localhost if ( $this->is_localhost() ) { wp_send_json_error( $this->strings['error_localhost'] ); @@ -302,19 +295,13 @@ public function ayecode_connect_install_notice() {

-

- +

- + - - + - pages ) ) { - // check if not active and connected if ( ! defined( 'AYECODE_CONNECT_VERSION' ) || ! get_option( 'ayecode_connect_blog_token' ) ) { $show = true; } - } return $show; } - } - } diff --git a/change-log.txt b/change-log.txt index f857219..2b0ae23 100644 --- a/change-log.txt +++ b/change-log.txt @@ -1,2 +1,5 @@ += 1.0.4 - 2023-12-14 = +* Update textdomain - CHANGED + = 1.0.3 = * Added version comparisons so we know if the connect message will show or not - ADDED \ No newline at end of file diff --git a/composer.json b/composer.json index d337403..4f39f59 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "ayecode/ayecode-connect-helper", - "version": "1.0.3", + "version": "1.0.4", "type": "library", "description": "Provides helper functionality for installing AyeCode Connect.", "keywords": ["AyeCode","AyeCode Connect","wp"],