From 00d39a0424c912f61c5ba3a55f2ef17f207499a5 Mon Sep 17 00:00:00 2001 From: Nathan Rice Date: Fri, 9 Aug 2013 13:06:39 -0400 Subject: [PATCH] Tagging 0.9.1. --- inpost.php | 9 ++++++--- plugin.php | 2 +- readme.txt | 11 +++++++---- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/inpost.php b/inpost.php index c3bc3c7..b8317a2 100644 --- a/inpost.php +++ b/inpost.php @@ -4,9 +4,12 @@ * so that users can choose what sidebar to use. */ add_action('admin_menu', 'ss_add_inpost_metabox'); -function ss_add_inpost_metabox() { - add_meta_box('ss_inpost_metabox', __('Sidebar Selection', 'genesis'), 'ss_inpost_metabox', 'post', 'side', 'low'); - add_meta_box('ss_inpost_metabox', __('Sidebar Selection', 'genesis'), 'ss_inpost_metabox', 'page', 'side', 'low'); +function ss_add_inpost_metabox() { + foreach ( (array)get_post_types( array( 'public' => true ) ) as $type ) { + if ( post_type_supports( $type, 'genesis-simple-sidebars' ) || $type == 'post' || $type == 'page' ) { + add_meta_box('ss_inpost_metabox', __('Sidebar Selection', 'genesis'), 'ss_inpost_metabox', $type, 'side', 'low'); + } + } } function ss_inpost_metabox() { diff --git a/plugin.php b/plugin.php index 9676111..816b6c0 100644 --- a/plugin.php +++ b/plugin.php @@ -3,7 +3,7 @@ Plugin Name: Genesis Simple Sidebars Plugin URI: http://www.studiopress.com/plugins/simple-sidebars Description: Genesis Simple Sidebars allows you to easily create and use new sidebar widget areas. -Version: 0.9 +Version: 0.9.1 Author: Nathan Rice Author URI: http://www.nathanrice.net/ */ diff --git a/readme.txt b/readme.txt index 986db2b..ef74bb9 100644 --- a/readme.txt +++ b/readme.txt @@ -2,9 +2,9 @@ Contributors: nathanrice Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5553118 Tags: hooks, genesis, genesiswp, studiopress -Requires at least: 2.9 -Tested up to: 3.0 -Stable tag: 0.9 +Requires at least: 3.0 +Tested up to: 3.0.1 +Stable tag: 0.9.1 This plugin allows you to create multiple, dynamic widget areas, and assign those widget areas to sidebar locations within the Genesis Theme Framework on a per post, per page, or per tag/category archive basis. @@ -44,4 +44,7 @@ Not in the way you're probably thinking. The markup surrounding the widget area * Fixed "is not array" errors reported by users * Added nonce verification for security purposes * Added error and success messages -* Bump to pre-release 0.9 branch \ No newline at end of file +* Bump to pre-release 0.9 branch + += 0.9.1 = +* Added support for custom post types \ No newline at end of file