[wp-trac] [WordPress Trac] #12706: Custom post status bugs in the admin
WordPress Trac
wp-trac at lists.automattic.com
Fri Oct 8 12:52:20 UTC 2010
#12706: Custom post status bugs in the admin
----------------------------+-----------------------------------------------
Reporter: ptahdunbar | Owner: ptahdunbar
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.1
Component: Post Types | Version:
Severity: normal | Keywords: needs-patch
----------------------------+-----------------------------------------------
Comment(by kevinB):
For the second issue (statuses should be registered to one or more post
types), I suggest following the pattern set for taxonomies:
{{{
function register_taxonomy_for_object_type( $taxonomy, $object_type) {
global $wp_taxonomies;
if ( !isset($wp_taxonomies[$taxonomy]) )
return false;
if ( ! get_post_type_object($object_type) )
return false;
$wp_taxonomies[$taxonomy]->object_type[] = $object_type;
return true;
}
}}}
I would be able to implement that type of solution early next week if
nobody else has it done by then.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12706#comment:24>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list