diff --git a/includes/Admin/Forms/Post/Templates/Post_Form_Template_Events_Calendar.php b/includes/Admin/Forms/Post/Templates/Post_Form_Template_Events_Calendar.php index 970f4e831..170d2777e 100644 --- a/includes/Admin/Forms/Post/Templates/Post_Form_Template_Events_Calendar.php +++ b/includes/Admin/Forms/Post/Templates/Post_Form_Template_Events_Calendar.php @@ -182,7 +182,7 @@ public function __construct() { 'submit_text' => __( 'Create Event', 'wp-user-frontend' ), 'edit_post_status' => 'publish', 'edit_redirect_to' => 'same', - 'update_message' => __( 'Event has been updated successfully. View event', + 'update_message' => __( 'Event has been updated successfully. View event', 'wp-user-frontend' ), 'edit_url' => '', 'update_text' => __( 'Update Event', 'wp-user-frontend' ), @@ -192,28 +192,28 @@ public function __construct() { 'new_to' => get_option( 'admin_email' ), 'new_subject' => 'New event has been created', 'new_body' => 'Hi, -A new event has been created in your site %sitename% (%siteurl%). +A new event has been created in your site {sitename} ({siteurl}). Here is the details: -Event Title: %post_title% -Description: %post_content% -Short Description: %post_excerpt% -Author: %author% -Post URL: %permalink% -Edit URL: %editlink%', +Event Title: {post_title} +Description: {post_content} +Short Description: {post_excerpt} +Author: {author} +Post URL: {permalink} +Edit URL: {editlink}', 'edit' => 'off', 'edit_to' => get_option( 'admin_email' ), 'edit_subject' => 'Post has been edited', 'edit_body' => 'Hi, -The event "%post_title%" has been updated. +The event "{post_title}" has been updated Here is the details: -Event Title: %post_title% -Description: %post_content% -Short Description: %post_excerpt% -Author: %author% -Post URL: %permalink% -Edit URL: %editlink%', +Event Title: {post_title} +Description: {post_content} +Short Description: {post_excerpt} +Author: {author} +Post URL: {permalink} +Edit URL: {editlink}' ], ]; } diff --git a/includes/Admin/Forms/Post/Templates/Post_Form_Template_Post.php b/includes/Admin/Forms/Post/Templates/Post_Form_Template_Post.php index 7cf17fef3..8a76bdaea 100644 --- a/includes/Admin/Forms/Post/Templates/Post_Form_Template_Post.php +++ b/includes/Admin/Forms/Post/Templates/Post_Form_Template_Post.php @@ -148,7 +148,7 @@ public function __construct() { ], 'edit_post_status' => 'publish', 'edit_redirect_to' => 'same', - 'update_message' => __( 'Post has been updated successfully. View post', 'wp-user-frontend' ), + 'update_message' => __( 'Post has been updated successfully. View post', 'wp-user-frontend' ), 'edit_url' => '', 'update_text' => __( 'Update Post', 'wp-user-frontend' ), 'form_template' => 'post_form_template_post', @@ -157,28 +157,28 @@ public function __construct() { 'new_to' => get_option( 'admin_email' ), 'new_subject' => 'New post has been created', 'new_body' => 'Hi, - A new post has been created in your site %sitename% (%siteurl%). + A new post has been created in your site {sitename} ({siteurl}). Here is the details: - Post Title: %post_title% - Description: %post_content% - Short Description: %post_excerpt% - Author: %author% - Post URL: %permalink% - Edit URL: %editlink%', + Post Title: {post_title} + Description: {post_content} + Short Description: {post_excerpt} + Author: {author} + Post URL: {permalink} + Edit URL: {editlink}', 'edit' => 'off', 'edit_to' => get_option( 'admin_email' ), 'edit_subject' => 'Post has been edited', 'edit_body' => 'Hi, - The post "%post_title%" has been updated. + The post "{post_title}" has been updated Here is the details: - Post Title: %post_title% - Description: %post_content% - Short Description: %post_excerpt% - Author: %author% - Post URL: %permalink% - Edit URL: %editlink%', + Post Title: {post_title} + Description: {post_content} + Short Description: {post_excerpt} + Author: {author} + Post URL: {permalink} + Edit URL: {editlink}' ], ]; } diff --git a/includes/Admin/Forms/Post/Templates/Post_Form_Template_WooCommerce.php b/includes/Admin/Forms/Post/Templates/Post_Form_Template_WooCommerce.php index 926cb7cc3..eb0d821c3 100644 --- a/includes/Admin/Forms/Post/Templates/Post_Form_Template_WooCommerce.php +++ b/includes/Admin/Forms/Post/Templates/Post_Form_Template_WooCommerce.php @@ -190,7 +190,7 @@ public function __construct() { 'submit_text' => 'Create Product', 'edit_post_status' => 'publish', 'edit_redirect_to' => 'same', - 'update_message' => 'Product has been updated successfully. View Product', + 'update_message' => 'Product has been updated successfully. View Product', 'edit_url' => '', 'update_text' => 'Update Product', 'form_template' => 'post_form_template_woocommerce', @@ -199,28 +199,28 @@ public function __construct() { 'new_to' => get_option( 'admin_email' ), 'new_subject' => 'New product has been created', 'new_body' => 'Hi, -A new product has been created in your site %sitename% (%siteurl%). +A new product has been created in your site {sitename} ({siteurl}). Here is the details: -Product Title: %post_title% -Description: %post_content% -Short Description: %post_excerpt% -Author: %author% -Post URL: %permalink% -Edit URL: %editlink%', +Product Title: {post_title} +Description: {post_content} +Short Description: {post_excerpt} +Author: {author} +Post URL: {permalink} +Edit URL: {editlink}', 'edit' => 'off', 'edit_to' => get_option( 'admin_email' ), 'edit_subject' => 'Product has been edited', 'edit_body' => 'Hi, -The product "%post_title%" has been updated. +The product "{post_title}" has been updated Here is the details: -Product Title: %post_title% -Description: %post_content% -Short Description: %post_excerpt% -Author: %author% -Post URL: %permalink% -Edit URL: %editlink%', +Product Title: {post_title} +Description: {post_content} +Short Description: {post_excerpt} +Author: {author} +Post URL: {permalink} +Edit URL: {editlink}' ], ]; } diff --git a/includes/Admin/Upgrades.php b/includes/Admin/Upgrades.php index cd22dc367..68d0b3699 100644 --- a/includes/Admin/Upgrades.php +++ b/includes/Admin/Upgrades.php @@ -24,6 +24,7 @@ class Upgrades { '2.9.2' => 'upgrades/upgrade-2.9.2.php', '3.6.0' => 'upgrades/upgrade-3.6.0.php', '4.0.4' => 'upgrades/upgrade-4.0.4.php', + '4.0.11' => 'upgrades/upgrade-4.0.11.php', ]; /** @@ -53,7 +54,6 @@ public function get_version() { * @return bool */ public function needs_update() { - // may be it's the first install if ( ! $this->get_version() ) { return false; @@ -88,11 +88,10 @@ public function perform_updates() { if ( file_exists( $path ) ) { include_once $path; } - update_option( 'wpuf_version', $version ); } } - update_option( 'wpuf_version', WPUF_VERSION ); + update_option( wpuf()->get_db_version_key(), WPUF_VERSION ); } /** @@ -118,8 +117,8 @@ public function show_upgrade_notice() { ); ?>
-

%s', esc_attr__( 'WPUF Data Update Required', 'wp-user-frontend' ) ); ?>

-

+

%s', esc_html__( 'WPUF Data Update Required', 'wp-user-frontend' ) ); ?>

+