Version Description
Added filter to 'public' value of the content_block post type to make it possible to use the Visual Composer plugin. See support topic: http://wordpress.org/support/topic/make-post-type-public
Download this release
Release Info
Developer | vanderwijk |
Plugin | Content Blocks (Custom Post Widget) |
Version | 2.5.3 |
Comparing to | |
See all releases |
Code changes from version 2.5.2 to 2.5.3
- custom-post-widget.php +1 -1
- post-widget.php +2 -1
- readme.txt +3 -0
custom-post-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Custom Post Widget
|
4 |
Plugin URI: http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/
|
5 |
Description: Show the content of a custom post of the type 'content_block' in a widget or with a shortcode.
|
6 |
-
Version: 2.5.
|
7 |
Author: Johan van der Wijk
|
8 |
Author URI: http://www.vanderwijk.com
|
9 |
License: GPL2
|
3 |
Plugin Name: Custom Post Widget
|
4 |
Plugin URI: http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/
|
5 |
Description: Show the content of a custom post of the type 'content_block' in a widget or with a shortcode.
|
6 |
+
Version: 2.5.3
|
7 |
Author: Johan van der Wijk
|
8 |
Author URI: http://www.vanderwijk.com
|
9 |
License: GPL2
|
post-widget.php
CHANGED
@@ -127,9 +127,10 @@ function cpw_post_type_init() {
|
|
127 |
'not_found' => __( 'No Content Blocks Found', 'custom-post-widget' ),
|
128 |
'not_found_in_trash' => __( 'No Content Blocks found in Trash', 'custom-post-widget' )
|
129 |
);
|
|
|
130 |
$options = array(
|
131 |
'labels' => $labels,
|
132 |
-
'public' =>
|
133 |
'publicly_queryable' => false,
|
134 |
'exclude_from_search' => true,
|
135 |
'show_ui' => true,
|
127 |
'not_found' => __( 'No Content Blocks Found', 'custom-post-widget' ),
|
128 |
'not_found_in_trash' => __( 'No Content Blocks found in Trash', 'custom-post-widget' )
|
129 |
);
|
130 |
+
$content_block_public = false; // added to make this a filterable option
|
131 |
$options = array(
|
132 |
'labels' => $labels,
|
133 |
+
'public' => apply_filters( 'content_block_post_type', $content_block_public ),
|
134 |
'publicly_queryable' => false,
|
135 |
'exclude_from_search' => true,
|
136 |
'show_ui' => true,
|
readme.txt
CHANGED
@@ -103,6 +103,9 @@ Creating and supporting this plugin takes up a lot of my free time, therefore I
|
|
103 |
|
104 |
== Changelog ==
|
105 |
|
|
|
|
|
|
|
106 |
= 2.5.2 =
|
107 |
Changed require to require_once in custom-post-widget.php to solve a possible issue reported by John Sundberg.
|
108 |
Updated SE translation files as provided by Andreas Larsson.
|
103 |
|
104 |
== Changelog ==
|
105 |
|
106 |
+
= 2.5.3 =
|
107 |
+
Added filter to 'public' value of the content_block post type to make it possible to use the Visual Composer plugin. See support topic: http://wordpress.org/support/topic/make-post-type-public
|
108 |
+
|
109 |
= 2.5.2 =
|
110 |
Changed require to require_once in custom-post-widget.php to solve a possible issue reported by John Sundberg.
|
111 |
Updated SE translation files as provided by Andreas Larsson.
|