Skip to content

Commit

Permalink
Merge pull request #1253 from bluehost/fix/capability-transient-migra…
Browse files Browse the repository at this point in the history
…tion

Fix/capability transient migration
  • Loading branch information
circlecube authored Aug 14, 2024
2 parents 3615189 + fedddac commit 14d15f9
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 71 deletions.
4 changes: 2 additions & 2 deletions bluehost-wordpress-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Plugin URI: https://bluehost.com
* Update URI: https://github.com/bluehost/bluehost-wordpress-plugin
* Description: WordPress plugin that integrates a WordPress site with the Bluehost control panel, including performance, security, and update features.
* Version: 3.14.2
* Version: 3.14.3
* Requires at least: 6.4
* Requires PHP: 7.3
* Tested up to: 6.6.1
Expand All @@ -32,7 +32,7 @@
}

// Define constants
define( 'BLUEHOST_PLUGIN_VERSION', '3.14.2' );
define( 'BLUEHOST_PLUGIN_VERSION', '3.14.3' );
define( 'BLUEHOST_PLUGIN_FILE', __FILE__ );
define( 'BLUEHOST_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'BLUEHOST_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
Expand Down
19 changes: 19 additions & 0 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,3 +203,22 @@ function () {

// Instantiate the Features singleton
Features::getInstance();

/**
* Temporary hook to filter the capabilities in case they are empty
* This is to fix an issue where the migration value is not found on new sites
* Temporary fix to keep things working while we determing the root cause
*/
add_filter(
'transient_nfd_site_capabilities',
function ( $transient ) {
if ( empty( $transient ) ) {
return array(
'canMigrateSite' => true,
);
}
return $transient;
},
10,
2
);
130 changes: 67 additions & 63 deletions languages/wp-plugin-bluehost.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is distributed under the GPL 2.0 or later.
msgid ""
msgstr ""
"Project-Id-Version: The Bluehost Plugin 3.13.0\n"
"Project-Id-Version: The Bluehost Plugin 3.14.3\n"
"Report-Msgid-Bugs-To: https://github.com/bluehost/bluehost-wordpress-plugin/issues\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -86,43 +86,43 @@ msgstr ""

#: inc/Admin.php:70
#: inc/Admin.php:276
#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Home"
msgstr ""

#: inc/Admin.php:73
#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Pages & Posts"
msgstr ""

#: inc/Admin.php:76
#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Store"
msgstr ""

#: inc/Admin.php:79
#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Marketplace"
msgstr ""

#: inc/Admin.php:84
#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Performance"
msgstr ""

#: inc/Admin.php:88
#: inc/Admin.php:277
#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Settings"
msgstr ""

#: inc/Admin.php:93
#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Staging"
msgstr ""

#: inc/Admin.php:97
#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Help"
msgstr ""

Expand Down Expand Up @@ -192,220 +192,224 @@ msgstr ""
msgid "Auto-updates enabled"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Bluehost WordPress Plugin"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Oh No, An Error!"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "You found an error, please refresh the page and try again!"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "If the error persists, please contact support."
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid " Error code: "
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Bluehost Account"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "There's nothing here!"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Products & Services"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Sales & Promotions"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Sales Channel"
msgstr ""

#: build/3.14.3/index.js:1
msgid "Payments"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Store Details"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Admin"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "The staging feature provides a way to copy a site to test new updates, features or content."
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Sorry, that is not allowed."
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "This feature cannot currently be modified."
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Oops! Something went wrong. Please try again."
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Phone"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Call Us"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Chat"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Chat with one of our friendly Customer Care Specialists, as we are waiting to help. Open 24 hours - 7 days."
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Live Chat"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Tweet"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Find our team at @bluehost for updates on our products and support from our team."
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Tweet Us"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "YouTube"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Find tutorials, answers, interviews and guides on our YouTube channel."
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Watch Now"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Knowledge Base"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Articles, guides, how-tos, instructions, and answers to our client's most frequently asked questions."
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Visit Knowledge Base"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Resources"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Boost your online knowledge and get ahead of the competition."
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Explore Resources"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Events and Webinars"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Team Bluehost organizes multiple webinars and events throughout the year. We are also sponsors and speak at most WordCamps across the world. Join us at our next event!"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "More Info"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Bluehost Website"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Not finding what you need? Visit our website for more information about our products and services."
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Go to Bluehost"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Site Pages"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Edit your homepage and other existing pages or add new pages to your site."
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "View all"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Add New"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "The Help Center provides guided, step-by-step assistance as you build your site."
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Site Status"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Not Live"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Live"
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Your Bluehost Coming Soon page lets you hide your site from visitors while you make the magic happen."
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid "Your website is currently displaying a \"Coming Soon\" page."
msgstr ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid " revision."
msgid_plural " revisions."
msgstr[0] ""
msgstr[1] ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid " step back."
msgid_plural " steps back."
msgstr[0] ""
msgstr[1] ""

#: build/3.13.0/index.js:1
#: build/3.14.3/index.js:1
msgid " week."
msgid_plural " weeks."
msgstr[0] ""
msgstr[1] ""

#: build/3.13.0/index.js:1
msgid "Wonder Blocks provides a library of customizable block patterns and page templates."
#: build/3.14.3/index.js:1
msgid "WonderBlocks provides a library of customizable block patterns and page templates."
msgstr ""
Loading

0 comments on commit 14d15f9

Please sign in to comment.