WP Subtitle - Version 2.8.1

Version Description

  • Fix PHP warning - get_admin_subtitle_value() should be declared static.
Download this release

Release Info

Developer husobj
Plugin Icon 128x128 WP Subtitle
Version 2.8.1
Comparing to
See all releases

Code changes from version 2.8 to 2.8.1

Files changed (5) hide show
  1. CHANGELOG.md +8 -2
  2. README.md +3 -0
  3. admin/admin.php +1 -1
  4. readme.txt +9 -3
  5. wp-subtitle.php +1 -1
CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
 
5
  ## [Unreleased]
6
 
 
 
 
 
 
7
  ## [2.8] - 2016-09-07
8
 
9
  ### Added
@@ -11,7 +16,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
11
 
12
  ### Changed
13
  - Allow subtitle to contain HTML (same as main post title ).
14
- - Use WP_Subtitle class to validate saving of subtitle in the admin.
15
 
16
  ## [2.7.1] - 2016-08-05
17
 
@@ -119,7 +124,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
119
  ### Added
120
  - First version.
121
 
122
- [Unreleased]: https://github.com/benhuson/wp-subtitle/compare/2.8...HEAD
 
123
  [2.8]: https://github.com/benhuson/wp-subtitle/compare/2.7.1...2.8
124
  [2.7.1]: https://github.com/benhuson/wp-subtitle/compare/2.7...2.7.1
125
  [2.7]: https://github.com/benhuson/wp-subtitle/compare/2.6...2.7
4
 
5
  ## [Unreleased]
6
 
7
+ ## [2.8.1] - 2016-09-14
8
+
9
+ ### Fixed
10
+ - Fix PHP warning - `get_admin_subtitle_value()` should be declared static.
11
+
12
  ## [2.8] - 2016-09-07
13
 
14
  ### Added
16
 
17
  ### Changed
18
  - Allow subtitle to contain HTML (same as main post title ).
19
+ - Use `WP_Subtitle` class to validate saving of subtitle in the admin.
20
 
21
  ## [2.7.1] - 2016-08-05
22
 
124
  ### Added
125
  - First version.
126
 
127
+ [Unreleased]: https://github.com/benhuson/wp-subtitle/compare/2.8.1...HEAD
128
+ [2.8.1]: https://github.com/benhuson/wp-subtitle/compare/2.8...2.8.1
129
  [2.8]: https://github.com/benhuson/wp-subtitle/compare/2.7.1...2.8
130
  [2.7.1]: https://github.com/benhuson/wp-subtitle/compare/2.7...2.7.1
131
  [2.7]: https://github.com/benhuson/wp-subtitle/compare/2.6...2.7
README.md CHANGED
@@ -88,6 +88,9 @@ The plugin is [hosted on GitHub](https://github.com/benhuson/wp-subtitle) and pu
88
  Upgrade Notice
89
  --------------
90
 
 
 
 
91
  ### 2.8
92
  Allow subtitle to contain HTML (same as main post title ) and add `wps_default_subtitle` filter.
93
 
88
  Upgrade Notice
89
  --------------
90
 
91
+ ### 2.8.1
92
+ Fix PHP warning - `get_admin_subtitle_value()` should be declared static.
93
+
94
  ### 2.8
95
  Allow subtitle to contain HTML (same as main post title ) and add `wps_default_subtitle` filter.
96
 
admin/admin.php CHANGED
@@ -279,7 +279,7 @@ class WPSubtitle_Admin {
279
  * @param WP_Post $post Post object.
280
  * @return string Subtitle value.
281
  */
282
- private function get_admin_subtitle_value( $post ) {
283
 
284
  $subtitle = new WP_Subtitle( $post );
285
 
279
  * @param WP_Post $post Post object.
280
  * @return string Subtitle value.
281
  */
282
+ private static function get_admin_subtitle_value( $post ) {
283
 
284
  $subtitle = new WP_Subtitle( $post );
285
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: husobj, husani
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SLZUF4XJTS4E6
4
  Tags: subtitle, content, title, subheading, subhead, alternate title
5
  Requires at least: 3.7
6
- Tested up to: 4.6
7
- Stable tag: 2.8
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.txt
10
 
@@ -100,10 +100,13 @@ The plugin is [hosted on GitHub](https://github.com/benhuson/wp-subtitle) and pu
100
 
101
  == Changelog ==
102
 
 
 
 
103
  = 2.8 =
104
  * Allow subtitle to contain HTML (same as main post title ).
105
  * Add `wps_default_subtitle` filter.
106
- * Use WP_Subtitle class to validate saving of subtitle in the admin.
107
 
108
  = 2.7.1 =
109
  * Fix incorrect post ID reference preventing subtitle from saving.
@@ -167,6 +170,9 @@ The plugin is [hosted on GitHub](https://github.com/benhuson/wp-subtitle) and pu
167
 
168
  == Upgrade Notice ==
169
 
 
 
 
170
  = 2.8 =
171
  Allow subtitle to contain HTML (same as main post title ) and add `wps_default_subtitle` filter.
172
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SLZUF4XJTS4E6
4
  Tags: subtitle, content, title, subheading, subhead, alternate title
5
  Requires at least: 3.7
6
+ Tested up to: 4.6.1
7
+ Stable tag: 2.8.1
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.txt
10
 
100
 
101
  == Changelog ==
102
 
103
+ = 2.8.1 =
104
+ * Fix PHP warning - `get_admin_subtitle_value()` should be declared static.
105
+
106
  = 2.8 =
107
  * Allow subtitle to contain HTML (same as main post title ).
108
  * Add `wps_default_subtitle` filter.
109
+ * Use `WP_Subtitle` class to validate saving of subtitle in the admin.
110
 
111
  = 2.7.1 =
112
  * Fix incorrect post ID reference preventing subtitle from saving.
170
 
171
  == Upgrade Notice ==
172
 
173
+ = 2.8.1 =
174
+ Fix PHP warning - `get_admin_subtitle_value()` should be declared static.
175
+
176
  = 2.8 =
177
  Allow subtitle to contain HTML (same as main post title ) and add `wps_default_subtitle` filter.
178
 
wp-subtitle.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: WP Subtitle
5
  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
- Version: 2.8
8
  Author: Ben Huson, Husani Oakley
9
  Author URI: https://github.com/benhuson/wp-subtitle
10
  License: GPLv2
4
  Plugin Name: WP Subtitle
5
  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
+ Version: 2.8.1
8
  Author: Ben Huson, Husani Oakley
9
  Author URI: https://github.com/benhuson/wp-subtitle
10
  License: GPLv2