Version Description
- Tested WP 5.6.
Download this release
Release Info
Developer | Toro_Unit |
Plugin | Custom Post Type Permalinks |
Version | 3.4.2 |
Comparing to | |
See all releases |
Code changes from version 3.4.1 to 3.4.2
- .github/FUNDING.yml +1 -0
- .github/workflows/push-test-deploy.yml +122 -0
- assets/settings-pointer.js +10 -10
- custom-post-type-permalinks.php +2 -2
- readme.txt +5 -2
.github/FUNDING.yml
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
github: torounit
|
.github/workflows/push-test-deploy.yml
ADDED
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Test
|
2 |
+
|
3 |
+
on: [push, pull_request]
|
4 |
+
|
5 |
+
jobs:
|
6 |
+
|
7 |
+
test:
|
8 |
+
runs-on: ubuntu-latest
|
9 |
+
services:
|
10 |
+
mysql:
|
11 |
+
image: mysql:5.7
|
12 |
+
env:
|
13 |
+
MYSQL_ALLOW_EMPTY_PASSWORD: true
|
14 |
+
MYSQL_ROOT_PASSWORD: root
|
15 |
+
MYSQL_DATABASE: wordpress_test
|
16 |
+
ports:
|
17 |
+
- 3306:3306
|
18 |
+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
19 |
+
strategy:
|
20 |
+
matrix:
|
21 |
+
include:
|
22 |
+
- php: 7.4
|
23 |
+
wp: trunk
|
24 |
+
experimental: true
|
25 |
+
- php: 7.4
|
26 |
+
wp: latest
|
27 |
+
- php: 7.3
|
28 |
+
wp: latest
|
29 |
+
- php: 7.2
|
30 |
+
wp: latest
|
31 |
+
- php: 7.2
|
32 |
+
wp: 5.1
|
33 |
+
- php: 7.0
|
34 |
+
wp: '5.0'
|
35 |
+
- php: 5.6
|
36 |
+
wp: 4.7
|
37 |
+
|
38 |
+
name: PHP ${{ matrix.php }} / WP ${{ matrix.wp }} Test
|
39 |
+
steps:
|
40 |
+
- uses: actions/checkout@v2
|
41 |
+
- name: Setup PHP
|
42 |
+
uses: shivammathur/setup-php@v2
|
43 |
+
with:
|
44 |
+
php-version: ${{ matrix.php }}
|
45 |
+
extensions: mbstring, intl , mysqli
|
46 |
+
ini-values: post_max_size=256M, short_open_tag=On #optional, setup php.ini configuration
|
47 |
+
coverage: xdebug #optional, setup coverage driver
|
48 |
+
|
49 |
+
- name: Check PHP Version
|
50 |
+
run: php -v
|
51 |
+
|
52 |
+
- name: Install phpunit global
|
53 |
+
run: |
|
54 |
+
composer global require "phpunit/phpunit=5.7.*|6.*.*|7.*.*"
|
55 |
+
phpunit --version
|
56 |
+
|
57 |
+
- name: Cache composer packages
|
58 |
+
uses: actions/cache@v2
|
59 |
+
with:
|
60 |
+
path: vendor
|
61 |
+
key: composer-${{ hashFiles('composer.lock') }}
|
62 |
+
|
63 |
+
- name: Composer install
|
64 |
+
run: composer install --optimize-autoloader --prefer-dist
|
65 |
+
|
66 |
+
- name: Install WP Tests
|
67 |
+
run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 ${{ matrix.wp }} true
|
68 |
+
|
69 |
+
- name: Build
|
70 |
+
run: |
|
71 |
+
bash ./bin/build.sh
|
72 |
+
|
73 |
+
- name: phpunit tests
|
74 |
+
run: |
|
75 |
+
phpunit
|
76 |
+
WP_MULTISITE=1 phpunit
|
77 |
+
|
78 |
+
lint:
|
79 |
+
runs-on: ubuntu-latest
|
80 |
+
name: PHP lint
|
81 |
+
steps:
|
82 |
+
- uses: actions/checkout@v2
|
83 |
+
- name: Setup PHP
|
84 |
+
uses: shivammathur/setup-php@v2
|
85 |
+
with:
|
86 |
+
php-version: 7.3
|
87 |
+
extensions: mbstring, intl #optional, setup extensions
|
88 |
+
ini-values: post_max_size=256M, short_open_tag=On #optional, setup php.ini configuration
|
89 |
+
coverage: xdebug #optional, setup coverage driver
|
90 |
+
|
91 |
+
- name: Check PHP Version
|
92 |
+
run: php -v
|
93 |
+
|
94 |
+
- name: Cache composer packages
|
95 |
+
uses: actions/cache@v2
|
96 |
+
with:
|
97 |
+
path: vendor
|
98 |
+
key: composer-${{ hashFiles('composer.lock') }}
|
99 |
+
|
100 |
+
- name: Composer install
|
101 |
+
run: composer install --optimize-autoloader --prefer-dist
|
102 |
+
|
103 |
+
- name: phpcs tests
|
104 |
+
run: composer phpcs
|
105 |
+
|
106 |
+
release:
|
107 |
+
name: Release
|
108 |
+
runs-on: ubuntu-latest
|
109 |
+
needs: [test,lint]
|
110 |
+
steps:
|
111 |
+
- uses: actions/checkout@v2
|
112 |
+
- name: Build
|
113 |
+
if: contains(github.ref, 'tags/')
|
114 |
+
run: |
|
115 |
+
bash ./bin/build.sh
|
116 |
+
- name: WordPress Plugin Deploy
|
117 |
+
if: contains(github.ref, 'tags/')
|
118 |
+
uses: 10up/action-wordpress-plugin-deploy@master
|
119 |
+
env:
|
120 |
+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
|
121 |
+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
|
122 |
+
SLUG: custom-post-type-permalinks
|
assets/settings-pointer.js
CHANGED
@@ -1,21 +1,21 @@
|
|
1 |
-
(function ($) {
|
2 |
|
3 |
-
$(function () {
|
4 |
|
5 |
-
if( window.CPTP_Settings_Pointer ) {
|
6 |
-
$(
|
7 |
content: CPTP_Settings_Pointer.content,
|
8 |
-
position: {
|
9 |
close: function () {
|
10 |
-
$.post('admin-ajax.php', {
|
11 |
action: 'dismiss-wp-pointer',
|
12 |
pointer: CPTP_Settings_Pointer.name
|
13 |
-
})
|
14 |
|
15 |
}
|
16 |
-
}).pointer(
|
17 |
}
|
18 |
|
19 |
-
})
|
20 |
|
21 |
-
})(jQuery);
|
1 |
+
( function ( $ ) {
|
2 |
|
3 |
+
$( function () {
|
4 |
|
5 |
+
if ( window.CPTP_Settings_Pointer ) {
|
6 |
+
$( '#menu-settings .wp-has-submenu' ).pointer( {
|
7 |
content: CPTP_Settings_Pointer.content,
|
8 |
+
position: { 'edge': 'left', 'align': 'center' },
|
9 |
close: function () {
|
10 |
+
$.post( 'admin-ajax.php', {
|
11 |
action: 'dismiss-wp-pointer',
|
12 |
pointer: CPTP_Settings_Pointer.name
|
13 |
+
} );
|
14 |
|
15 |
}
|
16 |
+
} ).pointer( 'open' );
|
17 |
}
|
18 |
|
19 |
+
} );
|
20 |
|
21 |
+
} )( jQuery );
|
custom-post-type-permalinks.php
CHANGED
@@ -5,13 +5,13 @@
|
|
5 |
* Description: Add post archives of custom post type and customizable permalinks.
|
6 |
* Author: Toro_Unit
|
7 |
* Author URI: https://torounit.com/
|
8 |
-
* Version: 3.4.
|
9 |
* Text Domain: custom-post-type-permalinks
|
10 |
* License: GPL2 or later
|
11 |
* Domain Path: /language/
|
12 |
*
|
13 |
* @package Custom_Post_Type_Permalinks
|
14 |
-
* @version 3.4.
|
15 |
*/
|
16 |
|
17 |
define( 'CPTP_PLUGIN_FILE', __FILE__ );
|
5 |
* Description: Add post archives of custom post type and customizable permalinks.
|
6 |
* Author: Toro_Unit
|
7 |
* Author URI: https://torounit.com/
|
8 |
+
* Version: 3.4.2
|
9 |
* Text Domain: custom-post-type-permalinks
|
10 |
* License: GPL2 or later
|
11 |
* Domain Path: /language/
|
12 |
*
|
13 |
* @package Custom_Post_Type_Permalinks
|
14 |
+
* @version 3.4.2
|
15 |
*/
|
16 |
|
17 |
define( 'CPTP_PLUGIN_FILE', __FILE__ );
|
readme.txt
CHANGED
@@ -4,11 +4,11 @@ Contributors: Toro_Unit, inc2734, ixkaito, keita_kobayashi, strategio
|
|
4 |
Donate link: https://www.paypal.me/torounit
|
5 |
Tags: permalink, url, link, address, custom post type
|
6 |
Requires at least: 4.7
|
7 |
-
Tested up to: 5.
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or Later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
11 |
-
Stable tag: 3.4.
|
12 |
|
13 |
|
14 |
Edit the permalink of custom post type.
|
@@ -83,6 +83,9 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
83 |
|
84 |
== Changelog ==
|
85 |
|
|
|
|
|
|
|
86 |
= 3.4.1 =
|
87 |
* Fix readme.
|
88 |
|
4 |
Donate link: https://www.paypal.me/torounit
|
5 |
Tags: permalink, url, link, address, custom post type
|
6 |
Requires at least: 4.7
|
7 |
+
Tested up to: 5.6
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or Later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
11 |
+
Stable tag: 3.4.2
|
12 |
|
13 |
|
14 |
Edit the permalink of custom post type.
|
83 |
|
84 |
== Changelog ==
|
85 |
|
86 |
+
= 3.4.2 =
|
87 |
+
* Tested WP 5.6.
|
88 |
+
|
89 |
= 3.4.1 =
|
90 |
* Fix readme.
|
91 |
|