Fix plugin details popup to show correct version and changelog

This commit is contained in:
2025-04-13 02:02:31 +01:00
parent 785e6df89e
commit 203ce96618
2 changed files with 78 additions and 8 deletions

View File

@ -7,6 +7,7 @@ set -e
PLUGIN_SLUG="wp-fix-plugin-does-not-exist-notices"
SOURCE_DIR="/Users/marcusquinn/Git/wp-fix-plugin-does-not-exist-notices/build/$PLUGIN_SLUG"
DEST_DIR="/Users/marcusquinn/Local/plugin-testing/app/public/wp-content/plugins/$PLUGIN_SLUG"
WP_CLI="/Users/marcusquinn/Local/plugin-testing/app/bin/wp"
# Check if build directory exists
if [ ! -d "$SOURCE_DIR" ]; then
@ -30,5 +31,16 @@ fi
echo "Deploying to local WordPress installation..."
rsync -av --delete "$SOURCE_DIR/" "$DEST_DIR/"
# Clear WordPress transients to ensure fresh plugin data
echo "Clearing WordPress transients..."
if [ -f "$WP_CLI" ]; then
cd /Users/marcusquinn/Local/plugin-testing/app/public
"$WP_CLI" transient delete --all
"$WP_CLI" cache flush
echo "✅ WordPress transients cleared"
else
echo "⚠️ WP-CLI not found, skipping transient clearing"
fi
echo "✅ Local deployment successful!"
echo "Plugin deployed to: $DEST_DIR"