Version Description
Added html sanitizing to the Content Block post titles. Thanks to @palpatine1976 for bringing this to my attention.
Download this release
Release Info
Developer | vanderwijk |
Plugin | Content Blocks (Custom Post Widget) |
Version | 3.0.1 |
Comparing to | |
See all releases |
Code changes from version 3.0 to 3.0.1
- custom-post-widget.php +2 -2
- popup.php +2 -2
- readme.txt +5 -2
custom-post-widget.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
Plugin Name: Content Blocks (Custom Post Widget)
|
4 |
Plugin URI: http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/?utm_source=wordpress&utm_medium=plugin&utm_campaign=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: 3.0
|
7 |
Author: Johan van der Wijk
|
8 |
Author URI: http://vanderwijk.nl
|
9 |
Text Domain: custom-post-widget
|
10 |
Domain Path: /languages
|
11 |
License: GPL2
|
12 |
|
13 |
-
Release notes:
|
14 |
|
15 |
Copyright 2017 Johan van der Wijk
|
16 |
|
3 |
Plugin Name: Content Blocks (Custom Post Widget)
|
4 |
Plugin URI: http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/?utm_source=wordpress&utm_medium=plugin&utm_campaign=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: 3.0.1
|
7 |
Author: Johan van der Wijk
|
8 |
Author URI: http://vanderwijk.nl
|
9 |
Text Domain: custom-post-widget
|
10 |
Domain Path: /languages
|
11 |
License: GPL2
|
12 |
|
13 |
+
Release notes: Added esc_html to the post titles in the popup select box
|
14 |
|
15 |
Copyright 2017 Johan van der Wijk
|
16 |
|
popup.php
CHANGED
@@ -50,9 +50,9 @@ function add_content_block_popup() { ?>
|
|
50 |
<?php
|
51 |
$args = array( 'post_type' => 'content_block', 'suppress_filters' => 0, 'numberposts' => -1, 'order' => 'ASC' );
|
52 |
$content_block = get_posts( $args );
|
53 |
-
if ($content_block) {
|
54 |
foreach( $content_block as $content_block ) : setup_postdata( $content_block );
|
55 |
-
echo '<option value="' . $content_block->ID . '" data-slug="' . $content_block->post_name . '">' . $content_block->post_title . '</option>';
|
56 |
endforeach;
|
57 |
} else {
|
58 |
echo '<option value="">' . __( 'No content blocks available', 'custom-post-widget' ) . '</option>';
|
50 |
<?php
|
51 |
$args = array( 'post_type' => 'content_block', 'suppress_filters' => 0, 'numberposts' => -1, 'order' => 'ASC' );
|
52 |
$content_block = get_posts( $args );
|
53 |
+
if ( $content_block ) {
|
54 |
foreach( $content_block as $content_block ) : setup_postdata( $content_block );
|
55 |
+
echo '<option value="' . $content_block -> ID . '" data-slug="' . $content_block -> post_name . '">' . esc_html( $content_block -> post_title ) . '</option>';
|
56 |
endforeach;
|
57 |
} else {
|
58 |
echo '<option value="">' . __( 'No content blocks available', 'custom-post-widget' ) . '</option>';
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: vanderwijk
|
3 |
Tags: widget, sidebar, content block, block, custom, post, shortcode, wysiwyg, wpml, featured image
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to: 4.7.
|
6 |
-
Stable tag: 3.0
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -126,6 +126,9 @@ Creating and supporting this plugin takes up a lot of my free time, therefore I
|
|
126 |
|
127 |
== Changelog ==
|
128 |
|
|
|
|
|
|
|
129 |
= 3.0 =
|
130 |
Renamed the plugin to Content Blocks to better reflect the purpose.
|
131 |
|
2 |
Contributors: vanderwijk
|
3 |
Tags: widget, sidebar, content block, block, custom, post, shortcode, wysiwyg, wpml, featured image
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 4.7.3
|
6 |
+
Stable tag: 3.0.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
126 |
|
127 |
== Changelog ==
|
128 |
|
129 |
+
= 3.0.1 =
|
130 |
+
Added html sanitizing to the Content Block post titles. Thanks to @palpatine1976 for bringing this to my attention.
|
131 |
+
|
132 |
= 3.0 =
|
133 |
Renamed the plugin to Content Blocks to better reflect the purpose.
|
134 |
|