Version Description
- Fix Translation Problem.
Download this release
Release Info
Developer | Toro_Unit |
Plugin | Custom Post Type Permalinks |
Version | 1.4.0 |
Comparing to | |
See all releases |
Code changes from version 1.3.1 to 1.4.0
- .svnignore +1 -0
- CPTP/Module/Admin.php +13 -13
- CPTP/Module/Setting.php +1 -1
- custom-post-type-permalinks.php +2 -2
- language/{cptp-fr_FR.mo → custom-post-type-permalinks-fr_FR.mo} +0 -0
- language/{cptp-fr_FR.po → custom-post-type-permalinks-fr_FR.po} +0 -0
- language/{cptp-ja.mo → custom-post-type-permalinks-ja.mo} +0 -0
- language/{cptp-ja.po → custom-post-type-permalinks-ja.po} +0 -0
- language/{cptp-ru_RU.mo → custom-post-type-permalinks-ru_RU.mo} +0 -0
- language/{cptp-ru_RU.po → custom-post-type-permalinks-ru_RU.po} +0 -0
- language/{cptp.pot → custom-post-type-permalinks.pot} +0 -0
- readme.txt +6 -2
.svnignore
CHANGED
@@ -2,6 +2,7 @@
|
|
2 |
.git
|
3 |
.gitignore
|
4 |
.travis.yml
|
|
|
5 |
Gruntfile.js
|
6 |
LINGUAS
|
7 |
Makefile
|
2 |
.git
|
3 |
.gitignore
|
4 |
.travis.yml
|
5 |
+
.editorconfig
|
6 |
Gruntfile.js
|
7 |
LINGUAS
|
8 |
Makefile
|
CPTP/Module/Admin.php
CHANGED
@@ -26,7 +26,7 @@ class CPTP_Module_Admin extends CPTP_Module {
|
|
26 |
*/
|
27 |
public function settings_api_init() {
|
28 |
add_settings_section( 'cptp_setting_section',
|
29 |
-
__( 'Permalink Settings for Custom Post Types', '
|
30 |
array( $this, 'setting_section_callback_function' ),
|
31 |
'permalink'
|
32 |
);
|
@@ -48,7 +48,7 @@ class CPTP_Module_Admin extends CPTP_Module {
|
|
48 |
|
49 |
add_settings_field(
|
50 |
'no_taxonomy_structure',
|
51 |
-
__( 'Use custom permalink of custom taxonomy archive.', '
|
52 |
array( $this, 'setting_no_tax_structure_callback_function' ),
|
53 |
'permalink',
|
54 |
'cptp_setting_section',
|
@@ -59,7 +59,7 @@ class CPTP_Module_Admin extends CPTP_Module {
|
|
59 |
|
60 |
add_settings_field(
|
61 |
'add_post_type_for_tax',
|
62 |
-
__( 'Add <code>post_type</code> query for custom taxonomy archive.', '
|
63 |
array( $this, 'add_post_type_for_tax_callback_function' ),
|
64 |
'permalink',
|
65 |
'cptp_setting_section',
|
@@ -72,14 +72,14 @@ class CPTP_Module_Admin extends CPTP_Module {
|
|
72 |
|
73 |
public function setting_section_callback_function() {
|
74 |
?>
|
75 |
-
<p><?php _e( 'Set the permalinks of your Custom Post Types.', '
|
76 |
-
<?php _e( "The tags you can use are WordPress Structure Tags and <code>%\"custom_taxonomy_slug\"%</code> (e.g. <code>%actors%</code> or <code>%movie_actors%</code>).", '
|
77 |
<br/>
|
78 |
-
<?php _e( "<code>%\"custom_taxonomy_slug\"%</code> will replace the taxonomy's term.", '
|
79 |
|
80 |
-
<p><?php _e( "Presence of the trailing '/' is unified into a standard permalink structure setting.", '
|
81 |
-
<p><?php _e( 'If <code>has_archive</code> is true, add permalinks for custom post type archive.', '
|
82 |
-
<?php _e( "If you don't enter a permalink structure, permalinks will be configured as <code>/%postname%/</code>.", '
|
83 |
</p>
|
84 |
<?php
|
85 |
}
|
@@ -121,15 +121,15 @@ class CPTP_Module_Admin extends CPTP_Module {
|
|
121 |
|
122 |
public function setting_no_tax_structure_callback_function() {
|
123 |
echo '<input name="no_taxonomy_structure" id="no_taxonomy_structure" type="checkbox" value="1" class="code" ' . checked( false, get_option( 'no_taxonomy_structure' ), false ) . ' /> ';
|
124 |
-
$txt = __( "If you check this, the custom taxonomy's permalinks will be <code>%s/post_type/taxonomy/term</code>.", '
|
125 |
printf( $txt, home_url() );
|
126 |
}
|
127 |
|
128 |
|
129 |
public function add_post_type_for_tax_callback_function() {
|
130 |
echo '<input name="add_post_type_for_tax" id="add_post_type_for_tax" type="checkbox" value="1" class="code" ' . checked( true, get_option( 'add_post_type_for_tax' ), false ) . ' /> ';
|
131 |
-
_e( "Custom taxonomy archive also works as post type archive. ", '
|
132 |
-
_e( "There are cases when the template to be loaded is changed.", '
|
133 |
}
|
134 |
|
135 |
|
@@ -154,7 +154,7 @@ class CPTP_Module_Admin extends CPTP_Module {
|
|
154 |
if ( ! is_network_admin() ) {
|
155 |
$dismissed = explode( ',', get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) );
|
156 |
if ( false === array_search( 'cptp_pointer0871', $dismissed ) ) {
|
157 |
-
$content = __( "<h3>Custom Post Type Permalinks</h3><p>From <a href='options-permalink.php'>Permalinks</a>, set a custom permalink for each post type.</p>", '
|
158 |
?>
|
159 |
<script type="text/javascript">
|
160 |
jQuery(function ($) {
|
26 |
*/
|
27 |
public function settings_api_init() {
|
28 |
add_settings_section( 'cptp_setting_section',
|
29 |
+
__( 'Permalink Settings for Custom Post Types', 'custom-post-type-permalinks' ),
|
30 |
array( $this, 'setting_section_callback_function' ),
|
31 |
'permalink'
|
32 |
);
|
48 |
|
49 |
add_settings_field(
|
50 |
'no_taxonomy_structure',
|
51 |
+
__( 'Use custom permalink of custom taxonomy archive.', 'custom-post-type-permalinks' ),
|
52 |
array( $this, 'setting_no_tax_structure_callback_function' ),
|
53 |
'permalink',
|
54 |
'cptp_setting_section',
|
59 |
|
60 |
add_settings_field(
|
61 |
'add_post_type_for_tax',
|
62 |
+
__( 'Add <code>post_type</code> query for custom taxonomy archive.', 'custom-post-type-permalinks' ),
|
63 |
array( $this, 'add_post_type_for_tax_callback_function' ),
|
64 |
'permalink',
|
65 |
'cptp_setting_section',
|
72 |
|
73 |
public function setting_section_callback_function() {
|
74 |
?>
|
75 |
+
<p><?php _e( 'Set the permalinks of your Custom Post Types.', 'custom-post-type-permalinks' ); ?><br/>
|
76 |
+
<?php _e( "The tags you can use are WordPress Structure Tags and <code>%\"custom_taxonomy_slug\"%</code> (e.g. <code>%actors%</code> or <code>%movie_actors%</code>).", 'custom-post-type-permalinks' ); ?>
|
77 |
<br/>
|
78 |
+
<?php _e( "<code>%\"custom_taxonomy_slug\"%</code> will replace the taxonomy's term.", 'custom-post-type-permalinks' ); ?></p>
|
79 |
|
80 |
+
<p><?php _e( "Presence of the trailing '/' is unified into a standard permalink structure setting.", 'custom-post-type-permalinks' ); ?>
|
81 |
+
<p><?php _e( 'If <code>has_archive</code> is true, add permalinks for custom post type archive.', 'custom-post-type-permalinks' ); ?>
|
82 |
+
<?php _e( "If you don't enter a permalink structure, permalinks will be configured as <code>/%postname%/</code>.", 'custom-post-type-permalinks' ); ?>
|
83 |
</p>
|
84 |
<?php
|
85 |
}
|
121 |
|
122 |
public function setting_no_tax_structure_callback_function() {
|
123 |
echo '<input name="no_taxonomy_structure" id="no_taxonomy_structure" type="checkbox" value="1" class="code" ' . checked( false, get_option( 'no_taxonomy_structure' ), false ) . ' /> ';
|
124 |
+
$txt = __( "If you check this, the custom taxonomy's permalinks will be <code>%s/post_type/taxonomy/term</code>.", 'custom-post-type-permalinks' );
|
125 |
printf( $txt, home_url() );
|
126 |
}
|
127 |
|
128 |
|
129 |
public function add_post_type_for_tax_callback_function() {
|
130 |
echo '<input name="add_post_type_for_tax" id="add_post_type_for_tax" type="checkbox" value="1" class="code" ' . checked( true, get_option( 'add_post_type_for_tax' ), false ) . ' /> ';
|
131 |
+
_e( "Custom taxonomy archive also works as post type archive. ", 'custom-post-type-permalinks' );
|
132 |
+
_e( "There are cases when the template to be loaded is changed.", 'custom-post-type-permalinks' );
|
133 |
}
|
134 |
|
135 |
|
154 |
if ( ! is_network_admin() ) {
|
155 |
$dismissed = explode( ',', get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) );
|
156 |
if ( false === array_search( 'cptp_pointer0871', $dismissed ) ) {
|
157 |
+
$content = __( "<h3>Custom Post Type Permalinks</h3><p>From <a href='options-permalink.php'>Permalinks</a>, set a custom permalink for each post type.</p>", 'custom-post-type-permalinks' );
|
158 |
?>
|
159 |
<script type="text/javascript">
|
160 |
jQuery(function ($) {
|
CPTP/Module/Setting.php
CHANGED
@@ -43,7 +43,7 @@ class CPTP_Module_Setting extends CPTP_Module {
|
|
43 |
*
|
44 |
*/
|
45 |
public function load_textdomain() {
|
46 |
-
load_plugin_textdomain( '
|
47 |
}
|
48 |
|
49 |
}
|
43 |
*
|
44 |
*/
|
45 |
public function load_textdomain() {
|
46 |
+
load_plugin_textdomain( 'custom-post-type-permalinks', false, 'custom-post-type-permalinks/language' );
|
47 |
}
|
48 |
|
49 |
}
|
custom-post-type-permalinks.php
CHANGED
@@ -5,8 +5,8 @@ Plugin URI: http://www.torounit.com
|
|
5 |
Description: Add post archives of custom post type and customizable permalinks.
|
6 |
Author: Toro_Unit
|
7 |
Author URI: http://www.torounit.com/plugins/custom-post-type-permalinks/
|
8 |
-
Version: 1.
|
9 |
-
Text Domain:
|
10 |
License: GPL2 or later
|
11 |
Domain Path: /language/
|
12 |
*/
|
5 |
Description: Add post archives of custom post type and customizable permalinks.
|
6 |
Author: Toro_Unit
|
7 |
Author URI: http://www.torounit.com/plugins/custom-post-type-permalinks/
|
8 |
+
Version: 1.4.0
|
9 |
+
Text Domain: custom-post-type-permalinks
|
10 |
License: GPL2 or later
|
11 |
Domain Path: /language/
|
12 |
*/
|
language/{cptp-fr_FR.mo → custom-post-type-permalinks-fr_FR.mo}
RENAMED
File without changes
|
language/{cptp-fr_FR.po → custom-post-type-permalinks-fr_FR.po}
RENAMED
File without changes
|
language/{cptp-ja.mo → custom-post-type-permalinks-ja.mo}
RENAMED
File without changes
|
language/{cptp-ja.po → custom-post-type-permalinks-ja.po}
RENAMED
File without changes
|
language/{cptp-ru_RU.mo → custom-post-type-permalinks-ru_RU.mo}
RENAMED
File without changes
|
language/{cptp-ru_RU.po → custom-post-type-permalinks-ru_RU.po}
RENAMED
File without changes
|
language/{cptp.pot → custom-post-type-permalinks.pot}
RENAMED
File without changes
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://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.4
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or Later
|
9 |
|
10 |
Edit the permalink of custom post type.
|
@@ -22,8 +22,8 @@ And support wp_get_archives( "post_type=foo" ).
|
|
22 |
Donation: Please send amazon.co.jp Gift to donate[at]torounit.com.
|
23 |
|
24 |
= Translators =
|
25 |
-
* French(fr_FR) - [Geoffrey Crofte](http://geoffrey.crofte.fr/)
|
26 |
* Japanese(ja) - [Toro_Unit](http://www.torounit.com/)
|
|
|
27 |
* Russian(ru_RU) - [Olart](http://olart.ru), [Natali_Z](https://profiles.wordpress.org/natali_z)
|
28 |
|
29 |
== Setting on Code ==
|
@@ -61,6 +61,10 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
61 |
|
62 |
== Changelog ==
|
63 |
|
|
|
|
|
|
|
|
|
64 |
= 1.3.1 =
|
65 |
* bugfix `wp_get_archives`.
|
66 |
|
4 |
Tags: permalink,permalinks,custom post type,custom taxonomy,cms
|
5 |
Requires at least: 4.3
|
6 |
Tested up to: 4.4
|
7 |
+
Stable tag: 1.4.0
|
8 |
License: GPLv2 or Later
|
9 |
|
10 |
Edit the permalink of custom post type.
|
22 |
Donation: Please send amazon.co.jp Gift to donate[at]torounit.com.
|
23 |
|
24 |
= Translators =
|
|
|
25 |
* Japanese(ja) - [Toro_Unit](http://www.torounit.com/)
|
26 |
+
* French(fr_FR) - [Geoffrey Crofte](http://geoffrey.crofte.fr/)
|
27 |
* Russian(ru_RU) - [Olart](http://olart.ru), [Natali_Z](https://profiles.wordpress.org/natali_z)
|
28 |
|
29 |
== Setting on Code ==
|
61 |
|
62 |
== Changelog ==
|
63 |
|
64 |
+
= 1.4.0 =
|
65 |
+
* Fix Translation Problem.
|
66 |
+
|
67 |
+
|
68 |
= 1.3.1 =
|
69 |
* bugfix `wp_get_archives`.
|
70 |
|