Skip to content

Commit

Permalink
Merge branch 'release/3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
benhuson committed Dec 10, 2018
2 parents c658f69 + 514c39b commit 27dc9d4
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 5 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [3.2] - 2018-12-10

### Changed
- Fix WordPress 5.0 compatibility - check `use_block_editor_for_post_type`.

## [3.1] - 2018-09-04

### Added
Expand Down Expand Up @@ -151,7 +156,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Added
- First version.

[Unreleased]: https://github.com/benhuson/wp-subtitle/compare/3.1...HEAD
[Unreleased]: https://github.com/benhuson/wp-subtitle/compare/3.2...HEAD
[3.2]: https://github.com/benhuson/wp-subtitle/compare/3.1...3.2
[3.1]: https://github.com/benhuson/wp-subtitle/compare/3.0...3.1
[3.0]: https://github.com/benhuson/wp-subtitle/compare/2.9.2...3.0
[2.9.1]: https://github.com/benhuson/wp-subtitle/compare/2.9...2.9.1
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ __Where does WP Subtitle store the subtitles?__

All subtitles are stored as post meta data. Deactivating this plugin will not remove those fields.

__Compatibility with WordPress 5.0+__

In the new editor in WordPress 5.0 the subtitle is editable via ap panel in the sidebar (like excerpts).

__How do I add the subtitle to my pages?__

Refer to [the documentation](https://github.com/benhuson/wp-subtitle/wiki).
Expand Down Expand Up @@ -90,6 +94,9 @@ Upgrade Notice

### Unreleased

### 3.2
Fix WordPress 5.0 compatibility.

### 3.1
WooCommerce compatibility: Go to `WooCommerce > Settings > Products > Display` for settings. Yoast SEO compatibility: Added `%%wps_subtitle%%` placeholders. Gutenberg compatibility: Use metabox UI.

Expand Down
2 changes: 1 addition & 1 deletion admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ private static function edit_form_after_title_supported( $post_type = '' ) {
*/
private static function gutenberg_supported( $post_type = '' ) {

if ( function_exists( 'gutenberg_can_edit_post_type' ) && gutenberg_can_edit_post_type( $post_type ) && ! isset( $_GET['classic-editor'] ) ) {
if ( function_exists( 'use_block_editor_for_post_type' ) && use_block_editor_for_post_type( $post_type ) && ! isset( $_GET['classic-editor'] ) ) {
return true;
}

Expand Down
14 changes: 12 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: husobj, husani
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SLZUF4XJTS4E6
Tags: subtitle, content, title, subheading, subhead, alternate title
Requires at least: 3.7
Tested up to: 4.9.8
Stable tag: 3.1
Tested up to: 5.0
Stable tag: 3.2
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.txt

Expand Down Expand Up @@ -65,6 +65,10 @@ The plugin adds a Subtitle field when editing posts or pages. The subtitle is st

All subtitles are stored as post meta data. Deactivating this plugin will not remove those fields.

= Compatibility with WordPress 5.0+ =

In the new editor in WordPress 5.0 the subtitle is editable via ap panel in the sidebar (like excerpts).

= How do I add the subtitle to my pages? =

Refer to [the documentation](https://github.com/benhuson/wp-subtitle/wiki).
Expand Down Expand Up @@ -102,6 +106,9 @@ The plugin is [hosted on GitHub](https://github.com/benhuson/wp-subtitle) and pu

= Unreleased =

= 3.2 =
* Fix WordPress 5.0 compatibility - check `use_block_editor_for_post_type`.

= 3.1 =
* Added `%%wps_subtitle%%` placeholders for Yoast SEO compatibility.
* WooCommerce compatibility. Go to `WooCommerce > Settings > Products > Display` for settings.
Expand Down Expand Up @@ -188,6 +195,9 @@ The plugin is [hosted on GitHub](https://github.com/benhuson/wp-subtitle) and pu

== Upgrade Notice ==

= 3.2 =
Fix WordPress 5.0 compatibility.

= 3.1 =
WooCommerce compatibility: Go to `WooCommerce > Settings > Products > Display` for settings. Yoast SEO compatibility: Added `%%wps_subtitle%%` placeholders. Gutenberg compatibility: Add metabox UI.

Expand Down
2 changes: 1 addition & 1 deletion wp-subtitle.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin Name: WP Subtitle
Plugin URI: http://wordpress.org/plugins/wp-subtitle/
Description: Adds a subtitle field to pages and posts. Possible to add support for custom post types.
Version: 3.1
Version: 3.2
Author: Ben Huson, Husani Oakley
Author URI: https://github.com/benhuson/wp-subtitle
License: GPLv2
Expand Down

0 comments on commit 27dc9d4

Please sign in to comment.