Skip to content

Commit

Permalink
Merge pull request #45 from thenewinquiry/1.3.2
Browse files Browse the repository at this point in the history
#44 Add `bundle` taxonomy to `blogs` post type
  • Loading branch information
frnsys authored Nov 7, 2017
2 parents 5550f99 + bebe723 commit 06f2846
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion includes/class-tni-core-taxonomy.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function register_bundles() {
'show_tagcloud' => true,
'show_in_rest' => true,
);
register_taxonomy( 'bundle', array( 'post' ), apply_filters( 'bundle_taxonomy_args', $args ) );
register_taxonomy( 'bundle', array( 'post', 'blogs' ), apply_filters( 'bundle_taxonomy_args', $args ) );

}

Expand Down
1 change: 1 addition & 0 deletions includes/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ function tni_core_get_featured_bundle_posts() {

$args = array(
'fields' => 'ids',
'post_type' => array( 'post', 'blogs' ),
'posts_per_page' => -1,
'tax_query' => array(
array(
Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: misfist
Tags: custom
Requires at least: 4.7
Tested up to: 4.8.2
Version: 1.3.1
Version: 1.3.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -22,6 +22,11 @@ This section describes how to install the plugin and get it working.

== Changelog ==

= 1.3.2 Novembmer 6, 2017 =
* #44 Added `bundle` taxonomy to `blogs` post type @link https://github.com/thenewinquiry/tni-core-functionality/issues/44
* Added `blogs` to `bundle`
* Included `blogs` post type in `tni_core_get_featured_bundle_posts()`

= 1.3.1 October 30, 2017 =
* #95 SEO customization for JetPack @link https://github.com/thenewinquiry/tni-theme/issues/95
* Added Twitter Description (`seo_description_twitter`) field
Expand Down
4 changes: 2 additions & 2 deletions tni-core-functionality.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Text Domain: tni-core
* Domain Path: /languages
*
* Version: 1.3.1
* Version: 1.3.2
*
* @package Tni_Core_Functionality
*/
Expand Down Expand Up @@ -52,7 +52,7 @@
* @return object Tni_Core
*/
function Tni_Core() {
$instance = Tni_Core::instance( __FILE__, 'l.3.1' );
$instance = Tni_Core::instance( __FILE__, 'l.3.2' );

return $instance;
}
Expand Down

0 comments on commit 06f2846

Please sign in to comment.