From 5fc753e9406f7d082431dff7ed110aa132b78e0d Mon Sep 17 00:00:00 2001
From: marcusquinn <6428977+marcusquinn@users.noreply.github.com>
Date: Sun, 13 Apr 2025 01:48:50 +0100
Subject: [PATCH] Fix missing View details link and GitHub icon, update deploy
script to use .gitignore
---
scripts/deploy-local.sh | 26 ++++++++++++++++++++++++
wp-fix-plugin-does-not-exist-notices.php | 7 ++++++-
2 files changed, 32 insertions(+), 1 deletion(-)
create mode 100755 scripts/deploy-local.sh
diff --git a/scripts/deploy-local.sh b/scripts/deploy-local.sh
new file mode 100755
index 0000000..acad82c
--- /dev/null
+++ b/scripts/deploy-local.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+# Exit on error
+set -e
+
+# Define source and destination paths
+SOURCE_DIR="/Users/marcusquinn/Git/wp-fix-plugin-does-not-exist-notices"
+DEST_DIR="/Users/marcusquinn/Local/plugin-testing/app/public/wp-content/plugins/wp-fix-plugin-does-not-exist-notices"
+
+# Check if destination directory exists, create if not
+if [ ! -d "$DEST_DIR" ]; then
+ echo "Creating destination directory..."
+ mkdir -p "$DEST_DIR"
+fi
+
+# Rsync the plugin files to the local WordPress installation
+echo "Deploying to local WordPress installation..."
+rsync -av --delete \
+ --exclude-from="$SOURCE_DIR/.gitignore" \
+ --exclude="scripts" \
+ --exclude=".git" \
+ --exclude=".gitignore" \
+ "$SOURCE_DIR/" "$DEST_DIR/"
+
+echo "✅ Local deployment successful!"
+echo "Plugin deployed to: $DEST_DIR"
diff --git a/wp-fix-plugin-does-not-exist-notices.php b/wp-fix-plugin-does-not-exist-notices.php
index 7579e50..1cad0e0 100644
--- a/wp-fix-plugin-does-not-exist-notices.php
+++ b/wp-fix-plugin-does-not-exist-notices.php
@@ -155,7 +155,7 @@ class Fix_Plugin_Does_Not_Exist_Notices {
'/wp-content/plugins/
'
),
'Version' => FPDEN_VERSION, // Use our plugin version instead of 'N/A'
- 'Author' => 'Marcus Quinn & WP ALLSTARS',
+ 'Author' => 'Marcus Quinn & WP ALLSTARS',
'PluginURI' => 'https://www.wpallstars.com',
'AuthorURI' => 'https://www.wpallstars.com',
'Title' => $plugin_name . ' (' . __( 'Missing', 'wp-fix-plugin-does-not-exist-notices' ) . ')',
@@ -163,6 +163,11 @@ class Fix_Plugin_Does_Not_Exist_Notices {
// Add fields needed for the "View details" link
'slug' => $plugin_slug,
'plugin' => $plugin_path,
+ // Add fields for plugin details and Git Updater
+ 'update-supported' => true,
+ 'GitHub Plugin URI' => 'wpallstars/wp-fix-plugin-does-not-exist-notices',
+ 'GitHub Branch' => 'main',
+ 'TextDomain' => 'wp-fix-plugin-does-not-exist-notices',
);
}
}