Tagging 0.9.2.

This commit is contained in:
Nathan Rice
2013-08-09 13:07:35 -04:00
parent 00d39a0424
commit 78faae2bbd
9 changed files with 474 additions and 47 deletions
+8 -2
View File
@@ -4,8 +4,14 @@
* adds new fields to select a sidebar. The variables $tag and $taxonomy
* are passed via the hook so that we can use them.
*/
add_action('category_edit_form', 'ss_term_sidebar', 9, 2);
add_action('post_tag_edit_form', 'ss_term_sidebar', 9, 2);
function ss_term_edit_init() {
$taxonomies = apply_filters( 'genesis_simple_sidebars_taxonomies', array() );
if( !empty( $taxonomies ) && is_admin() && is_array( $taxonomies ) ) {
foreach( $taxonomies as $tax )
add_action( "{$tax}_edit_form", 'ss_term_sidebar', 9, 2 );
}
}
function ss_term_sidebar($tag, $taxonomy) {
// Merge Defaults to prevent notices