Version Description
- Fix WordPress 5.0 compatibility - check
use_block_editor_for_post_type
.
Download this release
Release Info
Developer | husobj |
Plugin | WP Subtitle |
Version | 3.2 |
Comparing to | |
See all releases |
Code changes from version 3.1 to 3.2
- CHANGELOG.md +7 -1
- README.md +7 -0
- admin/admin.php +1 -1
- readme.txt +12 -2
- 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 |
## [3.1] - 2018-09-04
|
8 |
|
9 |
### Added
|
@@ -151,7 +156,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
151 |
### Added
|
152 |
- First version.
|
153 |
|
154 |
-
[Unreleased]: https://github.com/benhuson/wp-subtitle/compare/3.
|
|
|
155 |
[3.1]: https://github.com/benhuson/wp-subtitle/compare/3.0...3.1
|
156 |
[3.0]: https://github.com/benhuson/wp-subtitle/compare/2.9.2...3.0
|
157 |
[2.9.1]: https://github.com/benhuson/wp-subtitle/compare/2.9...2.9.1
|
4 |
|
5 |
## [Unreleased]
|
6 |
|
7 |
+
## [3.2] - 2018-12-10
|
8 |
+
|
9 |
+
### Changed
|
10 |
+
- Fix WordPress 5.0 compatibility - check `use_block_editor_for_post_type`.
|
11 |
+
|
12 |
## [3.1] - 2018-09-04
|
13 |
|
14 |
### Added
|
156 |
### Added
|
157 |
- First version.
|
158 |
|
159 |
+
[Unreleased]: https://github.com/benhuson/wp-subtitle/compare/3.2...HEAD
|
160 |
+
[3.2]: https://github.com/benhuson/wp-subtitle/compare/3.1...3.2
|
161 |
[3.1]: https://github.com/benhuson/wp-subtitle/compare/3.0...3.1
|
162 |
[3.0]: https://github.com/benhuson/wp-subtitle/compare/2.9.2...3.0
|
163 |
[2.9.1]: https://github.com/benhuson/wp-subtitle/compare/2.9...2.9.1
|
README.md
CHANGED
@@ -58,6 +58,10 @@ __Where does WP Subtitle store the subtitles?__
|
|
58 |
|
59 |
All subtitles are stored as post meta data. Deactivating this plugin will not remove those fields.
|
60 |
|
|
|
|
|
|
|
|
|
61 |
__How do I add the subtitle to my pages?__
|
62 |
|
63 |
Refer to [the documentation](https://github.com/benhuson/wp-subtitle/wiki).
|
@@ -90,6 +94,9 @@ Upgrade Notice
|
|
90 |
|
91 |
### Unreleased
|
92 |
|
|
|
|
|
|
|
93 |
### 3.1
|
94 |
WooCommerce compatibility: Go to `WooCommerce > Settings > Products > Display` for settings. Yoast SEO compatibility: Added `%%wps_subtitle%%` placeholders. Gutenberg compatibility: Use metabox UI.
|
95 |
|
58 |
|
59 |
All subtitles are stored as post meta data. Deactivating this plugin will not remove those fields.
|
60 |
|
61 |
+
__Compatibility with WordPress 5.0+__
|
62 |
+
|
63 |
+
In the new editor in WordPress 5.0 the subtitle is editable via ap panel in the sidebar (like excerpts).
|
64 |
+
|
65 |
__How do I add the subtitle to my pages?__
|
66 |
|
67 |
Refer to [the documentation](https://github.com/benhuson/wp-subtitle/wiki).
|
94 |
|
95 |
### Unreleased
|
96 |
|
97 |
+
### 3.2
|
98 |
+
Fix WordPress 5.0 compatibility.
|
99 |
+
|
100 |
### 3.1
|
101 |
WooCommerce compatibility: Go to `WooCommerce > Settings > Products > Display` for settings. Yoast SEO compatibility: Added `%%wps_subtitle%%` placeholders. Gutenberg compatibility: Use metabox UI.
|
102 |
|
admin/admin.php
CHANGED
@@ -475,7 +475,7 @@ class WPSubtitle_Admin {
|
|
475 |
*/
|
476 |
private static function gutenberg_supported( $post_type = '' ) {
|
477 |
|
478 |
-
if ( function_exists( '
|
479 |
return true;
|
480 |
}
|
481 |
|
475 |
*/
|
476 |
private static function gutenberg_supported( $post_type = '' ) {
|
477 |
|
478 |
+
if ( function_exists( 'use_block_editor_for_post_type' ) && use_block_editor_for_post_type( $post_type ) && ! isset( $_GET['classic-editor'] ) ) {
|
479 |
return true;
|
480 |
}
|
481 |
|
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:
|
7 |
-
Stable tag: 3.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
10 |
|
@@ -65,6 +65,10 @@ The plugin adds a Subtitle field when editing posts or pages. The subtitle is st
|
|
65 |
|
66 |
All subtitles are stored as post meta data. Deactivating this plugin will not remove those fields.
|
67 |
|
|
|
|
|
|
|
|
|
68 |
= How do I add the subtitle to my pages? =
|
69 |
|
70 |
Refer to [the documentation](https://github.com/benhuson/wp-subtitle/wiki).
|
@@ -102,6 +106,9 @@ The plugin is [hosted on GitHub](https://github.com/benhuson/wp-subtitle) and pu
|
|
102 |
|
103 |
= Unreleased =
|
104 |
|
|
|
|
|
|
|
105 |
= 3.1 =
|
106 |
* Added `%%wps_subtitle%%` placeholders for Yoast SEO compatibility.
|
107 |
* WooCommerce compatibility. Go to `WooCommerce > Settings > Products > Display` for settings.
|
@@ -188,6 +195,9 @@ The plugin is [hosted on GitHub](https://github.com/benhuson/wp-subtitle) and pu
|
|
188 |
|
189 |
== Upgrade Notice ==
|
190 |
|
|
|
|
|
|
|
191 |
= 3.1 =
|
192 |
WooCommerce compatibility: Go to `WooCommerce > Settings > Products > Display` for settings. Yoast SEO compatibility: Added `%%wps_subtitle%%` placeholders. Gutenberg compatibility: Add metabox UI.
|
193 |
|
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: 5.0
|
7 |
+
Stable tag: 3.2
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
10 |
|
65 |
|
66 |
All subtitles are stored as post meta data. Deactivating this plugin will not remove those fields.
|
67 |
|
68 |
+
= Compatibility with WordPress 5.0+ =
|
69 |
+
|
70 |
+
In the new editor in WordPress 5.0 the subtitle is editable via ap panel in the sidebar (like excerpts).
|
71 |
+
|
72 |
= How do I add the subtitle to my pages? =
|
73 |
|
74 |
Refer to [the documentation](https://github.com/benhuson/wp-subtitle/wiki).
|
106 |
|
107 |
= Unreleased =
|
108 |
|
109 |
+
= 3.2 =
|
110 |
+
* Fix WordPress 5.0 compatibility - check `use_block_editor_for_post_type`.
|
111 |
+
|
112 |
= 3.1 =
|
113 |
* Added `%%wps_subtitle%%` placeholders for Yoast SEO compatibility.
|
114 |
* WooCommerce compatibility. Go to `WooCommerce > Settings > Products > Display` for settings.
|
195 |
|
196 |
== Upgrade Notice ==
|
197 |
|
198 |
+
= 3.2 =
|
199 |
+
Fix WordPress 5.0 compatibility.
|
200 |
+
|
201 |
= 3.1 =
|
202 |
WooCommerce compatibility: Go to `WooCommerce > Settings > Products > Display` for settings. Yoast SEO compatibility: Added `%%wps_subtitle%%` placeholders. Gutenberg compatibility: Add metabox UI.
|
203 |
|
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: 3.
|
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: 3.2
|
8 |
Author: Ben Huson, Husani Oakley
|
9 |
Author URI: https://github.com/benhuson/wp-subtitle
|
10 |
License: GPLv2
|