Version Description
- 2017-07-27 =
- Fixed: Prevent possible conflicts with .required css selector by prefixing ours.
- Fixed: Better accommodate possible labels with apostrophes, in relation to "Get code" functionality.
Download this release
Release Info
Developer | tw2113 |
Plugin | Custom Post Type UI |
Version | 1.5.5 |
Comparing to | |
See all releases |
Code changes from version 1.5.4 to 1.5.5
- css/cptui.css +6 -9
- css/cptui.min.css +1 -1
- css/cptui.scss +10 -3
- custom-post-type-ui.php +3 -3
- inc/tools.php +9 -9
- readme.txt +9 -1
css/cptui.css
CHANGED
@@ -28,6 +28,10 @@
|
|
28 |
cursor: pointer;
|
29 |
}
|
30 |
|
|
|
|
|
|
|
|
|
31 |
.cptui-table #excerpt {
|
32 |
display: inline-block;
|
33 |
height: 16px;
|
@@ -98,10 +102,6 @@
|
|
98 |
position: relative;
|
99 |
}
|
100 |
|
101 |
-
.required {
|
102 |
-
color: red;
|
103 |
-
}
|
104 |
-
|
105 |
.cptui-field-description {
|
106 |
font-style: italic;
|
107 |
}
|
@@ -349,6 +349,7 @@ fieldset .cptui-help {
|
|
349 |
-ms-grid-row-align: auto;
|
350 |
align-self: auto;
|
351 |
}
|
|
|
352 |
.wdspromos-about p {
|
353 |
padding: 0 5px;
|
354 |
}
|
@@ -399,20 +400,16 @@ fieldset .cptui-help {
|
|
399 |
.cptui-table #description {
|
400 |
width: 100%;
|
401 |
}
|
402 |
-
|
403 |
.wdspromos-about {
|
404 |
-ms-flex-wrap: wrap;
|
405 |
-
|
406 |
}
|
407 |
-
|
408 |
.wdspromos-about p {
|
409 |
margin: 5px auto;
|
410 |
}
|
411 |
-
|
412 |
.wdspromos-about p:nth-child(1) {
|
413 |
padding-left: 5px;
|
414 |
}
|
415 |
-
|
416 |
.wdspromos-about p:nth-child(4) {
|
417 |
padding-right: 5px;
|
418 |
}
|
28 |
cursor: pointer;
|
29 |
}
|
30 |
|
31 |
+
.posttypesui .required, .taxonomiesui .required {
|
32 |
+
color: red;
|
33 |
+
}
|
34 |
+
|
35 |
.cptui-table #excerpt {
|
36 |
display: inline-block;
|
37 |
height: 16px;
|
102 |
position: relative;
|
103 |
}
|
104 |
|
|
|
|
|
|
|
|
|
105 |
.cptui-field-description {
|
106 |
font-style: italic;
|
107 |
}
|
349 |
-ms-grid-row-align: auto;
|
350 |
align-self: auto;
|
351 |
}
|
352 |
+
|
353 |
.wdspromos-about p {
|
354 |
padding: 0 5px;
|
355 |
}
|
400 |
.cptui-table #description {
|
401 |
width: 100%;
|
402 |
}
|
|
|
403 |
.wdspromos-about {
|
404 |
-ms-flex-wrap: wrap;
|
405 |
+
flex-wrap: wrap;
|
406 |
}
|
|
|
407 |
.wdspromos-about p {
|
408 |
margin: 5px auto;
|
409 |
}
|
|
|
410 |
.wdspromos-about p:nth-child(1) {
|
411 |
padding-left: 5px;
|
412 |
}
|
|
|
413 |
.wdspromos-about p:nth-child(4) {
|
414 |
padding-right: 5px;
|
415 |
}
|
css/cptui.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.posttypesui,.taxonomiesui{width:calc(100% - 300px)}.posttypesui .cptui-section:first-child,.taxonomiesui .cptui-section:first-child{margin-top:30px}.posttypesui .postbox-container,.taxonomiesui .postbox-container{width:100%}.posttypesui .postbox .toggle-indicator:before,.taxonomiesui .postbox .toggle-indicator:before{content:"\f142";display:inline-block;font:normal 20px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important}.posttypesui .postbox.closed .handlediv .toggle-indicator:before,.taxonomiesui .postbox.closed .handlediv .toggle-indicator:before{content:"\f140"}.posttypesui .postbox .hndle,.taxonomiesui .postbox .hndle{cursor:pointer}.cptui-table #excerpt{display:inline-block;height:16px;margin:12px 4px 12px 0;width:auto}.cptui-table td.outter{vertical-align:top;width:50%}.cptui-edit .cptui-table textarea,.cptui-new .cptui-table textarea,.cptui-table input[type=text]{width:75%}.cptui-table .question:hover{cursor:pointer}.cptui-table th p{font-weight:400;font-size:12px}.cptui-table .cptui-slug-details{margin-top:15px}.cptui-table #slugchanged{color:red;font-weight:700}.cptui-table #slugchanged.hidemessage{display:none}.cptui-support #support .question{font-size:18px;font-weight:700}.cptui-support #support .question:before{content:"\f139";display:inline-block;font:normal 25px/1 dashicons;margin-left:-25px;position:absolute;-webkit-font-smoothing:antialiased}.cptui-support #support .question.active:before{content:"\f140"}.cptui-support #support .answer{margin:10px 0 0 20px}.cptui-support #support ol li{list-style:none}.cptui-support #support li{position:relative}.
|
1 |
+
.posttypesui,.taxonomiesui{width:calc(100% - 300px)}.posttypesui .cptui-section:first-child,.taxonomiesui .cptui-section:first-child{margin-top:30px}.posttypesui .postbox-container,.taxonomiesui .postbox-container{width:100%}.posttypesui .postbox .toggle-indicator:before,.taxonomiesui .postbox .toggle-indicator:before{content:"\f142";display:inline-block;font:normal 20px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important}.posttypesui .postbox.closed .handlediv .toggle-indicator:before,.taxonomiesui .postbox.closed .handlediv .toggle-indicator:before{content:"\f140"}.posttypesui .postbox .hndle,.taxonomiesui .postbox .hndle{cursor:pointer}.posttypesui .required,.taxonomiesui .required{color:red}.cptui-table #excerpt{display:inline-block;height:16px;margin:12px 4px 12px 0;width:auto}.cptui-table td.outter{vertical-align:top;width:50%}.cptui-edit .cptui-table textarea,.cptui-new .cptui-table textarea,.cptui-table input[type=text]{width:75%}.cptui-table .question:hover{cursor:pointer}.cptui-table th p{font-weight:400;font-size:12px}.cptui-table .cptui-slug-details{margin-top:15px}.cptui-table #slugchanged{color:red;font-weight:700}.cptui-table #slugchanged.hidemessage{display:none}.cptui-support #support .question{font-size:18px;font-weight:700}.cptui-support #support .question:before{content:"\f139";display:inline-block;font:normal 25px/1 dashicons;margin-left:-25px;position:absolute;-webkit-font-smoothing:antialiased}.cptui-support #support .question.active:before{content:"\f140"}.cptui-support #support .answer{margin:10px 0 0 20px}.cptui-support #support ol li{list-style:none}.cptui-support #support li{position:relative}.cptui-field-description{font-style:italic}#cptui_select_post_type,#cptui_select_taxonomy{margin-top:15px}.cptui_post_import,.cptui_tax_import{height:200px;margin-bottom:10px;resize:vertical;width:100%}.cptui_post_type_get_code,.cptui_tax_get_code{height:300px;resize:vertical;width:100%}.about-wrap .cptui-feature{overflow:visible!important;*zoom:1}.about-wrap .cptui-feature:after,.about-wrap .cptui-feature:before{content:" ";display:table}.about-wrap .cptui-feature:after{clear:both}.about-wrap h3+.cptui-feature{margin-top:0}.about-wrap .changelog h2{text-align:center}.about-wrap .feature-rest div{width:50%!important;padding-right:100px;box-sizing:border-box;margin:0!important}.about-wrap .feature-rest div.last-feature{padding-left:100px;padding-right:0}.about-wrap .feature-rest div.icon{width:0!important;padding:0;margin:0}.about-wrap .feature-rest div.icon:before{font-weight:400;width:100%;font-size:170px;line-height:125px;color:#9c5d90;display:inline-block;position:relative;text-align:center;speak:none;margin:0 0 0 -100px;content:"\e01d";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.rtl .about-wrap .feature-rest div{padding-left:100px}.rtl .about-wrap .feature-rest div.last-feature{padding-right:100px;padding-left:0}.rtl .about-wrap .feature-rest div.icon:before{margin:0 -100px 0 0}.about-wrap .about-integrations{background:#fff;margin:20px 0;padding:1px 20px 10px}.about-wrap .changelog h4{line-height:1.4}.about-wrap .cptui-about-text{margin-bottom:1em!important}.about-wrap .cptui-badge{position:absolute;top:0;right:0}#togglelabels,.js #cptui_select_post_type input[type=submit],.js #cptui_select_taxonomy input[type=submit]{display:none}.js #togglelabels{display:inline-block}.cptui-help{color:#424242;margin-left:4px;opacity:.5;text-decoration:none;width:16px}fieldset .cptui-help{position:relative;top:4px}.cptui-help:hover{color:#0074a2;opacity:1}.cptui-help:focus{box-shadow:none}#toplevel_page_cptui_main_menu img{height:20px;margin-top:-2px;width:20px}.visuallyhidden{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.cptui-section fieldset{border:1px solid #ccc;display:block;margin-bottom:30px;padding:10px;overflow:hidden}.js .cptui-section fieldset.toggledclosed{height:1px}.cptui-section legend{border:1px solid #ccc;border-bottom:0;font-size:14px;font-weight:700;padding:5px}.cptui-spacer{display:block;margin-top:25px}.wdspromos{float:right;margin-left:20px;margin-top:10px;width:275px}.wdspromos #mc_embed_signup{background:#fff;border:1px solid #ccc;clear:left;margin-bottom:10px}.wdspromos-about{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-line-pack:stretch;align-content:stretch;-ms-flex-align:start;align-items:flex-start;margin:20px 0}.wdspromos-about a:first-child,.wdspromos-about a:nth-child(2),.wdspromos-about a:nth-child(3){-ms-flex-order:0;order:0;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:auto;-ms-grid-row-align:auto;align-self:auto}.wdspromos-about p{padding:0 5px}.wdspromos-about p:first-child{padding-left:0}.wdspromos-about p:nth-child(4){padding-right:0}.no-js #cptui_choose_icon{display:none}.cptui-listings th{font-weight:700}.cptui-listings .post-type-listing th{width:16.66667%}.cptui-listings .taxonomy-listing th{width:20%}#poststuff{min-width:463px}@media screen and (min-width:768px){.cptui-badge{padding-top:142px;height:50px;width:173px;color:#fafafa;font-weight:700;font-size:14px;text-align:center;margin:0 -5px;background:url(../images/cptui-icon-173x173.png) no-repeat}}@media screen and (max-width:768px){.cptui-table #description{width:100%}.wdspromos-about{-ms-flex-wrap:wrap;flex-wrap:wrap}.wdspromos-about p{margin:5px auto}.wdspromos-about p:first-child{padding-left:5px}.wdspromos-about p:nth-child(4){padding-right:5px}}
|
css/cptui.scss
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
$min-tablet: "screen and (min-width: 768px)";
|
|
|
2 |
|
3 |
.posttypesui, .taxonomiesui {
|
4 |
.cptui-section:first-child {
|
@@ -23,6 +24,9 @@ $min-tablet: "screen and (min-width: 768px)";
|
|
23 |
.postbox .hndle {
|
24 |
cursor: pointer;
|
25 |
}
|
|
|
|
|
|
|
26 |
}
|
27 |
.cptui-table {
|
28 |
#excerpt {
|
@@ -86,9 +90,6 @@ $min-tablet: "screen and (min-width: 768px)";
|
|
86 |
position: relative;
|
87 |
}
|
88 |
}
|
89 |
-
.required {
|
90 |
-
color: rgb(255,0,0);
|
91 |
-
}
|
92 |
.cptui-field-description {
|
93 |
font-style: italic;
|
94 |
}
|
@@ -394,6 +395,12 @@ $min-tablet: "screen and (min-width: 768px)";
|
|
394 |
flex-wrap: wrap;
|
395 |
p {
|
396 |
margin: 5px auto;
|
|
|
|
|
|
|
|
|
|
|
|
|
397 |
}
|
398 |
}
|
399 |
}
|
1 |
$min-tablet: "screen and (min-width: 768px)";
|
2 |
+
$max-tablet: "screen and (max-width: 768px)";
|
3 |
|
4 |
.posttypesui, .taxonomiesui {
|
5 |
.cptui-section:first-child {
|
24 |
.postbox .hndle {
|
25 |
cursor: pointer;
|
26 |
}
|
27 |
+
.required {
|
28 |
+
color: rgb(255, 0, 0);
|
29 |
+
}
|
30 |
}
|
31 |
.cptui-table {
|
32 |
#excerpt {
|
90 |
position: relative;
|
91 |
}
|
92 |
}
|
|
|
|
|
|
|
93 |
.cptui-field-description {
|
94 |
font-style: italic;
|
95 |
}
|
395 |
flex-wrap: wrap;
|
396 |
p {
|
397 |
margin: 5px auto;
|
398 |
+
&:nth-child(1) {
|
399 |
+
padding-left: 5px;
|
400 |
+
}
|
401 |
+
&:nth-child(4) {
|
402 |
+
padding-right: 5px;
|
403 |
+
}
|
404 |
}
|
405 |
}
|
406 |
}
|
custom-post-type-ui.php
CHANGED
@@ -15,7 +15,7 @@ Plugin Name: Custom Post Type UI
|
|
15 |
Plugin URI: https://github.com/WebDevStudios/custom-post-type-ui/
|
16 |
Description: Admin panel for creating custom post types and custom taxonomies in WordPress
|
17 |
Author: WebDevStudios
|
18 |
-
Version: 1.5.
|
19 |
Author URI: https://webdevstudios.com/
|
20 |
Text Domain: custom-post-type-ui
|
21 |
Domain Path: /languages
|
@@ -27,8 +27,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
27 |
exit;
|
28 |
}
|
29 |
|
30 |
-
define( 'CPT_VERSION', '1.5.
|
31 |
-
define( 'CPTUI_VERSION', '1.5.
|
32 |
define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
|
33 |
|
34 |
/**
|
15 |
Plugin URI: https://github.com/WebDevStudios/custom-post-type-ui/
|
16 |
Description: Admin panel for creating custom post types and custom taxonomies in WordPress
|
17 |
Author: WebDevStudios
|
18 |
+
Version: 1.5.5
|
19 |
Author URI: https://webdevstudios.com/
|
20 |
Text Domain: custom-post-type-ui
|
21 |
Domain Path: /languages
|
27 |
exit;
|
28 |
}
|
29 |
|
30 |
+
define( 'CPT_VERSION', '1.5.5' ); // Left for legacy purposes.
|
31 |
+
define( 'CPTUI_VERSION', '1.5.5' );
|
32 |
define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
|
33 |
|
34 |
/**
|
inc/tools.php
CHANGED
@@ -262,19 +262,19 @@ function cptui_get_single_taxonomy_registery( $taxonomy = array() ) {
|
|
262 |
*/
|
263 |
|
264 |
$labels = array(
|
265 |
-
"name" => __(
|
266 |
-
"singular_name" => __(
|
267 |
<?php
|
268 |
foreach ( $taxonomy['labels'] as $key => $label ) {
|
269 |
if ( ! empty( $label ) ) {
|
270 |
-
echo "\t\t" . '"' . $key . '" => __(
|
271 |
}
|
272 |
}
|
273 |
?>
|
274 |
);
|
275 |
|
276 |
$args = array(
|
277 |
-
"label" => __(
|
278 |
"labels" => $labels,
|
279 |
"public" => <?php echo $public; ?>,
|
280 |
"hierarchical" => <?php echo $taxonomy['hierarchical']; ?>,
|
@@ -430,16 +430,16 @@ function cptui_get_single_post_type_registery( $post_type = array() ) {
|
|
430 |
*/
|
431 |
|
432 |
$labels = array(
|
433 |
-
"name" => __(
|
434 |
-
"singular_name" => __(
|
435 |
<?php
|
436 |
foreach ( $post_type['labels'] as $key => $label ) {
|
437 |
if ( ! empty( $label ) ) {
|
438 |
if ( 'parent' === $key ) {
|
439 |
// Fix for incorrect label key. See #439.
|
440 |
-
echo "\t\t" . '"' . 'parent_item_colon' . '" => __(
|
441 |
} else {
|
442 |
-
echo "\t\t" . '"' . $key . '" => __(
|
443 |
}
|
444 |
}
|
445 |
}
|
@@ -447,7 +447,7 @@ function cptui_get_single_post_type_registery( $post_type = array() ) {
|
|
447 |
);
|
448 |
|
449 |
$args = array(
|
450 |
-
"label" => __(
|
451 |
"labels" => $labels,
|
452 |
"description" => "<?php echo $post_type['description']; ?>",
|
453 |
"public" => <?php echo disp_boolean( $post_type['public'] ); ?>,
|
262 |
*/
|
263 |
|
264 |
$labels = array(
|
265 |
+
"name" => __( "<?php echo $taxonomy['label']; ?>", "<?php echo $textdomain; ?>" ),
|
266 |
+
"singular_name" => __( "<?php echo $taxonomy['singular_label']; ?>", "<?php echo $textdomain; ?>" ),
|
267 |
<?php
|
268 |
foreach ( $taxonomy['labels'] as $key => $label ) {
|
269 |
if ( ! empty( $label ) ) {
|
270 |
+
echo "\t\t" . '"' . $key . '" => __( "' . $label . '", "' . $textdomain . '" ),' . "\n";
|
271 |
}
|
272 |
}
|
273 |
?>
|
274 |
);
|
275 |
|
276 |
$args = array(
|
277 |
+
"label" => __( "<?php echo $taxonomy['label']; ?>", "<?php echo $textdomain; ?>" ),
|
278 |
"labels" => $labels,
|
279 |
"public" => <?php echo $public; ?>,
|
280 |
"hierarchical" => <?php echo $taxonomy['hierarchical']; ?>,
|
430 |
*/
|
431 |
|
432 |
$labels = array(
|
433 |
+
"name" => __( "<?php echo $post_type['label']; ?>", "<?php echo $textdomain; ?>" ),
|
434 |
+
"singular_name" => __( "<?php echo $post_type['singular_label']; ?>", "<?php echo $textdomain; ?>" ),
|
435 |
<?php
|
436 |
foreach ( $post_type['labels'] as $key => $label ) {
|
437 |
if ( ! empty( $label ) ) {
|
438 |
if ( 'parent' === $key ) {
|
439 |
// Fix for incorrect label key. See #439.
|
440 |
+
echo "\t\t" . '"' . 'parent_item_colon' . '" => __( "' . $label . '", "' . $textdomain . '" ),' . "\n";
|
441 |
} else {
|
442 |
+
echo "\t\t" . '"' . $key . '" => __( "' . $label . '", "' . $textdomain . '" ),' . "\n";
|
443 |
}
|
444 |
}
|
445 |
}
|
447 |
);
|
448 |
|
449 |
$args = array(
|
450 |
+
"label" => __( "<?php echo $post_type['label']; ?>", "<?php echo $textdomain; ?>" ),
|
451 |
"labels" => $labels,
|
452 |
"description" => "<?php echo $post_type['description']; ?>",
|
453 |
"public" => <?php echo disp_boolean( $post_type['public'] ); ?>,
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: custom post types, CPT, CMS, post, types, post type, taxonomy, tax, custom, content types, post types
|
5 |
Requires at least: 4.6
|
6 |
Tested up to: 4.8.0
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv2
|
9 |
|
10 |
Admin UI for creating custom post types and custom taxonomies for WordPress
|
@@ -32,6 +32,10 @@ Official development of Custom Post Type UI is on GitHub, with official stable r
|
|
32 |
|
33 |
See changelog.txt for older changes.
|
34 |
|
|
|
|
|
|
|
|
|
35 |
= 1.5.4 - 2017-06-22 =
|
36 |
* Fixed: Resolved saving issue around post types tha matched existing page slugs.
|
37 |
* Fixed: Layout issues on about page.
|
@@ -104,6 +108,10 @@ See changelog.txt for older changes.
|
|
104 |
|
105 |
== Upgrade Notice ==
|
106 |
|
|
|
|
|
|
|
|
|
107 |
= 1.5.4 - 2017-06-22 =
|
108 |
* Fixed: Resolved saving issue around post types tha matched existing page slugs.
|
109 |
* Fixed: Layout issues on about page.
|
4 |
Tags: custom post types, CPT, CMS, post, types, post type, taxonomy, tax, custom, content types, post types
|
5 |
Requires at least: 4.6
|
6 |
Tested up to: 4.8.0
|
7 |
+
Stable tag: 1.5.5
|
8 |
License: GPLv2
|
9 |
|
10 |
Admin UI for creating custom post types and custom taxonomies for WordPress
|
32 |
|
33 |
See changelog.txt for older changes.
|
34 |
|
35 |
+
= 1.5.5 - 2017-07-27 =
|
36 |
+
* Fixed: Prevent possible conflicts with .required css selector by prefixing ours.
|
37 |
+
* Fixed: Better accommodate possible labels with apostrophes, in relation to "Get code" functionality.
|
38 |
+
|
39 |
= 1.5.4 - 2017-06-22 =
|
40 |
* Fixed: Resolved saving issue around post types tha matched existing page slugs.
|
41 |
* Fixed: Layout issues on about page.
|
108 |
|
109 |
== Upgrade Notice ==
|
110 |
|
111 |
+
= 1.5.5 - 2017-07-27 =
|
112 |
+
* Fixed: Prevent possible conflicts with .required css selector by prefixing ours.
|
113 |
+
* Fixed: Better accommodate possible labels with apostrophes, in relation to "Get code" functionality.
|
114 |
+
|
115 |
= 1.5.4 - 2017-06-22 =
|
116 |
* Fixed: Resolved saving issue around post types tha matched existing page slugs.
|
117 |
* Fixed: Layout issues on about page.
|