Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
andergmartins committed Jan 8, 2025
2 parents e58bfc8 + e64a3bc commit d48051b
Show file tree
Hide file tree
Showing 130 changed files with 226 additions and 161 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## UNRELEASED
## [4.3.0] - 08 Jan, 2025

### Added

Expand Down Expand Up @@ -55,6 +55,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Fix the first save of a workflow to transit from auto-saved to draft (Issue #1086).
- Fix warning about deprecated jQuery click() method in the workflow editor.
- Fix the auto-layout algorithm to avoid overlapping edges and correctly dimension each node and spacing between nodes (Issue #1102).
- Fix the warning about deprecated method `next` in the class `ActionScheduler_Schedule` (Issue #1107).

### Developers

Expand Down
2 changes: 1 addition & 1 deletion assets/css/woocommerce.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/

.fixed .column-expirationdate {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/251.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/360.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/631.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/workflowEditor.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assets/js/workflowEditor.min.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@

/**
* @license React
* use-sync-external-store-with-selector.production.min.js
* use-sync-external-store-with-selector.production.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
Expand Down
2 changes: 1 addition & 1 deletion assets/jsx/components/ButtonsPanel.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/

export const ButtonsPanel = function (props) {
Expand Down
2 changes: 1 addition & 1 deletion assets/jsx/components/CheckboxControl.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/
import { Fragment, useState } from "@wordpress/element";
import { CheckboxControl as WPCheckboxControl } from "@wordpress/components";
Expand Down
2 changes: 1 addition & 1 deletion assets/jsx/components/NonceControl.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/
import { Fragment } from "@wordpress/element";

Expand Down
2 changes: 1 addition & 1 deletion assets/jsx/components/PostTypeSettingsPanel.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/

import {
Expand Down
2 changes: 1 addition & 1 deletion assets/jsx/components/PostTypesSettingsPanels.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/

import { PostTypeSettingsPanel } from "./";
Expand Down
2 changes: 1 addition & 1 deletion assets/jsx/components/SelectControl.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/
import { Fragment } from "@wordpress/element";
import { SelectControl as WPSelectControl } from "@wordpress/components";
Expand Down
2 changes: 1 addition & 1 deletion assets/jsx/components/SettingRow.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/
import { Fragment } from "@wordpress/element";

Expand Down
2 changes: 1 addition & 1 deletion assets/jsx/components/SettingsFieldset.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/

export const SettingsFieldset = function (props) {
Expand Down
2 changes: 1 addition & 1 deletion assets/jsx/components/SettingsForm.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/

export const SettingsForm = function (props) {
Expand Down
2 changes: 1 addition & 1 deletion assets/jsx/components/SettingsSection.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/
import { Fragment } from "@wordpress/element";

Expand Down
2 changes: 1 addition & 1 deletion assets/jsx/components/SettingsTable.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/

export const SettingsTable = function (props) {
Expand Down
2 changes: 1 addition & 1 deletion assets/jsx/components/Spinner.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/
export const Spinner = function (props) {
return (
Expand Down
2 changes: 1 addition & 1 deletion assets/jsx/components/SubmitButton.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/

export const SubmitButton = function (props) {
Expand Down
2 changes: 1 addition & 1 deletion assets/jsx/components/TaxonomiesControl.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/

import { SelectControl } from ".";
Expand Down
2 changes: 1 addition & 1 deletion assets/jsx/components/TextControl.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/
import { Fragment } from "@wordpress/element";
import { TextControl as WPTextControl } from "@wordpress/components";
Expand Down
2 changes: 1 addition & 1 deletion assets/jsx/components/TokensControl.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/
import { Fragment, useState, useEffect } from "@wordpress/element";
import { FormTokenField } from "@wordpress/components";
Expand Down
2 changes: 1 addition & 1 deletion assets/jsx/components/TrueFalseControl.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/

export const TrueFalseControl = function (props) {
Expand Down
2 changes: 1 addition & 1 deletion assets/jsx/settings-general.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/

import { DateOffsetPreview } from "./components";
Expand Down
2 changes: 1 addition & 1 deletion assets/jsx/settings-post-types.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Ramble Ventures
* Copyright (c) 2025, Ramble Ventures
*/

import {
Expand Down
2 changes: 1 addition & 1 deletion languages/post-expirator-future_backup_panel.pot
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-12-20T19:02:49+00:00\n"
"POT-Creation-Date: 2025-01-08T16:03:46+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: post-expirator\n"
Expand Down
12 changes: 8 additions & 4 deletions languages/post-expirator-future_workflow_editor_script.pot
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-12-20T19:02:49+00:00\n"
"POT-Creation-Date: 2025-01-08T16:03:45+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: post-expirator\n"
Expand Down Expand Up @@ -182,7 +182,7 @@ msgid "Edit"
msgstr ""

#: components/data-fields/expression-builder/index.jsx:155
msgid "Single variable mode. Double click on a variable below to add it to your expression."
msgid "Single variable mode. Select a variable from the list below."
msgstr ""

#: components/data-fields/expression-builder/index.jsx:159
Expand All @@ -194,10 +194,14 @@ msgid "Variables"
msgstr ""

#: components/data-fields/expression-builder/index.jsx:189
msgid "Position the cursor where you want to add a variable and double click on a variable to add it to your expression."
msgid "Double-click on a variable to select it."
msgstr ""

#: components/data-fields/expression-builder/index.jsx:209
#: components/data-fields/expression-builder/index.jsx:193
msgid "Double-click on any variable to add it to your expression."
msgstr ""

#: components/data-fields/expression-builder/index.jsx:213
msgid "Hover over a variable to see its description."
msgstr ""

Expand Down
6 changes: 3 additions & 3 deletions languages/post-expirator.pot
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Copyright (C) 2024 PublishPress
# Copyright (C) 2025 PublishPress
# This file is distributed under the same license as the PublishPress Future plugin.
msgid ""
msgstr ""
"Project-Id-Version: PublishPress Future 4.3.0-beta.4\n"
"Project-Id-Version: PublishPress Future 4.3.0-beta.5\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/project\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-12-20T19:02:45+00:00\n"
"POT-Creation-Date: 2025-01-08T16:03:41+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: post-expirator\n"
Expand Down
8 changes: 6 additions & 2 deletions legacy/classes/Cli.class.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<?php

/**
* Copyright (c) 2024, Ramble Ventures
* PublishPress Future: Schedule Post Changes
*
* @package PublishPress\Future
* @author PublishPress
* @copyright Copyright (c) 2025, PublishPress
* @license GPLv2 or later
*/

defined('ABSPATH') or die('Direct access not allowed.');
Expand Down
11 changes: 8 additions & 3 deletions post-expirator.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
<?php

/**
* Plugin Name: PublishPress Future
* Plugin URI: http://wordpress.org/extend/plugins/post-expirator/
* Description: PublishPress Future allows you to schedule automatic changes to posts, pages and other content types.
* Author: PublishPress
* Version: 4.3.0-beta.5
* Version: 4.3.0
* Author URI: http://publishpress.com
* Text Domain: post-expirator
* Domain Path: /languages
* Requires at least: 6.7
* Requires PHP: 7.4
*
*
* @package PublishPress\Future
* @author PublishPress
* @copyright Copyright (c) 2025, PublishPress
* @license GPLv2 or later
*/

namespace PublishPress\Future;
Expand Down Expand Up @@ -51,7 +56,7 @@
}

if (! defined('PUBLISHPRESS_FUTURE_VERSION')) {
define('PUBLISHPRESS_FUTURE_VERSION', '4.3.0-beta.5');
define('PUBLISHPRESS_FUTURE_VERSION', '4.3.0');
}

if (! defined('PUBLISHPRESS_FUTURE_PLUGIN_FILE')) {
Expand Down
85 changes: 64 additions & 21 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Requires at least: 6.7
Requires PHP: 7.4
Tested up to: 6.7
License: GPLv2 or later
Stable tag: 4.2.0
Stable tag: 4.3.0

PublishPress Future can make scheduled changes to your content. You can unpublish posts, move posts to a new status, update the categories, and more.

Expand Down Expand Up @@ -173,6 +173,69 @@ Yes, the PublishPress Future plugin allows you to schedule automatic changes to

The full changelog can be found on [GitHub](https://github.com/publishpress/PublishPress-Future/blob/main/CHANGELOG.md).

## [4.3.0] - 08 Jan, 2025

### Added

- Add new variables selector and an expression builder (Issue #976).
- Add support to metadata in the variables resolvers and post type variables (Issue #1069, #939).
- Add the site ID to the site data type schema.
- Add the post author property to the post data type schema in the workflow editor (Issue #947).
- Add the post slug property to the post data type schema in the workflow editor.
- Add new trigger: Post is Published - PRO (Issue #944).
- Add new trigger: Post Status Changes - PRO (Issue #945).
- Add new trigger: Post is Scheduled - PRO (Issue #946).
- Add new trigger: Post Meta Changed - PRO (Issue #1059).
- Add new action: Post Meta Add - PRO (Issue #732).
- Add new action: Post Meta Delete - PRO (Issue #732).
- Add new action: Post Meta Update - PRO (Issue #732).
- Add the option to change manually enabled workflows in the bulk edit screen (Issue #942).
- Add the "Save as current status" shortcut to the workflow editor (CTRL/CMD + S) (Issue #1084).
- Add new display settings to customize the shortcode output (Issue #203).
- Add new step setting field to customize the step label in the workflow editor (Issue #1090).
- Add Future Action data support in the workflow editor, allowing to reference future actions in expressions (Issue #948).

### Changed

- Replace text fields and input/variables selectors on step settings with the new expression builder (Issue #976).
- Changed the border of selected steps to dashed line.
- Moved the panel "Step Data Flow" to the developer mode.
- Removed the arrow indicator from the workflow title and added a new Status column to the workflows list screen (Issue #970).
- Post's variable resolver now also accept a property without `post_` prefix.
- User's variable resolver now also accept a property without `user_` prefix.
- Changed the options in the "Debug Data" field to be more intuitive allowing a custom data expression to be selected.
- The conditional step now uses the new expression builder.
- Improved the UI in the conditional step settings.
- Added field descriptions to the post query step settings panel (Issue #1081).
- Only display the bulk edit option "Update Future Action from Post Metadata" if feature is enabled (Issue #622).
- Updated language files.
- Remove focus from the toolbar Delete button when workflow step is selected (Issue #1083).
- Improved the text in the variables selector modal.

### Fixed

- Fix error when the date or time format is empty in the settings page (Issue #212).
- Fix empty title and label in the future action panel when custom title and label are not set (Issue #1075).
- Fix the width of the checkbox in the future action panel (#1076).
- Fix the permalink in the Post Updated trigger for the post before variable.
- Fix the variable names in the "Add extra terms to post" step (Issue #1079).
- Fix the validation message for the recipient field in the Send Email step (Issue #1078).
- Fix the date format in the shortcode.
- Fix loading a workflow that doesn't have a specific step type (Issue #883).
- Fix the first save of a workflow to transit from auto-saved to draft (Issue #1086).
- Fix warning about deprecated jQuery click() method in the workflow editor.
- Fix the auto-layout algorithm to avoid overlapping edges and correctly dimension each node and spacing between nodes (Issue #1102).
- Fix the warning about deprecated method `next` in the class `ActionScheduler_Schedule` (Issue #1107).

### Developers

- Deprecated the method `get_wp_date` in the class `PostExpirator_Util` and use the method `getWpDate` from the class `PublishPress\Future\Framework\WordPress\Facade\DateTimeFacade instead.
- Deprecated the method `wp_timezone_string` in the class `PostExpirator_Util` and use the method `getTimezoneString` from the class `PublishPress\Future\Framework\System\DateTimeHandler` instead.
- Deprecated the method `get_timezone_offset` in the class `PostExpirator_Util`.
- Deprecated the method `sanitize_array_of_integers` in the class `PostExpirator_Util`.
- Add new param $metaValue to the method `deleteMeta` in the class `PublishPress\Future\Framework\WordPress\Models\PostModel`.
- Remove the `steps` property from the workflow data type schema.

## [4.2.0] - 09 Dec, 2024

### Added
Expand Down Expand Up @@ -348,23 +411,3 @@ The full changelog can be found on [GitHub](https://github.com/publishpress/Publ
- The method 'PublishPress\Future\Modules\Workflows\Models\WorkflowModel::getStepFromRoutineTreeRecursively' now always returns an array.
- Add new filter 'action_scheduler_list_table_column_recurrence' to filter the recurrence column in the scheduled actions list.
- Add new method 'getNodeById' to the class 'PublishPress\Future\Modules\Workflows\Models\WorkflowModel'.

## [3.4.4] - 21 Aug, 2024

### Fixed

- Improve notice message when scheduled action runs after pressing "run" (PR #896).
- Fixed support for the Event Espresso plugin (PR #900).
- Fixed React warning about createRoot being deprecated.
- Fixed empty fieldset displayed when the bos is disabled for the post type (Issue #792).
- Update language files.

### Changed

- Add tabs for post types in the post types settings page (PR #895).

### Added

- Added computed date preview to the general settings page (PR #897).
- Added option to hide the calendar by default in the future action panel (PR #899).
- Added new filter `publishpressfuture_posts_future_action_column_output` to the Future Action column.
8 changes: 8 additions & 0 deletions services.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<?php
/**
* PublishPress Future: Schedule Post Changes
*
* @package PublishPress\Future
* @author PublishPress
* @copyright Copyright (c) 2025, PublishPress
* @license GPLv2 or later
*/

defined("ABSPATH") or die("Direct access not allowed.");

Expand Down
Loading

0 comments on commit d48051b

Please sign in to comment.