Version Description
- Admin notice on update plugin.
- Large bug fix.
- no_taxonomy_structure bug fix.
- Add default value for options.
Download this release
Release Info
Developer | Toro_Unit |
Plugin | Custom Post Type Permalinks |
Version | 3.0.0 |
Comparing to | |
See all releases |
Code changes from version 2.2.0 to 3.0.0
- CPTP/Module/Admin.php +22 -0
- CPTP/Module/Option.php +8 -2
- CPTP/Module/Setting.php +25 -12
- custom-post-type-permalinks.php +32 -22
- language/custom-post-type-permalinks-ru_RU.mo +0 -0
- language/custom-post-type-permalinks-ru_RU.po +88 -36
- readme.md +21 -2
- readme.txt +14 -4
CPTP/Module/Admin.php
CHANGED
@@ -13,6 +13,7 @@ class CPTP_Module_Admin extends CPTP_Module {
|
|
13 |
public function add_hook() {
|
14 |
add_action( 'admin_init', array( $this, 'settings_api_init' ), 30 );
|
15 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_css_js' ) );
|
|
|
16 |
}
|
17 |
|
18 |
|
@@ -69,12 +70,19 @@ class CPTP_Module_Admin extends CPTP_Module {
|
|
69 |
}
|
70 |
|
71 |
public function setting_section_callback_function() {
|
|
|
|
|
72 |
?>
|
|
|
|
|
|
|
|
|
73 |
<p><?php echo wp_kses( __( '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' ), array( 'code' => array() ) ); ?>
|
74 |
<?php echo wp_kses( __( '<code>%"custom_taxonomy_slug"%</code> is replaced by the term of taxonomy.', 'custom-post-type-permalinks' ), array( 'code' => array() ) ); ?></p>
|
75 |
|
76 |
<p><?php esc_html_e( "Presence of the trailing '/' is unified into a standard permalink structure setting.", 'custom-post-type-permalinks' ); ?>
|
77 |
<p><?php echo wp_kses( __( 'If <code>has_archive</code> is true, add permalinks for custom post type archive.', 'custom-post-type-permalinks' ), array( 'code' => array() ) ); ?></p>
|
|
|
78 |
<?php
|
79 |
}
|
80 |
|
@@ -156,5 +164,19 @@ class CPTP_Module_Admin extends CPTP_Module {
|
|
156 |
}
|
157 |
}
|
158 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
}
|
160 |
|
13 |
public function add_hook() {
|
14 |
add_action( 'admin_init', array( $this, 'settings_api_init' ), 30 );
|
15 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_css_js' ) );
|
16 |
+
add_action( 'admin_notices', array( $this, 'admin_notices' ) );
|
17 |
}
|
18 |
|
19 |
|
70 |
}
|
71 |
|
72 |
public function setting_section_callback_function() {
|
73 |
+
$sptp_link = admin_url( 'plugin-install.php?s=simple-post-type-permalinks&tab=search&type=term' );
|
74 |
+
$sptp_template = __( 'If you need post type permalink only, you should use <a href="%s">Simple Post Type Permalinks</a>.', 'custom-post-type-permalinks' );
|
75 |
?>
|
76 |
+
<p>
|
77 |
+
<strong><?php echo wp_kses( sprintf( $sptp_template, esc_url( $sptp_link ) ), array( 'a' => array( 'href' => true ) ) ); ?></strong>
|
78 |
+
</p>
|
79 |
+
|
80 |
<p><?php echo wp_kses( __( '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' ), array( 'code' => array() ) ); ?>
|
81 |
<?php echo wp_kses( __( '<code>%"custom_taxonomy_slug"%</code> is replaced by the term of taxonomy.', 'custom-post-type-permalinks' ), array( 'code' => array() ) ); ?></p>
|
82 |
|
83 |
<p><?php esc_html_e( "Presence of the trailing '/' is unified into a standard permalink structure setting.", 'custom-post-type-permalinks' ); ?>
|
84 |
<p><?php echo wp_kses( __( 'If <code>has_archive</code> is true, add permalinks for custom post type archive.', 'custom-post-type-permalinks' ), array( 'code' => array() ) ); ?></p>
|
85 |
+
|
86 |
<?php
|
87 |
}
|
88 |
|
164 |
}
|
165 |
}
|
166 |
}
|
167 |
+
|
168 |
+
|
169 |
+
/**
|
170 |
+
* Admin notice for update permalink settings!
|
171 |
+
*/
|
172 |
+
public function admin_notices() {
|
173 |
+
if ( version_compare( get_option( 'cptp_permalink_checked' ), '3.0.0', '<' ) ) {
|
174 |
+
$format = __( '[Custom Post Type Permalinks] <a href="%s"><strong>Please check your permalink settings!</strong></a>', 'custom-post-type-permalinks' );
|
175 |
+
$message = sprintf( $format, admin_url( 'options-permalink.php' ) );
|
176 |
+
echo sprintf( '<div class="notice notice-warning"><p>%s</p></div>', wp_kses( $message, wp_kses_allowed_html( 'post' ) ) );
|
177 |
+
}
|
178 |
+
|
179 |
+
}
|
180 |
+
|
181 |
}
|
182 |
|
CPTP/Module/Option.php
CHANGED
@@ -13,9 +13,15 @@
|
|
13 |
class CPTP_Module_Option extends CPTP_Module {
|
14 |
|
15 |
public function add_hook() {
|
|
|
16 |
add_action( 'admin_init', array( $this, 'save_options' ), 30 );
|
17 |
}
|
18 |
|
|
|
|
|
|
|
|
|
|
|
19 |
public function save_options() {
|
20 |
|
21 |
if ( empty( $_POST['submit'] ) ) {
|
@@ -61,9 +67,9 @@ class CPTP_Module_Option extends CPTP_Module {
|
|
61 |
update_option( $post_type . '_structure', $structure );
|
62 |
endforeach;
|
63 |
|
64 |
-
update_option( 'no_taxonomy_structure',
|
65 |
update_option( 'add_post_type_for_tax', isset( $_POST['add_post_type_for_tax'] ) );
|
66 |
-
|
67 |
}
|
68 |
|
69 |
/**
|
13 |
class CPTP_Module_Option extends CPTP_Module {
|
14 |
|
15 |
public function add_hook() {
|
16 |
+
add_action( 'init', array( $this, 'set_default_option' ), 1 );
|
17 |
add_action( 'admin_init', array( $this, 'save_options' ), 30 );
|
18 |
}
|
19 |
|
20 |
+
public function set_default_option() {
|
21 |
+
add_option( 'no_taxonomy_structure', true );
|
22 |
+
add_option( 'add_post_type_for_tax', false );
|
23 |
+
}
|
24 |
+
|
25 |
public function save_options() {
|
26 |
|
27 |
if ( empty( $_POST['submit'] ) ) {
|
67 |
update_option( $post_type . '_structure', $structure );
|
68 |
endforeach;
|
69 |
|
70 |
+
update_option( 'no_taxonomy_structure', empty( $_POST['no_taxonomy_structure'] ) );
|
71 |
update_option( 'add_post_type_for_tax', isset( $_POST['add_post_type_for_tax'] ) );
|
72 |
+
update_option( 'cptp_permalink_checked', CPTP_VERSION );
|
73 |
}
|
74 |
|
75 |
/**
|
CPTP/Module/Setting.php
CHANGED
@@ -8,34 +8,47 @@
|
|
8 |
* @package Custom_Post_Type_Permalinks
|
9 |
* @since 0.9.4
|
10 |
* */
|
11 |
-
|
12 |
-
|
13 |
class CPTP_Module_Setting extends CPTP_Module {
|
14 |
|
15 |
public function add_hook() {
|
|
|
16 |
add_action( 'init', array( $this, 'load_textdomain' ) );
|
17 |
-
add_action( '
|
18 |
}
|
19 |
|
20 |
/**
|
21 |
-
*
|
22 |
* check_version
|
23 |
*
|
24 |
* @since 0.8.6
|
25 |
*/
|
26 |
|
27 |
-
public function
|
28 |
-
|
29 |
-
if ( false === $version ) {
|
30 |
-
add_option( 'cptp_version', CPTP_VERSION );
|
31 |
-
} else if ( CPTP_VERSION != $version ) {
|
32 |
-
update_option( 'cptp_version', CPTP_VERSION );
|
33 |
-
}
|
34 |
}
|
35 |
|
36 |
-
|
37 |
/**
|
|
|
|
|
|
|
38 |
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
* load textdomain
|
40 |
*
|
41 |
* @since 0.6.2
|
8 |
* @package Custom_Post_Type_Permalinks
|
9 |
* @since 0.9.4
|
10 |
* */
|
|
|
|
|
11 |
class CPTP_Module_Setting extends CPTP_Module {
|
12 |
|
13 |
public function add_hook() {
|
14 |
+
$this->update_version();
|
15 |
add_action( 'init', array( $this, 'load_textdomain' ) );
|
16 |
+
add_action( 'upgrader_process_complete', array( $this, 'upgrader_process_complete' ), 10, 2 );
|
17 |
}
|
18 |
|
19 |
/**
|
|
|
20 |
* check_version
|
21 |
*
|
22 |
* @since 0.8.6
|
23 |
*/
|
24 |
|
25 |
+
public function update_version() {
|
26 |
+
update_option( 'cptp_version', CPTP_VERSION );
|
|
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
|
|
|
29 |
/**
|
30 |
+
* After update complete.
|
31 |
+
*
|
32 |
+
* @since 3.0.0
|
33 |
*
|
34 |
+
* @param object $wp_upgrader WP_Upgrader instance.
|
35 |
+
* @param array $options Extra information about performed upgrade.
|
36 |
+
*/
|
37 |
+
public function upgrader_process_complete( $wp_upgrader, $options ) {
|
38 |
+
if ( ! empty( $options['plugins'] ) && ! is_array( $options['plugins'] ) ) {
|
39 |
+
return;
|
40 |
+
}
|
41 |
+
|
42 |
+
if ( 'update' == $options['action'] && 'plugin' == $options['type'] ) {
|
43 |
+
$plugin_path = plugin_basename( CPTP_PLUGIN_FILE );
|
44 |
+
if ( in_array( $plugin_path, $options['plugins'] ) ) {
|
45 |
+
//for update code.
|
46 |
+
add_option( 'no_taxonomy_structure', false );
|
47 |
+
}
|
48 |
+
}
|
49 |
+
}
|
50 |
+
|
51 |
+
/**
|
52 |
* load textdomain
|
53 |
*
|
54 |
* @since 0.6.2
|
custom-post-type-permalinks.php
CHANGED
@@ -1,33 +1,40 @@
|
|
1 |
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Custom Post Type Permalinks
|
4 |
-
Plugin URI: https://github.com/torounit/custom-post-type-permalinks
|
5 |
-
Description: Add post archives of custom post type and customizable permalinks.
|
6 |
-
Author: Toro_Unit
|
7 |
-
Author URI: https://torounit.com/
|
8 |
-
Version: 2.2.0
|
9 |
-
Text Domain: custom-post-type-permalinks
|
10 |
-
License: GPL2 or later
|
11 |
-
Domain Path: /language/
|
12 |
-
*/
|
13 |
-
|
14 |
-
|
15 |
/**
|
16 |
-
*
|
17 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
*
|
19 |
* @package Custom_Post_Type_Permalinks
|
20 |
-
* @version
|
21 |
*/
|
22 |
|
23 |
define( 'CPTP_PLUGIN_FILE', __FILE__ );
|
24 |
-
$data = get_file_data( __FILE__, array( 'ver' => 'Version', 'lang_dir' => 'Domain Path' ) );
|
25 |
-
define( 'CPTP_VERSION', $data['ver'] );
|
26 |
define( 'CPTP_DEFAULT_PERMALINK', '/%postname%/' );
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
/**
|
30 |
-
*
|
31 |
* Autoloader for CPTP.
|
32 |
*
|
33 |
* @since 1.0.0
|
@@ -42,12 +49,15 @@ function cptp_class_loader( $class_name ) {
|
|
42 |
|
43 |
spl_autoload_register( 'cptp_class_loader' );
|
44 |
|
45 |
-
|
46 |
/**
|
47 |
-
*
|
48 |
*/
|
49 |
-
|
|
|
|
|
|
|
50 |
|
|
|
51 |
|
52 |
/**
|
53 |
* Activation hooks.
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
/**
|
3 |
+
* Plugin Name: Custom Post Type Permalinks
|
4 |
+
* Plugin URI: https://github.com/torounit/custom-post-type-permalinks
|
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.0.0
|
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.0.0
|
15 |
*/
|
16 |
|
17 |
define( 'CPTP_PLUGIN_FILE', __FILE__ );
|
|
|
|
|
18 |
define( 'CPTP_DEFAULT_PERMALINK', '/%postname%/' );
|
19 |
|
20 |
+
$cptp_data = get_file_data( __FILE__, array(
|
21 |
+
'Name' => 'Plugin Name',
|
22 |
+
'PluginURI' => 'Plugin URI',
|
23 |
+
'Version' => 'Version',
|
24 |
+
'Description' => 'Description',
|
25 |
+
'Author' => 'Author',
|
26 |
+
'AuthorURI' => 'Author URI',
|
27 |
+
'TextDomain' => 'Text Domain',
|
28 |
+
'DomainPath' => 'Domain Path',
|
29 |
+
'Network' => 'Network',
|
30 |
+
) );
|
31 |
+
|
32 |
+
define( 'CPTP_VERSION', $cptp_data['Version'] );
|
33 |
+
define( 'CPTP_DOMAIN_PATH', $cptp_data['DomainPath'] );
|
34 |
+
define( 'CPTP_TEXT_DOMAIN', $cptp_data['TextDomain'] );
|
35 |
+
|
36 |
|
37 |
/**
|
|
|
38 |
* Autoloader for CPTP.
|
39 |
*
|
40 |
* @since 1.0.0
|
49 |
|
50 |
spl_autoload_register( 'cptp_class_loader' );
|
51 |
|
|
|
52 |
/**
|
53 |
+
* CPTP init.
|
54 |
*/
|
55 |
+
function cptp_init() {
|
56 |
+
$custom_post_type_permalinks = CPTP::get_instance();
|
57 |
+
$custom_post_type_permalinks->init();
|
58 |
+
}
|
59 |
|
60 |
+
cptp_init();
|
61 |
|
62 |
/**
|
63 |
* Activation hooks.
|
language/custom-post-type-permalinks-ru_RU.mo
CHANGED
Binary file
|
language/custom-post-type-permalinks-ru_RU.po
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Custom Post Type Permalinks\n"
|
4 |
-
"POT-Creation-Date:
|
5 |
-
"PO-Revision-Date:
|
6 |
"Last-Translator: Nataliya Zavyalova <admin@time-impressions.ru>\n"
|
7 |
"Language-Team: Nataliya Zavyalova <admin@time-impressions.ru>\n"
|
8 |
"Language: ru_RU\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
@@ -20,36 +20,36 @@ msgstr ""
|
|
20 |
"X-Poedit-SearchPath-0: .\n"
|
21 |
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
22 |
|
23 |
-
#: CPTP/Module/Admin.php:
|
24 |
msgid "Permalink Settings for Custom Post Types"
|
25 |
msgstr "Настройки структуры ссылок для записей произвольного типа"
|
26 |
|
27 |
-
#: CPTP/Module/Admin.php:
|
28 |
msgid "Use custom permalink of custom taxonomy archive."
|
29 |
msgstr "Структура постоянных ссылок для архива таксономии."
|
30 |
|
31 |
-
#: CPTP/Module/Admin.php:
|
32 |
msgid "Add <code>post_type</code> query for custom taxonomy archive."
|
33 |
msgstr "Добавить запрос post_type для архива таксономии."
|
34 |
|
35 |
-
#: CPTP/Module/Admin.php:
|
36 |
-
msgid "The tags you can use is WordPress Structure Tags and '%\"custom_taxonomy_slug\"%"
|
37 |
-
msgstr "Настройки постоянных ссылок для записей произвольного типа."
|
38 |
-
|
39 |
-
#: CPTP/Module/Admin.php:75
|
40 |
msgid ""
|
41 |
-
"The tags you can use
|
42 |
-
"\"
|
|
|
43 |
msgstr ""
|
44 |
-
"Вы можете использовать
|
45 |
-
"
|
|
|
46 |
|
47 |
-
#: CPTP/Module/Admin.php:
|
48 |
-
msgid "
|
|
|
49 |
msgstr ""
|
50 |
-
"
|
|
|
51 |
|
52 |
-
#: CPTP/Module/Admin.php:
|
53 |
msgid ""
|
54 |
"Presence of the trailing '/' is unified into a standard permalink structure "
|
55 |
"setting."
|
@@ -57,7 +57,7 @@ msgstr ""
|
|
57 |
"Наличие завершающих слэшей ( / ) в стандартной структуре ссылок является "
|
58 |
"обязательным."
|
59 |
|
60 |
-
#: CPTP/Module/Admin.php:
|
61 |
msgid ""
|
62 |
"If <code>has_archive</code> is true, add permalinks for custom post type "
|
63 |
"archive."
|
@@ -66,35 +66,87 @@ msgstr ""
|
|
66 |
"сформировать постоянные ссылки для страниц архивов записей произвольного "
|
67 |
"типа. "
|
68 |
|
69 |
-
#: CPTP/Module/Admin.php:
|
70 |
-
msgid ""
|
71 |
-
"If you don't enter a permalink structure, permalinks will be configured as <code>/%postname%/</code>."
|
72 |
-
msgstr ""
|
73 |
-
"Если вы оставите поле пустым будет установлено значение по умолчанию <code>/"
|
74 |
-
"%postname%/</code>."
|
75 |
-
|
76 |
-
#: CPTP/Module/Admin.php:128
|
77 |
#, php-format
|
78 |
msgid ""
|
79 |
-
"If you check this, the custom taxonomy's permalinks will be <code>%s/
|
|
|
80 |
msgstr ""
|
81 |
"При выборе произвольная структура URL для таксономии будет <code>%s/"
|
82 |
"post_type/taxonomy/term</code>."
|
83 |
|
84 |
-
#: CPTP/Module/Admin.php:
|
85 |
msgid "Custom taxonomy archive also works as post type archive. "
|
86 |
msgstr ""
|
87 |
"Архив пользовательской таксономии также работает как архив типа записи. "
|
88 |
|
89 |
-
#: CPTP/Module/Admin.php:
|
90 |
msgid "There are cases when the template to be loaded is changed."
|
91 |
msgstr "Бывают случаи, когда изменяется загрузка шаблона."
|
92 |
|
93 |
-
|
|
|
|
|
|
|
|
|
|
|
94 |
msgid ""
|
95 |
-
"
|
96 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
msgstr ""
|
98 |
-
"
|
99 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
|
|
|
|
|
|
|
|
|
|
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Custom Post Type Permalinks\n"
|
4 |
+
"POT-Creation-Date: 2016-12-02 12:16+0300\n"
|
5 |
+
"PO-Revision-Date: 2016-12-02 12:16+0300\n"
|
6 |
"Last-Translator: Nataliya Zavyalova <admin@time-impressions.ru>\n"
|
7 |
"Language-Team: Nataliya Zavyalova <admin@time-impressions.ru>\n"
|
8 |
"Language: ru_RU\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.8.11\n"
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
20 |
"X-Poedit-SearchPath-0: .\n"
|
21 |
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
22 |
|
23 |
+
#: CPTP/Module/Admin.php:27
|
24 |
msgid "Permalink Settings for Custom Post Types"
|
25 |
msgstr "Настройки структуры ссылок для записей произвольного типа"
|
26 |
|
27 |
+
#: CPTP/Module/Admin.php:49
|
28 |
msgid "Use custom permalink of custom taxonomy archive."
|
29 |
msgstr "Структура постоянных ссылок для архива таксономии."
|
30 |
|
31 |
+
#: CPTP/Module/Admin.php:60
|
32 |
msgid "Add <code>post_type</code> query for custom taxonomy archive."
|
33 |
msgstr "Добавить запрос post_type для архива таксономии."
|
34 |
|
35 |
+
#: CPTP/Module/Admin.php:73
|
|
|
|
|
|
|
|
|
36 |
msgid ""
|
37 |
+
"The tags you can use are WordPress Structure Tags and <code>%"
|
38 |
+
"\"custom_taxonomy_slug\"%</code> (e.g. <code>%actors%</code> or <code>"
|
39 |
+
"%movie_actors%</code>)."
|
40 |
msgstr ""
|
41 |
+
"Вы можете использовать теги стандартной структуры ссылок WordPresss и <code>%"
|
42 |
+
"\"custom_taxonomy_slug\"%</code> (например <code>%actors%</code> или <code>"
|
43 |
+
"%movie_actors%</code>)."
|
44 |
|
45 |
+
#: CPTP/Module/Admin.php:74
|
46 |
+
msgid ""
|
47 |
+
"<code>%\"custom_taxonomy_slug\"%</code> is replaced by the term of taxonomy."
|
48 |
msgstr ""
|
49 |
+
"<code>%\"custom_taxonomy_slug\"%</code> будет заменён на соответствующий "
|
50 |
+
"термин таксономии."
|
51 |
|
52 |
+
#: CPTP/Module/Admin.php:76
|
53 |
msgid ""
|
54 |
"Presence of the trailing '/' is unified into a standard permalink structure "
|
55 |
"setting."
|
57 |
"Наличие завершающих слэшей ( / ) в стандартной структуре ссылок является "
|
58 |
"обязательным."
|
59 |
|
60 |
+
#: CPTP/Module/Admin.php:77
|
61 |
msgid ""
|
62 |
"If <code>has_archive</code> is true, add permalinks for custom post type "
|
63 |
"archive."
|
66 |
"сформировать постоянные ссылки для страниц архивов записей произвольного "
|
67 |
"типа. "
|
68 |
|
69 |
+
#: CPTP/Module/Admin.php:121
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
#, php-format
|
71 |
msgid ""
|
72 |
+
"If you check this, the custom taxonomy's permalinks will be <code>%s/"
|
73 |
+
"post_type/taxonomy/term</code>."
|
74 |
msgstr ""
|
75 |
"При выборе произвольная структура URL для таксономии будет <code>%s/"
|
76 |
"post_type/taxonomy/term</code>."
|
77 |
|
78 |
+
#: CPTP/Module/Admin.php:128
|
79 |
msgid "Custom taxonomy archive also works as post type archive. "
|
80 |
msgstr ""
|
81 |
"Архив пользовательской таксономии также работает как архив типа записи. "
|
82 |
|
83 |
+
#: CPTP/Module/Admin.php:129
|
84 |
msgid "There are cases when the template to be loaded is changed."
|
85 |
msgstr "Бывают случаи, когда изменяется загрузка шаблона."
|
86 |
|
87 |
+
#. Plugin Name of the plugin/theme
|
88 |
+
#: CPTP/Module/Admin.php:145
|
89 |
+
msgid "Custom Post Type Permalinks"
|
90 |
+
msgstr "Custom Post Type Permalinks"
|
91 |
+
|
92 |
+
#: CPTP/Module/Admin.php:146
|
93 |
msgid ""
|
94 |
+
"You can setting permalink for post type in <a href=\"options-permalink.php"
|
95 |
+
"\">Permalinks</a>."
|
96 |
+
msgstr ""
|
97 |
+
"Вы можете настроить постоянные ссылки для разных типов записей на странице "
|
98 |
+
"<a href=\"options-permalink.php\">Постоянные ссылки</a>."
|
99 |
+
|
100 |
+
#: CPTP/Util.php:122
|
101 |
+
#, php-format
|
102 |
+
msgid "View all posts in %s"
|
103 |
+
msgstr "Посмотреть все записи в %s"
|
104 |
+
|
105 |
+
#. Plugin URI of the plugin/theme
|
106 |
+
msgid "https://github.com/torounit/custom-post-type-permalinks"
|
107 |
+
msgstr "https://github.com/torounit/custom-post-type-permalinks"
|
108 |
+
|
109 |
+
#. Description of the plugin/theme
|
110 |
+
msgid "Add post archives of custom post type and customizable permalinks."
|
111 |
msgstr ""
|
112 |
+
"Формирование структуры постоянных ссылок для архивных страниц и записей "
|
113 |
+
"произвольного типа."
|
114 |
+
|
115 |
+
#. Author of the plugin/theme
|
116 |
+
msgid "Toro_Unit"
|
117 |
+
msgstr "Toro_Unit"
|
118 |
+
|
119 |
+
#. Author URI of the plugin/theme
|
120 |
+
msgid "https://torounit.com/"
|
121 |
+
msgstr "https://torounit.com/"
|
122 |
+
|
123 |
+
#~ msgid ""
|
124 |
+
#~ "The tags you can use is WordPress Structure Tags and '%"
|
125 |
+
#~ "\"custom_taxonomy_slug\"%"
|
126 |
+
#~ msgstr "Настройки постоянных ссылок для записей произвольного типа."
|
127 |
+
|
128 |
+
#~ msgid ""
|
129 |
+
#~ "The tags you can use is WordPress Structure Tags and '%"
|
130 |
+
#~ "\"custom_taxonomy_slug\"%'. (e.g. %actors%)"
|
131 |
+
#~ msgstr ""
|
132 |
+
#~ "Вы можете использовать стандартные теги WordPress или <code>"
|
133 |
+
#~ "%custom_taxonomy_slug%</code> (например <code>%actors%</code>)."
|
134 |
+
|
135 |
+
#~ msgid ""
|
136 |
+
#~ "<code>%\"custom_taxonomy_slug\"%</code> will replace the taxonomy's term."
|
137 |
+
#~ msgstr ""
|
138 |
+
#~ "(Замените <code>%custom_taxonomy_slug%</code> на ярлык своей таксономии.)"
|
139 |
+
|
140 |
+
#~ msgid ""
|
141 |
+
#~ "If you don't enter a permalink structure, permalinks will be configured "
|
142 |
+
#~ "as <code>/%postname%/</code>."
|
143 |
+
#~ msgstr ""
|
144 |
+
#~ "Если вы оставите поле пустым будет установлено значение по умолчанию "
|
145 |
+
#~ "<code>/%postname%/</code>."
|
146 |
|
147 |
+
#~ msgid ""
|
148 |
+
#~ "<h3>Custom Post Type Permalinks</h3><p>From <a href='options-permalink."
|
149 |
+
#~ "php'>Permalinks</a>, set a custom permalink for each post type.</p>"
|
150 |
+
#~ msgstr ""
|
151 |
+
#~ "<h3>Custom Post Type Permalinks</h3><p>From <a href='options-permalink."
|
152 |
+
#~ "php'>Permalinks</a>, set a custom permalink for each post type.</p>"
|
readme.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# Custom Post Type Permalinks
|
2 |
-
Donate link:
|
3 |
|
4 |
Edit the permalink of custom post type.
|
5 |
|
@@ -24,7 +24,7 @@ And support wp_get_archives( "post_type=foo" ).
|
|
24 |
|
25 |
[This Plugin published on GitHub.](https://github.com/torounit/custom-post-type-permalinks)
|
26 |
|
27 |
-
Donation: Please send [bitcoin](https://blockchain.info/ja/address/3HwkojX2pd9wc5kPFdXnDXMTNbgBmPRygX) or amazon.co.jp
|
28 |
|
29 |
|
30 |
### Translators
|
@@ -73,6 +73,25 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
73 |
|
74 |
## Changelog
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
### 2.1.0
|
77 |
|
78 |
* Create rewrite rule on `registered_post_type` and `registered_taxonomy` action.
|
1 |
# Custom Post Type Permalinks
|
2 |
+
Donate link: https://blockchain.info/ja/address/3HwkojX2pd9wc5kPFdXnDXMTNbgBmPRygX
|
3 |
|
4 |
Edit the permalink of custom post type.
|
5 |
|
24 |
|
25 |
[This Plugin published on GitHub.](https://github.com/torounit/custom-post-type-permalinks)
|
26 |
|
27 |
+
Donation: Please send [bitcoin](https://blockchain.info/ja/address/3HwkojX2pd9wc5kPFdXnDXMTNbgBmPRygX) or [My Wishlist](http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV)
|
28 |
|
29 |
|
30 |
### Translators
|
73 |
|
74 |
## Changelog
|
75 |
|
76 |
+
### 3.0.0
|
77 |
+
|
78 |
+
* Admin notice on update plugin.
|
79 |
+
* Large bug fix.
|
80 |
+
* no_taxonomy_structure bug fix.
|
81 |
+
* Add default value for options.
|
82 |
+
|
83 |
+
### 2.2.0
|
84 |
+
|
85 |
+
* add `CPTP_Util::get_no_taxonomy_structure`.
|
86 |
+
|
87 |
+
### 2.1.3
|
88 |
+
|
89 |
+
* Set `no_taxonomy_structure` default true.
|
90 |
+
|
91 |
+
### 2.1.2
|
92 |
+
|
93 |
+
* `rewirte => false` post type support.
|
94 |
+
|
95 |
### 2.1.0
|
96 |
|
97 |
* Create rewrite rule on `registered_post_type` and `registered_taxonomy` action.
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Custom Post Type Permalinks ===
|
2 |
Contributors: Toro_Unit,inc2734,ixkaito,keita_kobayashi
|
3 |
-
Donate link:
|
4 |
Tags: permalink,permalinks,custom post type,custom taxonomy,cms
|
5 |
Requires at least: 4.3
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag:
|
8 |
License: GPLv2 or Later
|
9 |
|
10 |
Edit the permalink of custom post type.
|
@@ -19,7 +19,7 @@ And support wp_get_archives( "post_type=foo" ).
|
|
19 |
|
20 |
[This Plugin published on GitHub.](https://github.com/torounit/custom-post-type-permalinks)
|
21 |
|
22 |
-
Donation: Please send [bitcoin](https://blockchain.info/ja/address/3HwkojX2pd9wc5kPFdXnDXMTNbgBmPRygX) or amazon.co.jp
|
23 |
|
24 |
|
25 |
= Translators =
|
@@ -67,6 +67,16 @@ That's it. You can access the permalinks setting by going to *Settings -> Permal
|
|
67 |
|
68 |
== Changelog ==
|
69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
= 2.1.3 =
|
71 |
|
72 |
* Set `no_taxonomy_structure` default true.
|
1 |
=== Custom Post Type Permalinks ===
|
2 |
Contributors: Toro_Unit,inc2734,ixkaito,keita_kobayashi
|
3 |
+
Donate link: https://blockchain.info/ja/address/3HwkojX2pd9wc5kPFdXnDXMTNbgBmPRygX
|
4 |
Tags: permalink,permalinks,custom post type,custom taxonomy,cms
|
5 |
Requires at least: 4.3
|
6 |
+
Tested up to: 4.7
|
7 |
+
Stable tag: 3.0.0
|
8 |
License: GPLv2 or Later
|
9 |
|
10 |
Edit the permalink of custom post type.
|
19 |
|
20 |
[This Plugin published on GitHub.](https://github.com/torounit/custom-post-type-permalinks)
|
21 |
|
22 |
+
Donation: Please send [bitcoin](https://blockchain.info/ja/address/3HwkojX2pd9wc5kPFdXnDXMTNbgBmPRygX) or [My Wishlist](http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV)
|
23 |
|
24 |
|
25 |
= Translators =
|
67 |
|
68 |
== Changelog ==
|
69 |
|
70 |
+
= 3.0.0 =
|
71 |
+
* Admin notice on update plugin.
|
72 |
+
* Large bug fix.
|
73 |
+
* no_taxonomy_structure bug fix.
|
74 |
+
* Add default value for options.
|
75 |
+
|
76 |
+
= 2.2.0 =
|
77 |
+
|
78 |
+
* add `CPTP_Util::get_no_taxonomy_structure`.
|
79 |
+
|
80 |
= 2.1.3 =
|
81 |
|
82 |
* Set `no_taxonomy_structure` default true.
|