All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Pass the current post object to the
wps_subtitle_field_placeholder
filter. Props Dominik Schilling.
- Added support for the SEOPress plugin. Props @chriselkins.
- You can now update the subtitle via the REST API. Props @chriselkins.
3.3.1 - 2020-01-29
- Fixed broken closing H2 tag for WooCommerce subtitle. Props @faktorvier.
3.3 - 2019-09-04
- New API for displaying the subtitle using
do_action( 'plugins/wp_subtitle/the_subtitle' )
. - New API for getting the subtitle using
apply_filters( 'plugins/wp_subtitle/get_subtitle', '' )
.
- Admin column title now matches the meta box title if altered using the
wps_meta_box_title
filter.
3.2 - 2018-12-10
- Fix WordPress 5.0 compatibility - check
use_block_editor_for_post_type
.
3.1 - 2018-09-04
%%wps_subtitle%%
placeholders for Yoast SEO compatibility.- WooCommerce compatibility. Go to
WooCommerce > Settings > Products > Display
for settings. wps_subtitle_field_position
filter to position admin fieldafter_title
,before_title
or otherwise in a meta box.- Use metabox UI if editing in Gutenberg.
3.0 - 2017-09-05
- Make
wps_subtitle
available via WordPress REST API. - Added
wps_subtitle_field_position
filter to show subtitle admin fieldbefore_title
,after_title
or in meta box.
2.9.1 - 2017-06-01
- Fix preview not rendering correct template and other post meta.
2.9 - 2017-05-03
- Add support for post revisions. Props Fabian Marz.
- As of WordPress 4.3 no need to
esc_attr()
ANDhtmlentities()
- can mess up special characters.
2.8.1 - 2016-09-14
- Fix PHP warning -
get_admin_subtitle_value()
should be declared static.
2.8 - 2016-09-07
- Add
wps_default_subtitle
filter.
- Allow subtitle to contain HTML (same as main post title ).
- Use
WP_Subtitle
class to validate saving of subtitle in the admin.
2.7.1 - 2016-08-05
- Fix incorrect post ID reference preventing subtitle from saving.
2.7 - 2016-08-04
- Trim subtitle by default.
- Apply wptexturize() on subtitle.
- Use WP_Subtitle class to manage post subtitle.
2.6 - 2015-12-08
- Sanitize
$_REQUEST
and$_GET
when establishing post type in the admin.
- Added quick edit support for subtitle. Props Fabian Marz and sun.
- Allow subtitle post meta key to be filtered using
wps_subtitle_key
. - Add German translation. Props hatsumatsu.
2.5 - 2015-08-19
- Add [wp_subtitle] shortcode.
- Do not use variable for textdomain - causes issues for parsers.
- Declare methods as public or private.
2.4.1 - 2015-06-09
- Fix PHP notice warning on 404 error page. Props Jay Williams.
- Add a little space above subtitle field when below title field in admin.
2.4 - 2015-04-28
- Add subtitle admin column.
2.3.2 - 2015-02-10
- Show subtitle admin field when adding new post. Props Gabriel Doty.
2.3.1 - 2014-10-03
- Ensure subtitles are sanitized when saving.
2.3 - 2014-09-05
- 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.
- Escape subtitle admin field value - fixes issues with subtitles with quotes.
2.2 - 2014-07-02
- Added 'wps_subtitle_use_meta_box' filter to allow the edit field to be displayed in a meta box (the old way).
- Moved subtitle field from meta box to below title field in WordPress 3.5+ (props Tor Morten)
2.1 - 2014-03-12
- Ready for translation - .pot file added.
- Added deprecated function warnings if WP_DEBUG enabled.
- Fix static method warnings.
- Only include admin functionality when needed.
2.0.1 - 2013-09-18
- Use
<?php
instead of just<?
.
- Break out some of the code into separate functions.
2.0 - 2013-07-29
- Added custom post type support - use add_post_type_support( '{post_type}', 'wps_subtitle' ).
- Added 'wps_meta_box_title' filter.
- Added 'wps_subtitle' filter.
- Added 'wps_subtitle_field_description' filter.
- Fixed bug in more recent versions of WordPress.
1.0 - 2013-07-27
- First version.