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', ); } }