Fix missing View details link and GitHub icon, update deploy script to use .gitignore

This commit is contained in:
2025-04-13 01:48:50 +01:00
parent eb496a79c0
commit 5fc753e940
2 changed files with 32 additions and 1 deletions

26
scripts/deploy-local.sh Executable file
View File

@ -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"

View File

@ -155,7 +155,7 @@ class Fix_Plugin_Does_Not_Exist_Notices {
'<code>/wp-content/plugins/</code>' '<code>/wp-content/plugins/</code>'
), ),
'Version' => FPDEN_VERSION, // Use our plugin version instead of 'N/A' 'Version' => FPDEN_VERSION, // Use our plugin version instead of 'N/A'
'Author' => 'Marcus Quinn & WP ALLSTARS', 'Author' => '<a href="https://www.wpallstars.com">Marcus Quinn & WP ALLSTARS</a>',
'PluginURI' => 'https://www.wpallstars.com', 'PluginURI' => 'https://www.wpallstars.com',
'AuthorURI' => 'https://www.wpallstars.com', 'AuthorURI' => 'https://www.wpallstars.com',
'Title' => $plugin_name . ' (' . __( 'Missing', 'wp-fix-plugin-does-not-exist-notices' ) . ')', '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 // Add fields needed for the "View details" link
'slug' => $plugin_slug, 'slug' => $plugin_slug,
'plugin' => $plugin_path, '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',
); );
} }
} }