Would it be a good idea to create an add_post_formats() function much like is currently done for features like editor style and custom backgrounds which have functions like add_editor_style() and add_custom_image_header(). This way add_post_formats() could check against a white-list and the results *should* be seen throughout WordPress?
> Working on both now ... hopefully done within the next 20-30 minutes ... > > On Sun, Jan 2, 2011 at 7:11 AM, Rich Pedley <[email protected]> wrote: > >> On 02/01/2011 15:08, Eric Mann wrote: >> >>> Mike, >>> >>> Right you are. My mistake was testing with a theme that used >>> `add_theme_support()` elsewhere in the page. This bug does exist. >>> >>> On Sun, Jan 2, 2011 at 7:01 AM,<[email protected]> wrote: >>> >>> Rich and Eric, >>>> >>>> I can confirm this in 3.1-RC2. I was able to register the post_formats >>>> "banana" and "taco" assign them to posts and even have the slug >>>> display >>>> via get_post_format(). The radio buttons appear, but have no label. >>>> Here's >>>> my code: >>>> >>>> add_theme_support( 'post-formats', array( 'banana', 'aside', 'audio', >>>> 'chat', 'status', 'image', 'gallery', 'quote', 'taco' ) ); >>>> >>>> -Mike >>>> >>>> Rich, >>>>> >>>>> I can't reproduce this with the latest nightly. Can you re-confirm >>>>> >>>> you're >>>> >>>>> seeing this and also link to the build number you're testing against? >>>>> >>>>> On Sun, Jan 2, 2011 at 5:41 AM, Rich Pedley<[email protected]> >>>>> wrote: >>>>> >>>>> If you add theme support for an unknown post-format it appears on >>>>> the >>>>>> edit >>>>>> screen, but with a blank label. As extra ones were not supposed to >>>>>> be >>>>>> allowed then surely this is a mistake. >>>>>> >>>>> >> want me to raise the trac ticket, or does someone want a solution first? >> >> >> Rich >> _______________________________________________ >> wp-testers mailing list >> [email protected] >> http://lists.automattic.com/mailman/listinfo/wp-testers >> > _______________________________________________ > wp-testers mailing list > [email protected] > http://lists.automattic.com/mailman/listinfo/wp-testers > _______________________________________________ wp-testers mailing list [email protected] http://lists.automattic.com/mailman/listinfo/wp-testers
