Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Commit

Permalink
Add default support for Jetpack Portfolio CPT. Fixes #26.
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Arthur Moore committed Aug 17, 2014
1 parent 4d134cb commit aff3943
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ All versions of _Subtitles_ can be found on the [Releases](https://github.com/ph
### [v1.0.7](#) (August 17th, 2014)

- Bug Fix: Better backend tabbing from the title to the subtitle input field (see [issue](https://github.com/philiparthurmoore/Subtitles/issues/23)).
- Extra: Add default support for Jetpack Portfolios (see [issue](https://github.com/philiparthurmoore/Subtitles/issues/26)).

### [v1.0.6](https://github.com/philiparthurmoore/Subtitles/releases/tag/v1.0.6) (August 4th, 2014)

Expand Down
14 changes: 14 additions & 0 deletions public/class-subtitles.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,20 @@ public function add_subtitles_support() {
* @since 1.0.0
*/
add_post_type_support( 'page', self::SUBTITLE_FEATURE_SUPPORT );

/**
* Automatically enable subtitles support for Jetpack Portfolios
*
* This can be overriden within themes.
*
* @see add_post_type_support()
* @link http://codex.wordpress.org/Function_Reference/add_post_type_support
* @link http://jetpack.me
* @see SUBTITLE_FEATURE_SUPPORT
*
* @since 1.0.7
*/
add_post_type_support( 'jetpack-portfolio', self::SUBTITLE_FEATURE_SUPPORT );
} // end add_subtitles_support()

/**
Expand Down

0 comments on commit aff3943

Please sign in to comment.