@styleflow.app/flowpress-deploy 1.0.0-beta.2 → 1.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/flowpress-deploy.php +2 -2
- package/includes/automatic-build.php +22 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.3 — 2026-10-14
|
|
4
|
+
|
|
5
|
+
- Queue complete builds for term-only changes to published content, including withdrawal after a visibility change. Keep unchanged assignments idle and avoid private data in the queue.
|
|
6
|
+
- Verified public → private → public on disposable WordPress with all outbound HTTP intercepted.
|
|
7
|
+
- [Canonical integration report](https://github.com/StyleFlow-App/styleflow-docs/blob/main/dev/rapporti/2026-10-14-consolidamento-tessari.md).
|
|
8
|
+
|
|
3
9
|
## 1.0.0-beta.2 — 2026-10-14
|
|
4
10
|
|
|
5
11
|
- Automatic debounced editorial builds and public asset validation/history.
|
package/flowpress-deploy.php
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Plugin Name: FlowPress Deploy
|
|
4
4
|
* Description: Revision-safe editorial build queue and deployment capability for FlowPress.
|
|
5
|
-
* Version: 1.0.0-beta.
|
|
5
|
+
* Version: 1.0.0-beta.3
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
if (! defined('ABSPATH')) {
|
|
9
9
|
exit;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
define('FLOWPRESS_DEPLOY_VERSION', '1.0.0-beta.
|
|
12
|
+
define('FLOWPRESS_DEPLOY_VERSION', '1.0.0-beta.3');
|
|
13
13
|
define('FLOWPRESS_DEPLOY_FILE', __FILE__);
|
|
14
14
|
|
|
15
15
|
require_once __DIR__ . '/includes/queue-provider.php';
|
|
@@ -55,16 +55,33 @@ function flowpress_deploy_taxonomy_affects_public_build(string $taxonomy): bool
|
|
|
55
55
|
return $object && (bool) apply_filters('flowpress_deploy_taxonomy_affects_public_build', $object->public, $taxonomy);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
/** Term-only changes bypass save_post, including a public-to-private transition. */
|
|
59
|
+
add_action('set_object_terms', static function (int $id, $terms, $tt_ids, string $taxonomy, bool $append, $old_tt_ids): void {
|
|
60
|
+
$post = get_post($id);
|
|
61
|
+
if (! $post instanceof WP_Post || $post->post_status !== 'publish'
|
|
62
|
+
|| ! (get_post_type_object($post->post_type)->public ?? false)) return;
|
|
63
|
+
$current = array_map('intval', (array) $tt_ids);
|
|
64
|
+
$previous = array_map('intval', (array) $old_tt_ids);
|
|
65
|
+
sort($current); sort($previous);
|
|
66
|
+
if (! $append && $current === $previous) return;
|
|
67
|
+
// Hidden visibility/recipient taxonomies also affect public artifacts.
|
|
68
|
+
// A global descriptor avoids placing private titles or URLs in the queue.
|
|
69
|
+
flowpress_enqueue_build_change('global', 0, '/', 'update', true);
|
|
70
|
+
flowpress_deploy_schedule_public_build();
|
|
71
|
+
}, 40, 6);
|
|
61
72
|
foreach (['created_term', 'edited_term', 'pre_delete_term'] as $hook) {
|
|
62
73
|
$callback = $hook === 'pre_delete_term'
|
|
63
74
|
? static function (int $id, string $taxonomy): void {
|
|
64
|
-
if (flowpress_deploy_taxonomy_affects_public_build($taxonomy))
|
|
75
|
+
if (flowpress_deploy_taxonomy_affects_public_build($taxonomy)) {
|
|
76
|
+
flowpress_enqueue_build_change('global', 0, '/', 'update', true);
|
|
77
|
+
flowpress_deploy_schedule_public_build();
|
|
78
|
+
}
|
|
65
79
|
}
|
|
66
80
|
: static function (int $id, int $tt_id, string $taxonomy): void {
|
|
67
|
-
if (flowpress_deploy_taxonomy_affects_public_build($taxonomy))
|
|
81
|
+
if (flowpress_deploy_taxonomy_affects_public_build($taxonomy)) {
|
|
82
|
+
flowpress_enqueue_build_change('global', 0, '/', 'update', true);
|
|
83
|
+
flowpress_deploy_schedule_public_build();
|
|
84
|
+
}
|
|
68
85
|
};
|
|
69
86
|
add_action($hook, $callback, 40, $hook === 'pre_delete_term' ? 2 : 3);
|
|
70
87
|
}
|