Version Description
- Security Update: Ensure subtitles are sanitized when saving.
Download this release
Release Info
| Developer | husobj |
| Plugin | |
| Version | 2.3.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.3 to 2.3.1
- admin/admin.php +1 -1
- readme.txt +8 -2
- wp-subtitle.php +1 -1
admin/admin.php
CHANGED
|
@@ -183,7 +183,7 @@ class WPSubtitle_Admin {
|
|
| 183 |
|
| 184 |
// Save data
|
| 185 |
if ( isset( $_POST['wps_subtitle'] ) ) {
|
| 186 |
-
update_post_meta( $post_id, 'wps_subtitle', $_POST['wps_subtitle'] );
|
| 187 |
}
|
| 188 |
}
|
| 189 |
|
| 183 |
|
| 184 |
// Save data
|
| 185 |
if ( isset( $_POST['wps_subtitle'] ) ) {
|
| 186 |
+
update_post_meta( $post_id, 'wps_subtitle', wp_kses_post( $_POST['wps_subtitle'] ) );
|
| 187 |
}
|
| 188 |
}
|
| 189 |
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: husani, husobj
|
|
| 3 |
Tags: subtitle, content, title, subheading, subhead, alternate title
|
| 4 |
Requires at least: 3.0
|
| 5 |
Tested up to: 4.0
|
| 6 |
-
Stable tag: 2.3
|
| 7 |
License: GPL2
|
| 8 |
|
| 9 |
Add subtitles (subheadings) to your pages, posts or custom post types.
|
|
@@ -96,7 +96,10 @@ The plugin is [hosted on GitHub](https://github.com/benhuson/wp-subtitle) and pu
|
|
| 96 |
1. Edit post screen (for earlier versions of WordPress or using the 'wps_subtitle_use_meta_box' filter)
|
| 97 |
2. A single page showing a subtitle
|
| 98 |
|
| 99 |
-
== Changelog
|
|
|
|
|
|
|
|
|
|
| 100 |
|
| 101 |
= 2.3 =
|
| 102 |
* Prevent subtitle fields from displaying on post types for which support has not been added using add_post_type_support(). Previously the fields were displayed but the subtitle would not be saved.
|
|
@@ -128,6 +131,9 @@ The plugin is [hosted on GitHub](https://github.com/benhuson/wp-subtitle) and pu
|
|
| 128 |
|
| 129 |
== Upgrade Notice ==
|
| 130 |
|
|
|
|
|
|
|
|
|
|
| 131 |
= 2.3 =
|
| 132 |
Prevent subtitle fields from displaying on unsupported post types and fix issue with quotes in subtitles.
|
| 133 |
|
| 3 |
Tags: subtitle, content, title, subheading, subhead, alternate title
|
| 4 |
Requires at least: 3.0
|
| 5 |
Tested up to: 4.0
|
| 6 |
+
Stable tag: 2.3.1
|
| 7 |
License: GPL2
|
| 8 |
|
| 9 |
Add subtitles (subheadings) to your pages, posts or custom post types.
|
| 96 |
1. Edit post screen (for earlier versions of WordPress or using the 'wps_subtitle_use_meta_box' filter)
|
| 97 |
2. A single page showing a subtitle
|
| 98 |
|
| 99 |
+
== Changelog ==
|
| 100 |
+
|
| 101 |
+
= 2.3.1 =
|
| 102 |
+
* Security Update: Ensure subtitles are sanitized when saving.
|
| 103 |
|
| 104 |
= 2.3 =
|
| 105 |
* Prevent subtitle fields from displaying on post types for which support has not been added using add_post_type_support(). Previously the fields were displayed but the subtitle would not be saved.
|
| 131 |
|
| 132 |
== Upgrade Notice ==
|
| 133 |
|
| 134 |
+
= 2.3.1 =
|
| 135 |
+
Security Update: Ensure subtitles are sanitized when saving.
|
| 136 |
+
|
| 137 |
= 2.3 =
|
| 138 |
Prevent subtitle fields from displaying on unsupported post types and fix issue with quotes in subtitles.
|
| 139 |
|
wp-subtitle.php
CHANGED
|
@@ -6,7 +6,7 @@ Plugin URI: http://wordpress.org/plugins/wp-subtitle/
|
|
| 6 |
Description: Adds a subtitle field to pages and posts. Possible to add support for custom post types.
|
| 7 |
Author: Husani Oakley, Ben Huson
|
| 8 |
Author URI: https://github.com/benhuson/wp-subtitle
|
| 9 |
-
Version: 2.3
|
| 10 |
License: GPLv2
|
| 11 |
*/
|
| 12 |
|
| 6 |
Description: Adds a subtitle field to pages and posts. Possible to add support for custom post types.
|
| 7 |
Author: Husani Oakley, Ben Huson
|
| 8 |
Author URI: https://github.com/benhuson/wp-subtitle
|
| 9 |
+
Version: 2.3.1
|
| 10 |
License: GPLv2
|
| 11 |
*/
|
| 12 |
|
