Merge pull request 'v1.6.2' (#2) from v1.6.2 into main
Reviewed-on: wpallstars/fix-plugin-does-not-exist-notices#2
This commit is contained in:
@ -2,6 +2,14 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
## [1.6.2] - 2024-05-15
|
||||||
|
### Changed
|
||||||
|
- Updated POT file version for consistency
|
||||||
|
- Improved JavaScript localization with proper fallbacks
|
||||||
|
- Enhanced code quality for WordPress.org submission
|
||||||
|
- Fixed Git Updater configuration with correct Update URI
|
||||||
|
- Improved update server URL configuration
|
||||||
|
|
||||||
## [1.6.1] - 2024-05-15
|
## [1.6.1] - 2024-05-15
|
||||||
### Added
|
### Added
|
||||||
- AI assistant guide and workflow documentation
|
- AI assistant guide and workflow documentation
|
||||||
|
@ -18,11 +18,18 @@
|
|||||||
var ourNotice = document.createElement('div');
|
var ourNotice = document.createElement('div');
|
||||||
ourNotice.className = 'prc-notice';
|
ourNotice.className = 'prc-notice';
|
||||||
|
|
||||||
// Add content (using localized strings passed via wp_localize_script if needed, but simple for now)
|
// Add content using localized strings passed via wp_localize_script
|
||||||
|
var pluginMissingText = typeof fpdenData !== 'undefined' && fpdenData.i18n && fpdenData.i18n.pluginMissing ?
|
||||||
|
fpdenData.i18n.pluginMissing : 'Plugin file missing';
|
||||||
|
var removeReferenceText = typeof fpdenData !== 'undefined' && fpdenData.i18n && fpdenData.i18n.removeReference ?
|
||||||
|
fpdenData.i18n.removeReference : 'Remove Reference';
|
||||||
|
var clickToScrollText = typeof fpdenData !== 'undefined' && fpdenData.i18n && fpdenData.i18n.clickToScroll ?
|
||||||
|
fpdenData.i18n.clickToScroll : 'Click here to scroll to missing plugins';
|
||||||
|
|
||||||
ourNotice.innerHTML = '<h3 style="margin-top:0;color:#826200;">👉 Fix Plugin Does Not Exist Notices Can Fix This</h3>' +
|
ourNotice.innerHTML = '<h3 style="margin-top:0;color:#826200;">👉 Fix Plugin Does Not Exist Notices Can Fix This</h3>' +
|
||||||
'<p>To remove the above error notification, scroll down to find the plugin marked with "<strong style="color:red">(File Missing)</strong>" and click its "<strong>Remove Reference</strong>" link.</p>' +
|
'<p>To remove the above error notification, scroll down to find the plugin marked with "<strong style="color:red">(' + pluginMissingText + ')</strong>" and click its "<strong>' + removeReferenceText + '</strong>" link.</p>' +
|
||||||
'<p>This will permanently remove the missing plugin reference from your database.</p>' +
|
'<p>This will permanently remove the missing plugin reference from your database.</p>' +
|
||||||
'<p><a href="#" id="prc-scroll-to-plugin" style="font-weight:bold;text-decoration:underline;color:#826200;">Click here to scroll to the missing plugin</a></p>';
|
'<p><a href="#" id="prc-scroll-to-plugin" style="font-weight:bold;text-decoration:underline;color:#826200;">' + clickToScrollText + '</a></p>';
|
||||||
|
|
||||||
// Insert our notice right after the error
|
// Insert our notice right after the error
|
||||||
notice.parentNode.insertBefore(ourNotice, notice.nextSibling);
|
notice.parentNode.insertBefore(ourNotice, notice.nextSibling);
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
* Plugin Name: Fix 'Plugin file does not exist.' Notices
|
* Plugin Name: Fix 'Plugin file does not exist.' Notices
|
||||||
* Plugin URI: https://wordpress.org/plugins/fix-plugin-does-not-exist-notices/
|
* Plugin URI: https://wordpress.org/plugins/fix-plugin-does-not-exist-notices/
|
||||||
* Description: Adds missing plugins to the plugins list with a "Remove Reference" link so you can permanently clean up invalid plugin entries and remove error notices.
|
* Description: Adds missing plugins to the plugins list with a "Remove Reference" link so you can permanently clean up invalid plugin entries and remove error notices.
|
||||||
* Version: 1.6.1
|
* Version: 1.6.2
|
||||||
* Author: Marcus Quinn
|
* Author: Marcus Quinn
|
||||||
* Author URI: https://www.wpallstars.com
|
* Author URI: https://www.wpallstars.com
|
||||||
* License: GPL-2.0+
|
* License: GPL-2.0+
|
||||||
@ -20,6 +20,7 @@
|
|||||||
* Domain Path: /languages
|
* Domain Path: /languages
|
||||||
* Requires at least: 5.0
|
* Requires at least: 5.0
|
||||||
* Requires PHP: 7.0
|
* Requires PHP: 7.0
|
||||||
|
* Update URI: https://git-updater.wpallstars.com
|
||||||
* GitHub Plugin URI: wpallstars/fix-plugin-does-not-exist-notices
|
* GitHub Plugin URI: wpallstars/fix-plugin-does-not-exist-notices
|
||||||
* GitHub Branch: main
|
* GitHub Branch: main
|
||||||
* Gitea Plugin URI: wpallstars/fix-plugin-does-not-exist-notices
|
* Gitea Plugin URI: wpallstars/fix-plugin-does-not-exist-notices
|
||||||
@ -45,7 +46,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Define plugin constants
|
// Define plugin constants
|
||||||
define( 'FPDEN_VERSION', '1.6.1' );
|
define( 'FPDEN_VERSION', '1.6.2' );
|
||||||
define( 'FPDEN_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
define( 'FPDEN_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
||||||
define( 'FPDEN_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
define( 'FPDEN_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
||||||
define( 'FPDEN_PLUGIN_FILE', __FILE__ );
|
define( 'FPDEN_PLUGIN_FILE', __FILE__ );
|
||||||
|
@ -9,7 +9,7 @@ namespace WPAllStars\FixPluginDoesNotExistNotices;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Updater
|
* Class Updater
|
||||||
*
|
*
|
||||||
* Handles plugin updates from different sources based on installation origin.
|
* Handles plugin updates from different sources based on installation origin.
|
||||||
*/
|
*/
|
||||||
class Updater {
|
class Updater {
|
||||||
@ -59,7 +59,7 @@ class Updater {
|
|||||||
private function determine_installation_source() {
|
private function determine_installation_source() {
|
||||||
// Default to WordPress.org
|
// Default to WordPress.org
|
||||||
$source = 'wordpress.org';
|
$source = 'wordpress.org';
|
||||||
|
|
||||||
// Check if the plugin was installed from GitHub
|
// Check if the plugin was installed from GitHub
|
||||||
if ($this->is_github_installation()) {
|
if ($this->is_github_installation()) {
|
||||||
$source = 'github';
|
$source = 'github';
|
||||||
@ -68,7 +68,7 @@ class Updater {
|
|||||||
elseif ($this->is_gitea_installation()) {
|
elseif ($this->is_gitea_installation()) {
|
||||||
$source = 'gitea';
|
$source = 'gitea';
|
||||||
}
|
}
|
||||||
|
|
||||||
return $source;
|
return $source;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ class Updater {
|
|||||||
private function is_github_installation() {
|
private function is_github_installation() {
|
||||||
// Check for GitHub-specific markers in the plugin directory
|
// Check for GitHub-specific markers in the plugin directory
|
||||||
$plugin_dir = plugin_dir_path($this->plugin_file);
|
$plugin_dir = plugin_dir_path($this->plugin_file);
|
||||||
|
|
||||||
// Look for .git directory with GitHub remote
|
// Look for .git directory with GitHub remote
|
||||||
if (file_exists($plugin_dir . '.git')) {
|
if (file_exists($plugin_dir . '.git')) {
|
||||||
$git_config = @file_get_contents($plugin_dir . '.git/config');
|
$git_config = @file_get_contents($plugin_dir . '.git/config');
|
||||||
@ -88,12 +88,12 @@ class Updater {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for GitHub-specific files that might indicate it was downloaded from GitHub
|
// Check for GitHub-specific files that might indicate it was downloaded from GitHub
|
||||||
if (file_exists($plugin_dir . '.github')) {
|
if (file_exists($plugin_dir . '.github')) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ class Updater {
|
|||||||
private function is_gitea_installation() {
|
private function is_gitea_installation() {
|
||||||
// Check for Gitea-specific markers in the plugin directory
|
// Check for Gitea-specific markers in the plugin directory
|
||||||
$plugin_dir = plugin_dir_path($this->plugin_file);
|
$plugin_dir = plugin_dir_path($this->plugin_file);
|
||||||
|
|
||||||
// Look for .git directory with Gitea remote
|
// Look for .git directory with Gitea remote
|
||||||
if (file_exists($plugin_dir . '.git')) {
|
if (file_exists($plugin_dir . '.git')) {
|
||||||
$git_config = @file_get_contents($plugin_dir . '.git/config');
|
$git_config = @file_get_contents($plugin_dir . '.git/config');
|
||||||
@ -113,7 +113,7 @@ class Updater {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -136,10 +136,8 @@ class Updater {
|
|||||||
|
|
||||||
// Set the update server based on the installation source
|
// Set the update server based on the installation source
|
||||||
add_filter('gul_update_server', function() {
|
add_filter('gul_update_server', function() {
|
||||||
if ($this->source === 'github') {
|
if ($this->source === 'github' || $this->source === 'gitea') {
|
||||||
return 'https://wpallstars.com'; // GitHub update server
|
return 'https://git-updater.wpallstars.com'; // Update server for both GitHub and Gitea
|
||||||
} elseif ($this->source === 'gitea') {
|
|
||||||
return 'https://wpallstars.com'; // Gitea update server
|
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
});
|
});
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# This file is distributed under the GPL-2.0+.
|
# This file is distributed under the GPL-2.0+.
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Fix 'Plugin file does not exist.' Notices 1.6.0\n"
|
"Project-Id-Version: Fix 'Plugin file does not exist.' Notices 1.6.2\n"
|
||||||
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/fix-plugin-does-not-exist-notices\n"
|
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/fix-plugin-does-not-exist-notices\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
12
readme.txt
12
readme.txt
@ -5,7 +5,7 @@ Tags: plugins, missing plugins, cleanup, error fix, admin tools, plugin file doe
|
|||||||
Requires at least: 5.0
|
Requires at least: 5.0
|
||||||
Tested up to: 6.4
|
Tested up to: 6.4
|
||||||
Requires PHP: 7.0
|
Requires PHP: 7.0
|
||||||
Stable tag: 1.6.1
|
Stable tag: 1.6.2
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
|
||||||
@ -89,6 +89,13 @@ Although this plugin consumes minimal disk space, and doesn't run unless you are
|
|||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 1.6.2 =
|
||||||
|
* Updated POT file version for consistency
|
||||||
|
* Improved JavaScript localization with proper fallbacks
|
||||||
|
* Enhanced code quality for WordPress.org submission
|
||||||
|
* Fixed Git Updater configuration with correct Update URI
|
||||||
|
* Improved update server URL configuration
|
||||||
|
|
||||||
= 1.6.1 =
|
= 1.6.1 =
|
||||||
* Added AI assistant guide and workflow documentation
|
* Added AI assistant guide and workflow documentation
|
||||||
* Added detailed release process documentation
|
* Added detailed release process documentation
|
||||||
@ -177,6 +184,9 @@ Although this plugin consumes minimal disk space, and doesn't run unless you are
|
|||||||
|
|
||||||
== Upgrade Notice ==
|
== Upgrade Notice ==
|
||||||
|
|
||||||
|
= 1.6.2 =
|
||||||
|
Improved JavaScript localization, enhanced code quality, and fixed Git Updater configuration for seamless updates!
|
||||||
|
|
||||||
= 1.6.1 =
|
= 1.6.1 =
|
||||||
Added comprehensive AI assistant guide and workflow documentation for improved development processes!
|
Added comprehensive AI assistant guide and workflow documentation for improved development processes!
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user