Skip to content

Commit 8a99ce7

Browse files
committed
v1.1.2
1 parent b952795 commit 8a99ce7

File tree

4 files changed

+34
-25
lines changed

4 files changed

+34
-25
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -111,25 +111,30 @@ jobs:
111111
# 7. Create plugin ZIP
112112
- name: Create plugin ZIP
113113
run: |
114-
zip -r "${{ env.ZIP_FILE }}" . \
115-
-x '*.git*' \
116-
-x '.gitignore' \
117-
-x '*.github*' \
118-
-x '*.DS_Store*' \
119-
-x '*.py' \
120-
-x 'CLAUDE.md' \
121-
-x '.claude/*' \
122-
-x 'gh-pages-*/*' \
123-
-x 'docs/*' \
124-
-x 'phpdoc/*' \
125-
-x 'phpdoc.xml' \
126-
-x 'phpDocumentor.phar' \
127-
-x 'node_modules/*' \
128-
-x 'package.json' \
129-
-x 'package-lock.json' \
130-
-x 'webpack.config.js' \
131-
-x 'composer.json' \
132-
-x 'composer.lock'
114+
STAGING_DIR="${{ env.PLUGIN_SLUG }}"
115+
mkdir -p "$STAGING_DIR"
116+
rsync -a \
117+
--exclude='.git' \
118+
--exclude='.gitignore' \
119+
--exclude='.github' \
120+
--exclude='.DS_Store' \
121+
--exclude='*.py' \
122+
--exclude='CLAUDE.md' \
123+
--exclude='.claude' \
124+
--exclude='gh-pages-*' \
125+
--exclude='docs' \
126+
--exclude='phpdoc' \
127+
--exclude='phpdoc.xml' \
128+
--exclude='phpDocumentor.phar' \
129+
--exclude='node_modules' \
130+
--exclude='package.json' \
131+
--exclude='package-lock.json' \
132+
--exclude='webpack.config.js' \
133+
--exclude='composer.json' \
134+
--exclude='composer.lock' \
135+
. "$STAGING_DIR/"
136+
zip -r "${{ env.ZIP_FILE }}" "$STAGING_DIR"
137+
rm -rf "$STAGING_DIR"
133138
134139
# 7.1. Generate SHA256 checksum for security verification
135140
- name: Generate SHA256 checksum

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
**Plugin Name:** JPKCom Post Filter
44
**Plugin URI:** https://github.com/JPKCom/jpkcom-post-filter
55
**Description:** Faceted navigation and filtering of Posts, Pages, and Custom Post Types via WordPress taxonomies — SEO-friendly URLs, AJAX updates, and full screen reader support.
6-
**Version:** 1.1.1
6+
**Version:** 1.1.2
77
**Author:** Jean Pierre Kolb <jpk@jpkc.com>
88
**Author URI:** https://www.jpkc.com/
99
**Contributors:** JPKCom
1010
**Tags:** filter, taxonomy, faceted search, custom post type, AJAX
1111
**Requires at least:** 6.9
1212
**Tested up to:** 6.9
1313
**Requires PHP:** 8.3
14-
**Stable tag:** 1.1.1
14+
**Stable tag:** 1.1.2
1515
**License:** GPL-2.0-or-later
1616
**License URI:** https://www.gnu.org/licenses/gpl-2.0.html
1717
**Text Domain:** jpkcom-post-filter
@@ -531,6 +531,10 @@ Set **Stylesheet Mode** to "Disabled" in **Post Filter → Layout & Design → A
531531

532532
## Changelog
533533

534+
### 1.1.2
535+
- **Plugin Updater** — Fixed manual ZIP upload failing with "invalid URL" error by adding `wp_http_validate_url()` check in `verify_download_checksum()`
536+
- **Release Workflow** — Fixed ZIP packaging without top-level directory; WordPress now correctly recognises the update by using a staging directory with the plugin slug
537+
534538
### 1.1.1
535539
- **.github/workflows/release.yml** — "Build Gutenberg blocks" npm ci bugfix
536540

includes/class-plugin-updater.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ public function clear_cache( \WP_Upgrader $upgrader, array $options ): void {
387387
*/
388388
public function verify_download_checksum( $reply, string $package, \WP_Upgrader $upgrader ) {
389389
// Only verify downloads for this plugin
390-
if ( strpos( $package, $this->plugin_slug ) === false ) {
390+
if ( strpos( $package, $this->plugin_slug ) === false || ! wp_http_validate_url( $package ) ) {
391391
return $reply;
392392
}
393393

jpkcom-post-filter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
Plugin Name: JPKCom Post Filter
44
Plugin URI: https://github.com/JPKCom/jpkcom-post-filter
55
Description: Faceted navigation and filtering for Posts, Pages and Custom Post Types via WordPress taxonomies. Supports SEO-friendly URLs, AJAX filtering with history.pushState, and No-JS fallback.
6-
Version: 1.1.1
6+
Version: 1.1.2
77
Author: Jean Pierre Kolb <jpk@jpkc.com>
88
Author URI: https://www.jpkc.com/
99
Contributors: JPKCom
1010
Tags: Taxonomy, Tags, Filters, Facets, Navigation
1111
Requires at least: 6.9
1212
Tested up to: 6.9
1313
Requires PHP: 8.3
14-
Stable tag: 1.1.1
14+
Stable tag: 1.1.2
1515
License: GPL-2.0-or-later
1616
License URI: https://www.gnu.org/licenses/gpl-2.0.html
1717
Text Domain: jpkcom-post-filter
@@ -32,7 +32,7 @@
3232
* @since 1.0.0
3333
*/
3434
if ( ! defined( 'JPKCOM_POSTFILTER_VERSION' ) ) {
35-
define( 'JPKCOM_POSTFILTER_VERSION', '1.1.1' );
35+
define( 'JPKCOM_POSTFILTER_VERSION', '1.1.2' );
3636
}
3737

3838
if ( ! defined( 'JPKCOM_POSTFILTER_BASENAME' ) ) {

0 commit comments

Comments
 (0)