Skip to content

Commit a559100

Browse files
author
10upbot on GitHub
committed
Committing built version of da76fe1
1 parent 3cd010e commit a559100

34 files changed

+501
-334
lines changed

.github/workflows/build-docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
env:
2323
CI: true
2424
- name: Deploy to GH Pages
25-
uses: maxheld83/ghpages@v0.2.1
26-
env:
27-
BUILD_DIR: 'docs-built/'
28-
GH_PAT: ${{ secrets.GH_PAT }}
25+
uses: peaceiris/actions-gh-pages@v3
26+
with:
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
publish_dir: './docs'

.github/workflows/lint.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Linting
22

3+
env:
4+
COMPOSER_VERSION: "2"
5+
COMPOSER_CACHE: "${{ github.workspace }}/.composer-cache"
6+
37
on:
48
push:
59
branches:
@@ -30,19 +34,37 @@ jobs:
3034
phpcs:
3135
name: phpcs
3236
runs-on: ubuntu-latest
37+
3338
steps:
3439
- name: Checkout
3540
uses: actions/checkout@v2.4.0
41+
42+
- name: Set standard 10up cache directories
43+
run: |
44+
composer config -g cache-dir "${{ env.COMPOSER_CACHE }}"
45+
46+
- name: Prepare composer cache
47+
uses: actions/cache@v2
48+
with:
49+
path: ${{ env.COMPOSER_CACHE }}
50+
key: composer-${{ env.COMPOSER_VERSION }}-${{ hashFiles('**/composer.lock') }}
51+
restore-keys: |
52+
composer-${{ env.COMPOSER_VERSION }}-
53+
3654
- name: Set PHP version
3755
uses: shivammathur/setup-php@v2
3856
with:
39-
php-version: '7.2'
57+
php-version: '7.4'
4058
coverage: none
41-
- name: composer install
59+
tools: composer:v2
60+
61+
- name: Install dependencies
4262
run: composer install --ignore-platform-reqs
63+
4364
- name: Check PHPCS standard
4465
run: ./vendor/bin/phpcs -i
66+
4567
- name: PHPCS check
4668
uses: chekalsky/phpcs-action@v1
4769
with:
48-
phpcs_bin_path: './vendor/bin/phpcs .'
70+
phpcs_bin_path: './vendor/bin/phpcs . --runtime-set testVersion 5.6-'

.github/workflows/test.yml

Lines changed: 28 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Test
22

3+
env:
4+
COMPOSER_VERSION: "2"
5+
COMPOSER_CACHE: "${{ github.workspace }}/.composer-cache"
6+
37
on:
48
schedule:
59
- cron: '0 0 * * *'
@@ -12,51 +16,42 @@ on:
1216
- develop
1317

1418
jobs:
15-
# wpa:
16-
# runs-on: ubuntu-latest
17-
18-
# strategy:
19-
# matrix:
20-
# snapshot: [
21-
# "3593222a181f0f91824947dbd06985d5", # WP 4.9
22-
# "9ea863cebfcbb416c6334a6bef6552f0", # WP 4.9 & Gutenberg 4.9
23-
# "803989004f4b101a644ebfe9bb67e712", # WP 5.4
24-
# ]
25-
26-
# steps:
27-
# - name: Checkout
28-
# uses: actions/checkout@v2.4.0
29-
30-
# - name: Set PHP version
31-
# uses: shivammathur/setup-php@v2
32-
# with:
33-
# php-version: '7.2'
34-
# coverage: none
35-
36-
# - name: Install dependencies
37-
# run: composer install --ignore-platform-reqs
38-
39-
# - name: Setup WP Snapshots
40-
# run: ./vendor/bin/wpsnapshots configure 10up --aws_key=${{ secrets.AWS_ACCESS_KEY_ID }} --aws_secret=${{ secrets.AWS_SECRET_ACCESS_KEY }} --user_name=wpacceptance --user_email=wpacceptance@10up.com
41-
42-
# - name: Test
43-
# run: ./vendor/bin/wpacceptance run --snapshot_id=${{ matrix.snapshot }}
4419

