[wp-testers] bug with post-formats in latest nightly (3.1-RC2)

Eric Mann eric at eam.me
Sun Jan 2 14:46:58 UTC 2011


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 <elfin at elfden.co.uk> 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.
>
> So if I test with the following:
>
> add_theme_support( 'post-formats', array( 'aside', 'gallery','bug' ) );
>
> I actually see, 4 radio buttons and 3 labels: Standard, Aside, Gallery. the
> 4th label markup is there, but with no visible text.
>
>
> Adding in a check to see if get_post_format_string( $format ) isn't blank
> would fix this, but that seems an awkward solution.
>
> So I'm guessing that a check needs to be done after line 245 of
> meta-boxes.php
> $post_formats = get_theme_support( 'post-formats' );
>
> to check the array against the allowed get_post_format_strings.
>
> Rich
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>


More information about the wp-testers mailing list