Fix plugin details popup to show correct version and changelog
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user