4520
phpunit:
46-
runs-on: ubuntu-latest
21+
name: ${{ matrix.php }} on ${{ matrix.os }}
22+
runs-on: ${{ matrix.os }}
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
# We claim to support from 5.6+ but WP Mock only supports 7.1+
27+
php: [ '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]
28+
os: [ ubuntu-latest ]
4729

4830
steps:
4931
- name: Checkout
5032
uses: actions/checkout@v2.4.0
5133

34+
- name: Set standard 10up cache directories
35+
run: |
36+
composer config -g cache-dir "${{ env.COMPOSER_CACHE }}"
37+
38+
- name: Prepare composer cache
39+
uses: actions/cache@v2
40+
with:
41+
path: ${{ env.COMPOSER_CACHE }}
42+
key: composer-${{ env.COMPOSER_VERSION }}-${{ hashFiles('**/composer.lock') }}
43+
restore-keys: |
44+
composer-${{ env.COMPOSER_VERSION }}-
45+
5246
- name: Set PHP version
53-
uses: shivammathur/setup-php@v2
47+
uses: shivammathur/setup-php@2.17.0
5448
with:
55-
php-version: '7.2'
49+
php-version: ${{ matrix.php }}
5650
coverage: none
51+
tools: phpunit-polyfills, composer:v2
5752

5853
- name: Install dependencies
59-
run: composer install --ignore-platform-reqs
54+
run: composer update -W
6055

6156
- name: PHPUnit
6257
run: './vendor/bin/phpunit'

CHANGELOG.md

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

55
## [Unreleased] - TBD
66

7+
## [1.7.0] - 2022-07-26
8+
9+
### Added
10+
11+
- Ability to set user roles to pull content (props [@faisal-alvi](https://github.com/faisal-alvi), [@dkotter](https://github.com/dkotter), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#877](https://github.com/10up/distributor/pull/877)).
12+
- More robust PHP testing (props [@dkotter](https://github.com/dkotter), [@peterwilsoncc](https://github.com/peterwilsoncc), [@jeffpaul](https://github.com/jeffpaul) via [#853](https://github.com/10up/distributor/pull/853)).
13+
- Support for plugin auto-updates for registered sites (props [@dhanendran](https://github.com/dhanendran), [@jeffpaul](https://github.com/jeffpaul), [@dkotter](https://github.com/dkotter), [@sksaju](https://github.com/sksaju) via [#726](https://github.com/10up/distributor/pull/726)).
14+
- Distributable post types made consistent (props [@faisal-alvi](https://github.com/faisal-alvi), [@dkotter](https://github.com/dkotter), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#907](https://github.com/10up/distributor/pull/907)).
15+
16+
### Changed
17+
18+
- Bump WordPress "tested up to" version 6.0 (props [@jeffpaul](https://github.com/jeffpaul), [@lukaspawlik](https://github.com/lukaspawlik), [@vikrampm1](https://github.com/vikrampm1), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#902](https://github.com/10up/distributor/pull/902)).
19+
- Removed system post types for External Connections. (props [@dkotter](https://github.com/dkotter), [@faisal-alvi](https://github.com/faisal-alvi), [@peterwilsoncc](https://github.com/peterwilsoncc), [@dinhtungdu](https://github.com/dinhtungdu), [@jeffpaul](https://github.com/jeffpaul) via [#898](https://github.com/10up/distributor/pull/898)).
20+
- The `Distributor > Pull Content` menu is now be visible for all user roles. (props [@faisal-alvi](https://github.com/faisal-alvi), [@dkotter](https://github.com/dkotter), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#877](https://github.com/10up/distributor/pull/877)).
21+
- Update how we check if someone is running a development version of Distributor (props [@dkotter](https://github.com/dkotter), [@jeffpaul](https://github.com/jeffpaul), [@dinhtungdu](https://github.com/dinhtungdu) via [#882](https://github.com/10up/distributor/pull/882)).
22+
- GH Action used for deploy to GH Pages (props [@iamdharmesh](https://github.com/iamdharmesh), [@jeffpaul](https://github.com/jeffpaul) via [#886](https://github.com/10up/distributor/pull/886)).
23+
24+
### Fixed
25+
26+
- Unicode characters not escaped correctly (props [@amalajith](https://github.com/amalajith), [@dkotter](https://github.com/dkotter), [@cadic](https://github.com/cadic), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#890](https://github.com/10up/distributor/pull/890)).
27+
- Manually entering a page number doesn't work on the Pull screen (props [@faisal-alvi](https://github.com/faisal-alvi), [@dkotter](https://github.com/dkotter) via [#878](https://github.com/10up/distributor/pull/878)).
28+
- Account for plugin changes in test to determine editor type (classic or block). (props [@peterwilsoncc](https://github.com/peterwilsoncc), [@faisal-alvi](https://github.com/faisal-alvi), [@dinhtungdu](https://github.com/dinhtungdu), [@jeffpaul](https://github.com/jeffpaul) via [#894](https://github.com/10up/distributor/pull/894)).
29+
- Prevent conflict with `pre_post_link` filter. (props [@jeremyfelt](https://github.com/jeremyfelt), [@peterwilsoncc](https://github.com/peterwilsoncc), [@jeffpaul](https://github.com/jeffpaul), [@dinhtungdu](https://github.com/dinhtungdu) via [#895](https://github.com/10up/distributor/pull/895)).
30+
31+
### Removed
32+
33+
- The `dt_capabilities` & `dt_pull_capabilities` filters are removed while displaying the menus. (props [@faisal-alvi](https://github.com/faisal-alvi), [@dkotter](https://github.com/dkotter), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#877](https://github.com/10up/distributor/pull/877)).
34+
- Known Issue listing for full screen mode (issue fixed in 1.6.5). (props [@faisal-alvi](https://github.com/faisal-alvi), [@dkotter](https://github.com/dkotter), [@jeffpaul](https://github.com/jeffpaul) via [#897](https://github.com/10up/distributor/pull/897)).
35+
36+
### Security
37+
38+
- build(deps): bump guzzlehttp/guzzle from 6.5.3 to 7.4.4 (props [@dependabot[bot]](https://github.com/apps/dependabot), [@jeffpaul](https://github.com/jeffpaul), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#885](https://github.com/10up/distributor/pull/885), [#891](https://github.com/10up/distributor/pull/891)).
39+
- build(deps): bump terser from 4.7.0 to 4.8.1 (props [@dependabot[bot]](https://github.com/apps/dependabot), [@jeffpaul](https://github.com/jeffpaul), [@peterwilsoncc](https://github.com/peterwilsoncc) via [#911](https://github.com/10up/distributor/pull/911)).
40+
741
## [1.6.9] - 2022-04-18
842

943
### Added
@@ -352,6 +386,7 @@ This adds a post type selector when viewing the Pull Content list for both exter
352386
- Initial closed release.
353387

354388
[Unreleased]: https://github.com/10up/distributor/compare/trunk...develop
389+
[1.7.0]: https://github.com/10up/distributor/compare/1.6.9...1.7.0
355390
[1.6.9]: https://github.com/10up/distributor/compare/1.6.8...1.6.9
356391
[1.6.8]: https://github.com/10up/distributor/compare/1.6.7...1.6.8
357392
[1.6.7]: https://github.com/10up/distributor/compare/1.6.6...1.6.7

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
> Distributor is a WordPress plugin that makes it easy to distribute and reuse content across your websites — whether in a single multisite or across the web.
66
7-
[![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) [![Tests](https://github.com/10up/distributor/actions/workflows/test.yml/badge.svg)](https://github.com/10up/distributor/actions/workflows/test.yml) [![Linting](https://github.com/10up/distributor/actions/workflows/lint.yml/badge.svg)](https://github.com/10up/distributor/actions/workflows/lint.yml) [![Code scanning](https://github.com/10up/distributor/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/10up/distributor/actions/workflows/codeql-analysis.yml) [![Release Version](https://img.shields.io/github/release/10up/distributor.svg)](https://github.com/10up/distributor/releases/latest) ![WordPress tested up to version](https://img.shields.io/badge/WordPress-v5.9%20tested-success.svg) [![License](https://img.shields.io/github/license/10up/distributor.svg)](https://github.com/10up/distributor/blob/develop/LICENSE.md)
7+
[![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) [![Tests](https://github.com/10up/distributor/actions/workflows/test.yml/badge.svg)](https://github.com/10up/distributor/actions/workflows/test.yml) [![Linting](https://github.com/10up/distributor/actions/workflows/lint.yml/badge.svg)](https://github.com/10up/distributor/actions/workflows/lint.yml) [![Code scanning](https://github.com/10up/distributor/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/10up/distributor/actions/workflows/codeql-analysis.yml) [![Release Version](https://img.shields.io/github/release/10up/distributor.svg)](https://github.com/10up/distributor/releases/latest) ![WordPress tested up to version](https://img.shields.io/badge/WordPress-v6.0%20tested-success.svg) [![License](https://img.shields.io/github/license/10up/distributor.svg)](https://github.com/10up/distributor/blob/develop/LICENSE.md)
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

@@ -125,8 +125,6 @@ You can navigate to the `Posts` > `All Posts` table list view to see all content
125125

126126
## Known Caveats/Issues
127127

128-
__Gutenberg Fullscreen Mode__ - [Gutenberg 3.8](https://wptavern.com/gutenberg-3-8-released-adds-full-screen-mode) originally introduced `Fullscreen mode` for the editor and [WordPress 5.4](https://make.wordpress.org/core/2020/03/03/fullscreen-mode-enabled-by-default-in-the-editor/) and [Gutenberg 7.7](https://github.com/WordPress/gutenberg/pull/20611) made that the default setting. Fullscreen mode creates a problem as the admin bar is no longer visible which means the Distributor push menu is no longer visible. We are [working on researching a resolution to this issue](https://github.com/10up/distributor/issues/597), but in the meantime we recommend clicking on the three vertical dots in the upper right corner of Gutenberg and disabling fullscreen mode to ensure the admin bar and Distributor push menu is in view.
129-
130128
__Remote Request Timeouts__ - With external connections, HTTP requests are sent back and forth - creating posts, transfering images, syncing post updates, etc. In certain situations, mostly commonly when distributing posts with a large number of images (or very large file sizes), using poorly configured or saturated servers / hosts, or using plugins that add significant weight to post creation, Distributor requests can fail. Although we do some error handling, there are certain cases in which post distribution can fail silently. If distribution requests are taking a long time to load and/or failing, consider adjusting the timeout; you can filter the timeout for pushing external posts using the [`dt_push_post_timeout` filter](https://10up.github.io/distributor/dt_push_post_timeout.html). More advanced handling of large content requests, and improved error handling is on the road map for a future update.
131129

132130
__Post Meta Associations__ - A distributed post includes all of the post meta from the original version. Sometimes arbitrary post meta references an ID for another piece of content on the original site. Distributor _does not_ "bring along" the referenced content or update references for arbitrary post meta (it will take care of updating references in the case of core WordPress features, such as the featured image ID). This issue is very common when using field management plugins like Advanced Custom Fields (ACF). This can be addressed on a case by case basis by extending the plugin; for external connections, you can manually handle post meta associations using [the `dt_push_post` hook](https://github.com/10up/distributor/blob/f7b60740e679bce4671ccd69a670abadce4f2f93/includes/classes/ExternalConnections/WordPressExternalConnection.php#L646). For internal connections, use the [`dt_push_post` hook](https://10up.github.io/distributor/dt_push_post.html). Note that while named the same, these hooks accept different parameters.

composer.json

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
],
2727
"require": {
2828
"php": ">=5.6",
29-
"yahnis-elsts/plugin-update-checker": "^4.4",
29+
"yahnis-elsts/plugin-update-checker": "4.9",
3030
"georgestephanis/application-passwords": "0.1.3",
3131
"ext-json": "*"
3232
},
@@ -35,17 +35,24 @@
3535
"Distributor\\": "includes/classes/"
3636
}
3737
},
38-
3938
"require-dev": {
40-
"10up/wpacceptance": "dev-master",
39+
"10up/phpcs-composer": "dev-master",
4140
"10up/wp_mock": "~0.4",
42-
"phpunit/phpunit": "~7.5",
43-
"10up/phpcs-composer": "dev-master"
41+
"phpunit/phpunit": ">=7.0 <9.0",
42+
"yoast/phpunit-polyfills": "^1.0",
43+
"automattic/vipwpcs": "^2.3"
4444
},
4545
"scripts": {
46-
"lint": "phpcs .",
47-
"lint-fix": "phpcbf ."
46+
"lint": "phpcs . --runtime-set testVersion 5.6-",
47+
"lint-fix": "phpcbf .",
48+
"test": "@php phpunit"
4849
},
4950
"minimum-stability": "dev",
50-
"prefer-stable": true
51+
"prefer-stable": true,
52+
"config": {
53+
"allow-plugins": {
54+
"composer/installers": true,
55+
"dealerdirect/phpcodesniffer-composer-installer": true
56+
}
57+
}
5158
}

dist/css/admin-settings.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/css/admin-settings.min.css.map

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

0 commit comments

Comments
 (0)