Custom Post Type Permalinks - Version 3.1.5

Version Description

Download this release

Release Info

Developer Toro_Unit
Plugin Icon 128x128 Custom Post Type Permalinks
Version 3.1.5
Comparing to
See all releases

Code changes from version 3.1.4 to 3.1.5

CPTP/Module/Permalink.php CHANGED
@@ -106,7 +106,7 @@ class CPTP_Module_Permalink extends CPTP_Module {
106
 
107
  // %post_id%/attachment/%attachement_name%;
108
  $id = filter_input( INPUT_GET, 'post' );
109
- if ( null !== $id && $post->ID !== $id ) {
110
  $parent_structure = trim( CPTP_Util::get_permalink_structure( $post->post_type ), '/' );
111
  $parent_dirs = explode( '/', $parent_structure );
112
  if ( is_array( $parent_dirs ) ) {
106
 
107
  // %post_id%/attachment/%attachement_name%;
108
  $id = filter_input( INPUT_GET, 'post' );
109
+ if ( null !== $id && intval( $id ) !== $post->ID ) {
110
  $parent_structure = trim( CPTP_Util::get_permalink_structure( $post->post_type ), '/' );
111
  $parent_dirs = explode( '/', $parent_structure );
112
  if ( is_array( $parent_dirs ) ) {
circle.yml CHANGED
@@ -1,7 +1,7 @@
1
  ## Customize the test machine
2
  machine:
3
  php:
4
- version: 7.0.0
5
  # Override /etc/hosts
6
 
7
  # Add some environment variables
1
  ## Customize the test machine
2
  machine:
3
  php:
4
+ version: 7.1.9
5
  # Override /etc/hosts
6
 
7
  # Add some environment variables
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.1.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.1.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.1.5
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.1.5
15
  */
16
 
17
  define( 'CPTP_PLUGIN_FILE', __FILE__ );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV
4
  Tags: permalink,permalinks,custom post type,custom taxonomy,cms
5
  Requires at least: 4.3
6
  Tested up to: 4.9
7
- Stable tag: 3.1.4
8
  License: GPLv2 or Later
9
 
10
  Edit the permalink of custom post type.
4
  Tags: permalink,permalinks,custom post type,custom taxonomy,cms
5
  Requires at least: 4.3
6
  Tested up to: 4.9
7
+ Stable tag: 3.1.5
8
  License: GPLv2 or Later
9
 
10
  Edit the permalink of custom post type.