[wp-trac] [WordPress Trac] #24089: array_keys( get_post_format_slugs() ) is redundant

WordPress Trac noreply at wordpress.org
Mon Apr 15 12:15:43 UTC 2013


#24089: array_keys( get_post_format_slugs() ) is redundant
----------------------------+------------------------------
 Reporter:  SergeyBiryukov  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Post Formats    |     Version:  3.1
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------------------
Description changed by SergeyBiryukov:

Old description:

> Initially, post format slugs used to be translatable ([16705]), so we had
> to use `array_keys()` to get original values. See [17213], [17224].
>
> Since [17391], the slugs are no longer translatable, so `array_keys(
> get_post_format_slugs() )` is redundant.

New description:

 Initially, post format slugs used to be translatable ([16705]), so we had
 to use `array_keys()` to get the original values. See [17213], [17224].

 Since [17391], the slugs are no longer translatable, so `array_keys(
 get_post_format_slugs() )` is redundant.

--

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24089#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list