Skip to content

Commit 9accef3

Browse files
author
10upbot on GitHub
committed
Committing built version of e0d8218
1 parent 1f3943d commit 9accef3

File tree

10 files changed

+35
-32
lines changed

10 files changed

+35
-32
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: Checkout
5656
uses: actions/checkout@v2
5757
- id: changed-files
58-
uses: tj-actions/changed-files@v36
58+
uses: tj-actions/changed-files@v41
5959
with:
6060
files: |
6161
**/*.php

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file, per [the Ke
44

55
## [Unreleased] - TBD
66

7+
## [2.0.3] - 2024-01-18
8+
### Added
9+
- New filter, `dt_post_to_pull`, that allows modifying the post to be pulled (props [@leogermani](https://github.com/leogermani), [@peterwilsoncc](https://github.com/peterwilsoncc), [@dkotter](https://github.com/dkotter) via [#1181](https://github.com/10up/distributor/pull/1181)).
10+
11+
### Fixed
12+
- Ensure the code snippet for keeping the original post date is correct (props [@leogermani](https://github.com/leogermani), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#1160](https://github.com/10up/distributor/pull/1160)).
13+
14+
### Security
15+
- Bump `tj-actions/changed-files` from 36 to 41 (props [@dependabot[bot]](https://github.com/apps/dependabot), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#1172](https://github.com/10up/distributor/pull/1172)).
16+
- Bump `@wordpress/scripts` from 26.6.0 to 26.19.0 (props [@dependabot[bot]](https://github.com/apps/dependabot), [@iamdharmesh](https://github.com/iamdharmesh) via [#1174](https://github.com/10up/distributor/pull/1174)).
17+
718
## [2.0.2] - 2023-11-29
819
### Added
920
- New snippet detailing how to disable automatic content updates (props [@dkotter](https://github.com/dkotter), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#1145](https://github.com/10up/distributor/pull/1145)).
@@ -504,6 +515,7 @@ This adds a post type selector when viewing the Pull Content list for both exter
504515
- Initial closed release.
505516

506517
[Unreleased]: https://github.com/10up/distributor/compare/trunk...develop
518+
[2.0.3]: https://github.com/10up/distributor/compare/2.0.2...2.0.3
507519
[2.0.2]: https://github.com/10up/distributor/compare/2.0.1...2.0.2
508520
[2.0.1]: https://github.com/10up/distributor/compare/2.0.0...2.0.1
509521
[2.0.0]: https://github.com/10up/distributor/compare/1.9.1...2.0.0

dist/css/admin.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/admin-css.min.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '9a7e1b6ae7baeea80d4c');
1+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '8220a935bcadeb95c3f2');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('wp-components', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'e098cedb2b7751ef5b39');
1+
<?php return array('dependencies' => array('react', 'wp-components', 'wp-data', 'wp-edit-post', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '97ad6470ab1749788a36');

dist/js/gutenberg-plugin.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

distributor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin URI: https://github.com/10up/distributor
55
* Update URI: https://distributorplugin.com
66
* Description: Makes it easy to distribute and reuse content across your websites, whether inside of a multisite or across the web.
7-
* Version: 2.0.2
7+
* Version: 2.0.3
88
* Requires at least: 5.7
99
* Requires PHP: 7.4
1010
* Author: 10up Inc.
@@ -28,7 +28,7 @@
2828
exit; // Exit if accessed directly.
2929
}
3030

31-
define( 'DT_VERSION', '2.0.2' );
31+
define( 'DT_VERSION', '2.0.3' );
3232
define( 'DT_PLUGIN_FILE', preg_replace( '#^.*plugins/(.*)$#i', '$1', __FILE__ ) );
3333
define( 'DT_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
3434
define( 'DT_PLUGIN_FULL_FILE', __FILE__ );

includes/classes/DistributorPost.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,17 @@ protected function to_pull_list( $args = array() ) {
918918
$display_data['distributor_original_site_name'] = $this->source_site['name'];
919919
$display_data['distributor_original_site_url'] = $this->source_site['home_url'];
920920

921-
return $display_data;
921+
/**
922+
* Filters the post data for when they are being formated for a pull
923+
*
924+
* @since 2.0.3
925+
* @hook dt_post_to_pull
926+
*
927+
* @param {array} $display_data The post data.
928+
*
929+
* @return {array} Modified post data.
930+
*/
931+
return apply_filters( 'dt_post_to_pull', $display_data );
922932
}
923933

924934
/**

lang/distributor.pot

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# Copyright (C) 2023 10up Inc.
1+
# Copyright (C) 2024 10up Inc.
22
# This file is distributed under the GPLv2 or later.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Distributor 2.0.2\n"
5+
"Project-Id-Version: Distributor 2.0.3\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/distributor\n"
77
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
88
"Language-Team: LANGUAGE <[email protected]>\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2023-11-29T21:39:26+00:00\n"
12+
"POT-Creation-Date: 2024-01-18T17:29:51+00:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"X-Generator: WP-CLI 2.9.0\n"
1515
"X-Domain: distributor\n"
@@ -612,6 +612,7 @@ msgid "Distributor not installed on remote site."
612612
msgstr ""
613613

614614
#: dist/js/admin-external-connection.min.js:1
615+
#: release/dist/js/admin-external-connection.min.js:1
615616
msgid "Authentication failed due to insufficient or invalid credentials."
616617
msgstr ""
617618

@@ -749,23 +750,3 @@ msgid "Selected connection (%d)"
749750
msgid_plural "Selected connections (%d)"
750751
msgstr[0] ""
751752
msgstr[1] ""
752-
753-
#: release/dist/js/admin-external-connection.min.js:1
754-
msgid "Limited connection established."
755-
msgstr ""
756-
757-
#: release/dist/js/admin-external-connection.min.js:1
758-
msgid "Authentication failed due to invalid credentials."
759-
msgstr ""
760-
761-
#: release/dist/js/admin-external-connection.min.js:1
762-
msgid "Authentication succeeded but your account does not have permissions to create posts on the external site."
763-
msgstr ""
764-
765-
#: release/dist/js/admin-external-connection.min.js:1
766-
msgid "Push distribution unavailable."
767-
msgstr ""
768-
769-
#: release/dist/js/admin-external-connection.min.js:1
770-
msgid "Pull distribution limited to basic content, i.e. title and content body."
771-
msgstr ""

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: content, distribution, syndication, management
44
Requires at least: 5.7
55
Tested up to: 6.4
66
Requires PHP: 7.4
7-
Stable tag: 2.0.2
7+
Stable tag: 2.0.3
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

0 commit comments

Comments
 (0)