diff --git a/README.md b/README.md
index 0094f3c..0c54ca8 100644
--- a/README.md
+++ b/README.md
@@ -18,16 +18,14 @@ An example of the shortcode is `[gallery-from-folder alt_id="sample-gallery"]`.
# About azurecurve
-**azurecurve** was one of the first plugin developers to start developing for ClassicPress; all plugins are available from [azurecurve Development](https://development.azurecurve.co.uk/) and are integrated with the [Update Manager plugin](https://directory.classicpress.net/plugins/update-manager) for fully integrated, no hassle, updates.
+**azurecurve** was one of the first plugin developers to start developing for Classicpress; all plugins are available from [azurecurve Development](https://development.azurecurve.co.uk/) and are integrated with the [Update Manager plugin](https://directory.classicpress.net/plugins/update-manager) for fully integrated, no hassle, updates.
The other plugins available from **azurecurve** are:
* Add Open Graph Tags - [details](https://development.azurecurve.co.uk/classicpress-plugins/add-open-graph-tags/) / [download](https://github.com/azurecurve/azrcrv-add-open-graph-tags/releases/latest/)
* Add Twitter Cards - [details](https://development.azurecurve.co.uk/classicpress-plugins/add-twitter-cards/) / [download](https://github.com/azurecurve/azrcrv-add-twitter-cards/releases/latest/)
* Avatars - [details](https://development.azurecurve.co.uk/classicpress-plugins/avatars/) / [download](https://github.com/azurecurve/azrcrv-avatars/releases/latest/)
- * BBCode - [details](https://development.azurecurve.co.uk/classicpress-plugins/bbcode/) / [download](https://github.com/azurecurve/azrcrv-bbcode/releases/latest/)
* Breadcrumbs - [details](https://development.azurecurve.co.uk/classicpress-plugins/breadcrumbs/) / [download](https://github.com/azurecurve/azrcrv-breadcrumbs/releases/latest/)
* Call-out Boxes - [details](https://development.azurecurve.co.uk/classicpress-plugins/call-out-boxes/) / [download](https://github.com/azurecurve/azrcrv-call-out-boxes/releases/latest/)
- * Check Plugin Status - [details](https://development.azurecurve.co.uk/classicpress-plugins/check-plugin-status/) / [download](https://github.com/azurecurve/azrcrv-check-plugin-status/releases/latest/)
* Code - [details](https://development.azurecurve.co.uk/classicpress-plugins/code/) / [download](https://github.com/azurecurve/azrcrv-code/releases/latest/)
* Comment Validator - [details](https://development.azurecurve.co.uk/classicpress-plugins/comment-validator/) / [download](https://github.com/azurecurve/azrcrv-comment-validator/releases/latest/)
* Conditional Links - [details](https://development.azurecurve.co.uk/classicpress-plugins/conditional-links/) / [download](https://github.com/azurecurve/azrcrv-conditional-links/releases/latest/)
@@ -39,7 +37,7 @@ The other plugins available from **azurecurve** are:
* Filtered Categories - [details](https://development.azurecurve.co.uk/classicpress-plugins/filtered-categories/) / [download](https://github.com/azurecurve/azrcrv-filtered-categories/releases/latest/)
* Flags - [details](https://development.azurecurve.co.uk/classicpress-plugins/flags/) / [download](https://github.com/azurecurve/azrcrv-flags/releases/latest/)
* Floating Featured Image - [details](https://development.azurecurve.co.uk/classicpress-plugins/floating-featured-image/) / [download](https://github.com/azurecurve/azrcrv-floating-featured-image/releases/latest/)
- * From Twitter - [details](https://development.azurecurve.co.uk/classicpress-plugins/from-twitter/) / [download](https://github.com/azurecurve/azrcrv-from-twitter/releases/latest/)
+ * Gallery From Folder - [details](https://development.azurecurve.co.uk/classicpress-plugins/gallery-from-folder/) / [download](https://github.com/azurecurve/azrcrv-gallery-from-folder/releases/latest/)
* Get GitHub File - [details](https://development.azurecurve.co.uk/classicpress-plugins/get-github-file/) / [download](https://github.com/azurecurve/azrcrv-get-github-file/releases/latest/)
* Icons - [details](https://development.azurecurve.co.uk/classicpress-plugins/icons/) / [download](https://github.com/azurecurve/azrcrv-icons/releases/latest/)
* Images - [details](https://development.azurecurve.co.uk/classicpress-plugins/images/) / [download](https://github.com/azurecurve/azrcrv-images/releases/latest/)
@@ -69,10 +67,8 @@ The other plugins available from **azurecurve** are:
* Taxonomy Order - [details](https://development.azurecurve.co.uk/classicpress-plugins/taxonomy-order/) / [download](https://github.com/azurecurve/azrcrv-taxonomy-order/releases/latest/)
* Theme Switcher - [details](https://development.azurecurve.co.uk/classicpress-plugins/theme-switcher/) / [download](https://github.com/azurecurve/azrcrv-theme-switcher/releases/latest/)
* Timelines - [details](https://development.azurecurve.co.uk/classicpress-plugins/timelines/) / [download](https://github.com/azurecurve/azrcrv-timelines/releases/latest/)
- * To Twitter - [details](https://development.azurecurve.co.uk/classicpress-plugins/to-twitter/) / [download](https://github.com/azurecurve/azrcrv-to-twitter/releases/latest/)
* Toggle Show/Hide - [details](https://development.azurecurve.co.uk/classicpress-plugins/toggle-showhide/) / [download](https://github.com/azurecurve/azrcrv-toggle-showhide/releases/latest/)
* Update Admin Menu - [details](https://development.azurecurve.co.uk/classicpress-plugins/update-admin-menu/) / [download](https://github.com/azurecurve/azrcrv-update-admin-menu/releases/latest/)
* URL Shortener - [details](https://development.azurecurve.co.uk/classicpress-plugins/url-shortener/) / [download](https://github.com/azurecurve/azrcrv-url-shortener/releases/latest/)
* Username Protection - [details](https://development.azurecurve.co.uk/classicpress-plugins/username-protection/) / [download](https://github.com/azurecurve/azrcrv-username-protection/releases/latest/)
- * Widget Announcements - [details](https://development.azurecurve.co.uk/classicpress-plugins/widget-announcements/) / [download](https://github.com/azurecurve/azrcrv-widget-announcements/releases/latest/)
-
\ No newline at end of file
+ * Widget Announcements - [details](https://development.azurecurve.co.uk/classicpress-plugins/widget-announcements/) / [download](https://github.com/azurecurve/azrcrv-widget-announcements/releases/latest/)
\ No newline at end of file
diff --git a/azrcrv-gallery-from-folder.php b/azrcrv-gallery-from-folder.php
index c9b9c89..34b21d0 100644
--- a/azrcrv-gallery-from-folder.php
+++ b/azrcrv-gallery-from-folder.php
@@ -1,14 +1,18 @@
=')) {
+ return;
+}
+
/**
* Remote updater class for ClassicPress plugin and themes.
*
@@ -56,16 +68,7 @@ class UpdateClient {
private $config;
/**
- * Default CP version.
- *
- * This value is used for comparison in the updates list table by core. This
- * property can be set to 4.9.x (whatever x might be at the time,) if you're
- * wanting to be exact. The issue with doing that is that you'd have to bump
- * that number with every new release of 4.9.x to ensure that core indicates
- * 100% compatibility in the table. If your plugin or theme is compatible to
- * WordPress 4.9.x, it is compatible with ClassicPress 1.x.x, so, there will
- * not be a need for this. Setting it to 4.9.99 ensures don't have to update
- * it again.
+ * Latest CP version.
*/
private $cp_latest_version = '4.9.99';
@@ -77,6 +80,9 @@ class UpdateClient {
*/
private $component_data = '';
+ private $identifier = null;
+ private $server_slug = null;
+
/**
* Constructor.
*
@@ -103,7 +109,7 @@ private function __construct() {
];
// Find and store the latest CP version during update process.
- $this->cp_latest_version = get_option('cp_latest_version', '');
+ $this->cp_latest_version = $this->get_latest_version_number();
// Hook the update client into the system.
$this->init();
@@ -188,11 +194,9 @@ public function print_admin_scripts() {
// Only need this JS/CSS on the plugin admin page and updates page.
if ($screen->base === 'plugins' || $screen->base === 'plugin-install') {
// This will make the jQuery below work with various languages.
- $text1 = esc_html__('Compatible up to:');
- $text2 = esc_html__('Reviews');
- $text3 = esc_html__('Read all reviews');
// Swap "Compatible up to: 4.9.99" with "Compatible up to: 1.1.1".
- echo ''."\n";
+ // Text domains are missing because the strings are already in CP.
+ echo ''."\n"; // phpcs:ignore WordPress.WP.I18n.MissingArgDomain
// Styles for the modal window.
echo '