Skip to content

Commit

Permalink
Committing built version of e0d8218
Browse files Browse the repository at this point in the history
  • Loading branch information
10upbot on GitHub committed Jan 18, 2024
1 parent 1f3943d commit 9accef3
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- id: changed-files
uses: tj-actions/changed-files@v36
uses: tj-actions/changed-files@v41
with:
files: |
**/*.php
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file, per [the Ke

## [Unreleased] - TBD

## [2.0.3] - 2024-01-18
### Added
- 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)).

### Fixed
- 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)).

### Security
- 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)).
- 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)).

## [2.0.2] - 2023-11-29
### Added
- 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)).
Expand Down Expand Up @@ -504,6 +515,7 @@ This adds a post type selector when viewing the Pull Content list for both exter
- Initial closed release.

[Unreleased]: https://github.com/10up/distributor/compare/trunk...develop
[2.0.3]: https://github.com/10up/distributor/compare/2.0.2...2.0.3
[2.0.2]: https://github.com/10up/distributor/compare/2.0.1...2.0.2
[2.0.1]: https://github.com/10up/distributor/compare/2.0.0...2.0.1
[2.0.0]: https://github.com/10up/distributor/compare/1.9.1...2.0.0
Expand Down
2 changes: 1 addition & 1 deletion dist/css/admin.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/js/admin-css.min.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '9a7e1b6ae7baeea80d4c');
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '8220a935bcadeb95c3f2');
2 changes: 1 addition & 1 deletion dist/js/gutenberg-plugin.min.asset.php
Original file line number Diff line number Diff line change
@@ -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');
<?php return array('dependencies' => array('react', 'wp-components', 'wp-data', 'wp-edit-post', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '97ad6470ab1749788a36');
2 changes: 1 addition & 1 deletion dist/js/gutenberg-plugin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions distributor.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://github.com/10up/distributor
* Update URI: https://distributorplugin.com
* Description: Makes it easy to distribute and reuse content across your websites, whether inside of a multisite or across the web.
* Version: 2.0.2
* Version: 2.0.3
* Requires at least: 5.7
* Requires PHP: 7.4
* Author: 10up Inc.
Expand All @@ -28,7 +28,7 @@
exit; // Exit if accessed directly.
}

define( 'DT_VERSION', '2.0.2' );
define( 'DT_VERSION', '2.0.3' );
define( 'DT_PLUGIN_FILE', preg_replace( '#^.*plugins/(.*)$#i', '$1', __FILE__ ) );
define( 'DT_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
define( 'DT_PLUGIN_FULL_FILE', __FILE__ );
Expand Down
12 changes: 11 additions & 1 deletion includes/classes/DistributorPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,17 @@ protected function to_pull_list( $args = array() ) {
$display_data['distributor_original_site_name'] = $this->source_site['name'];
$display_data['distributor_original_site_url'] = $this->source_site['home_url'];

return $display_data;
/**
* Filters the post data for when they are being formated for a pull
*
* @since 2.0.3
* @hook dt_post_to_pull
*
* @param {array} $display_data The post data.
*
* @return {array} Modified post data.
*/
return apply_filters( 'dt_post_to_pull', $display_data );
}

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

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

Expand Down Expand Up @@ -749,23 +750,3 @@ msgid "Selected connection (%d)"
msgid_plural "Selected connections (%d)"
msgstr[0] ""
msgstr[1] ""

#: release/dist/js/admin-external-connection.min.js:1
msgid "Limited connection established."
msgstr ""

#: release/dist/js/admin-external-connection.min.js:1
msgid "Authentication failed due to invalid credentials."
msgstr ""

#: release/dist/js/admin-external-connection.min.js:1
msgid "Authentication succeeded but your account does not have permissions to create posts on the external site."
msgstr ""

#: release/dist/js/admin-external-connection.min.js:1
msgid "Push distribution unavailable."
msgstr ""

#: release/dist/js/admin-external-connection.min.js:1
msgid "Pull distribution limited to basic content, i.e. title and content body."
msgstr ""
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: content, distribution, syndication, management
Requires at least: 5.7
Tested up to: 6.4
Requires PHP: 7.4
Stable tag: 2.0.2
Stable tag: 2.0.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down

0 comments on commit 9accef3

Please sign in to comment.