Version Description
- Fix PHP notice warning on 404 error page. Props Jay Williams.
- Add a little space above subtitle field when below title field in admin.
Download this release
Release Info
| Developer | husobj |
| Plugin | |
| Version | 2.4.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.4 to 2.4.1
- admin/admin.php +1 -0
- readme.txt +9 -2
- wp-subtitle.php +2 -2
admin/admin.php
CHANGED
|
@@ -110,6 +110,7 @@ class WPSubtitle_Admin {
|
|
| 110 |
?>
|
| 111 |
<style>
|
| 112 |
#subtitlediv.top {
|
|
|
|
| 113 |
margin-bottom: 15px;
|
| 114 |
position: relative;
|
| 115 |
}
|
| 110 |
?>
|
| 111 |
<style>
|
| 112 |
#subtitlediv.top {
|
| 113 |
+
margin-top: 5px;
|
| 114 |
margin-bottom: 15px;
|
| 115 |
position: relative;
|
| 116 |
}
|
readme.txt
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
Contributors: husobj, husani
|
| 3 |
Tags: subtitle, content, title, subheading, subhead, alternate title
|
| 4 |
Requires at least: 3.7
|
| 5 |
-
Tested up to: 4.2
|
| 6 |
-
Stable tag: 2.4
|
| 7 |
License: GPL2
|
| 8 |
|
| 9 |
Add subtitles (subheadings) to your pages, posts or custom post types.
|
|
@@ -98,6 +98,10 @@ The plugin is [hosted on GitHub](https://github.com/benhuson/wp-subtitle) and pu
|
|
| 98 |
|
| 99 |
== Changelog ==
|
| 100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
= 2.4 =
|
| 102 |
* Add subtitle admin column.
|
| 103 |
|
|
@@ -137,6 +141,9 @@ The plugin is [hosted on GitHub](https://github.com/benhuson/wp-subtitle) and pu
|
|
| 137 |
|
| 138 |
== Upgrade Notice ==
|
| 139 |
|
|
|
|
|
|
|
|
|
|
| 140 |
= 2.4 =
|
| 141 |
Add subtitle admin column.
|
| 142 |
|
| 2 |
Contributors: husobj, husani
|
| 3 |
Tags: subtitle, content, title, subheading, subhead, alternate title
|
| 4 |
Requires at least: 3.7
|
| 5 |
+
Tested up to: 4.2.2
|
| 6 |
+
Stable tag: 2.4.1
|
| 7 |
License: GPL2
|
| 8 |
|
| 9 |
Add subtitles (subheadings) to your pages, posts or custom post types.
|
| 98 |
|
| 99 |
== Changelog ==
|
| 100 |
|
| 101 |
+
= 2.4.1 =
|
| 102 |
+
* Fix PHP notice warning on 404 error page. Props Jay Williams.
|
| 103 |
+
* Add a little space above subtitle field when below title field in admin.
|
| 104 |
+
|
| 105 |
= 2.4 =
|
| 106 |
* Add subtitle admin column.
|
| 107 |
|
| 141 |
|
| 142 |
== Upgrade Notice ==
|
| 143 |
|
| 144 |
+
= 2.4.1 =
|
| 145 |
+
Fix PHP notice warning on 404 error page.
|
| 146 |
+
|
| 147 |
= 2.4 =
|
| 148 |
Add subtitle admin column.
|
| 149 |
|
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.4
|
| 10 |
License: GPLv2
|
| 11 |
*/
|
| 12 |
|
|
@@ -114,7 +114,7 @@ class WPSubtitle {
|
|
| 114 |
*/
|
| 115 |
static function get_the_subtitle( $post = 0 ) {
|
| 116 |
$post = get_post( $post );
|
| 117 |
-
if ( WPSubtitle::is_supported_post_type( $post->post_type ) ) {
|
| 118 |
$subtitle = WPSubtitle::_get_post_meta( $post );
|
| 119 |
return apply_filters( 'wps_subtitle', $subtitle, $post );
|
| 120 |
}
|
| 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.4.1
|
| 10 |
License: GPLv2
|
| 11 |
*/
|
| 12 |
|
| 114 |
*/
|
| 115 |
static function get_the_subtitle( $post = 0 ) {
|
| 116 |
$post = get_post( $post );
|
| 117 |
+
if ( $post && WPSubtitle::is_supported_post_type( $post->post_type ) ) {
|
| 118 |
$subtitle = WPSubtitle::_get_post_meta( $post );
|
| 119 |
return apply_filters( 'wps_subtitle', $subtitle, $post );
|
| 120 |
}
|
