Skip to content

Commit 8c0e3e3

Browse files
author
10upbot on GitHub
committed
Committing built version of ac33532
1 parent 00d3977 commit 8c0e3e3

File tree

15 files changed

+91
-38
lines changed

15 files changed

+91
-38
lines changed

.github/workflows/build-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v1
12+
- uses: actions/checkout@v2.4.0
1313
- name: Use Node.js 10
1414
uses: actions/setup-node@v1
1515
with:

.github/workflows/build-stable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v2.4.0
1313
- name: Install and build
1414
run: |
1515
composer install --no-dev

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v2.4.0
1717
with:
1818
# We must fetch at least the immediate parents so that if this is
1919
# a pull request then we can checkout the head.
@@ -23,7 +23,7 @@ jobs:
2323
# the head of the pull request instead of the merge commit.
2424
- run: git checkout HEAD^2
2525
if: ${{ github.event_name == 'pull_request' }}
26-
26+
2727
# Initializes the CodeQL tools for scanning.
2828
- name: Initialize CodeQL
2929
uses: github/codeql-action/init@v1

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: eslint
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v2.4.0
1818
- name: install node v12
1919
uses: actions/setup-node@v1
2020
with:
@@ -32,7 +32,7 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v2
35+
uses: actions/checkout@v2.4.0
3636
- name: Set PHP version
3737
uses: shivammathur/setup-php@v2
3838
with:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout code
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v2.4.0
1212
- name: Create ZIP
1313
run: |
1414
git archive --prefix=distributor/ HEAD -o distributor.zip

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
# steps:
2727
# - name: Checkout
28-
# uses: actions/checkout@v2
28+
# uses: actions/checkout@v2.4.0
2929

3030
# - name: Set PHP version
3131
# uses: shivammathur/setup-php@v2
@@ -47,7 +47,7 @@ jobs:
4747

4848
steps:
4949
- name: Checkout
50-
uses: actions/checkout@v2
50+
uses: actions/checkout@v2.4.0
5151

5252
- name: Set PHP version
5353
uses: shivammathur/setup-php@v2

CHANGELOG.md

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

55
## [Unreleased] - TBD
66

7+
## [1.6.8] - 2022-02-02
8+
### Added
9+
- New hook `dt_get_pull_content_rest_query_args` to filter `WP_Query` args for the `list-pull-content` REST endpoint (props [@theskinnyghost](https://github.com/theskinnyghost), [@dkotter](https://github.com/dkotter) via [#839](https://github.com/10up/distributor/pull/839)).
10+
11+
### Changed
12+
- Clear out a user's authorized site list instead of rebuilding it on site changes (props [@dkotter](https://github.com/dkotter) , [@cadic](https://github.com/cadic) via [#829](https://github.com/10up/distributor/pull/829)).
13+
14+
### Fixed
15+
- Ensure the connection information we have is valid prior to using that for deletion (props [@dkotter](https://github.com/dkotter), [@LucyTurtle](https://github.com/LucyTurtle) via [#830](https://github.com/10up/distributor/pull/830)).
16+
- Ensure users can enter a per page limit of greater than 100 and have that properly used on the Pull Content screen for External Connections (props [@dkotter](https://github.com/dkotter), [@iamdharmesh](https://github.com/iamdharmesh), [@jmstew3](https://github.com/jmstew3) via [#831](https://github.com/10up/distributor/pull/831)).
17+
- Ensure the [Snippets tutorials](https://10up.github.io/distributor/tutorial-snippets.html) have a proper height (props [@dkotter](https://github.com/dkotter), [@pcrumm](https://github.com/pcrumm) via [#836](https://github.com/10up/distributor/pull/836)).
18+
19+
### Security
20+
- Bump `actions/checkout` in GitHub Action workflow files from v1/v2 to v2.4.0 (props [@faisal-alvi](https://github.com/faisal-alvi) via [#828](https://github.com/10up/distributor/pull/828)).
21+
722
## [1.6.7] - 2021-11-09
823
### Added
924
- Added `Snippets` page to [Distributor's documentation site](https://10up.github.io/distributor/) with helpful filters and callbacks (props [@claytoncollie](https://github.com/claytoncollie) via [#817](https://github.com/10up/distributor/pull/817)).
@@ -310,6 +325,7 @@ This adds a post type selector when viewing the Pull Content list for both exter
310325
- Initial closed release.
311326

312327
[Unreleased]: https://github.com/10up/distributor/compare/trunk...develop
328+
[1.6.8]: https://github.com/10up/distributor/compare/1.6.7...1.6.8
313329
[1.6.7]: https://github.com/10up/distributor/compare/1.6.6...1.6.7
314330
[1.6.6]: https://github.com/10up/distributor/compare/1.6.5...1.6.6
315331
[1.6.5]: https://github.com/10up/distributor/compare/1.6.4...1.6.5

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
*You can learn more about Distributor's features at [DistributorPlugin.com](https://distributorplugin.com) and documentation at the [Distributor documentation site](https://10up.github.io/distributor/).*
1010

11-
_Note:_ The latest stable version of the plugin is the _stable_ branch. [Download the stable branch]((https://github.com/10up/distributor/archive/stable.zip)) if you are intending to use the plugin in production.
11+
_Note:_ The latest stable version of the plugin is the _stable_ branch. [Download the stable branch]((https://github.com/10up/distributor/archive/stable.zip)) if you are intending to use the plugin in a Production environment.
1212

1313
## Table of Contents
1414
* [Features](#features)

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: 1.6.7
7+
* Version: 1.6.8
88
* Author: 10up Inc.
99
* Author URI: https://distributorplugin.com
1010
* License: GPLv2 or later
@@ -18,7 +18,7 @@
1818
exit; // Exit if accessed directly.
1919
}
2020

21-
define( 'DT_VERSION', '1.6.7' );
21+
define( 'DT_VERSION', '1.6.8' );
2222
define( 'DT_PLUGIN_FILE', preg_replace( '#^.*plugins/(.*)$#i', '$1', __FILE__ ) );
2323
define( 'DT_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
2424

includes/classes/ExternalConnections/WordPressExternalConnection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ public function remote_get( $args = array() ) {
167167

168168
// When running a query for the Pull screen with excluded items, make a POST request instead
169169
if ( empty( $id ) && isset( $args['post__not_in'] ) && isset( $args['dt_pull_list'] ) ) {
170-
$query_args['post_type'] = isset( $post_type ) ? $post_type : 'post';
171-
$query_args['per_page'] = isset( $posts_per_page ) ? $posts_per_page : 20;
170+
$query_args['post_type'] = isset( $post_type ) ? $post_type : 'post';
171+
$query_args['posts_per_page'] = isset( $posts_per_page ) ? $posts_per_page : 20;
172172

173173
$posts_response = $this->remote_post(
174174
untrailingslashit( $this->base_url ) . '/' . self::$namespace . '/distributor/list-pull-content',

0 commit comments

Comments
 (0)