Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#16407 closed defect (bug) (invalid)

Wrong search button label on post type listing panel?

Reported by: alphawolf's profile Alphawolf Owned by:
Milestone: Priority: normal
Severity: trivial Version: 3.1
Component: Administration Keywords:
Focuses: Cc:

Description

Hewwo,

dunno if this is actually a bug, but I noticed that the search button labels are wrong on post type listing admin pages. So when I browse custom post type posts in the admin area (http://mydomain.com/wp-admin/edit.php?post_type=my-post-type) the upper right search form submit button sais "Search pages".

Aren't custom post types just posts per se so the button should say "Search posts" instead of "Search pages"?

Change History (4)

#1 @Alphawolf
14 years ago

Just happened to see this is also the case in 3.0.4 or even the 3.0.x branch?

#2 @linuxologos
14 years ago

A custom post type is neither a post nor a page. "Search posts/Search pages" is the default value for the "search_items" label used in register_post_type(). If a custom "search_items" label isn't set, the default is used. Choosing between Search posts/Search pages must be related to whether the custom post type is hierarchical or not.

#3 @Alphawolf
14 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Alright, got it. Thanks for making this one clear for me. Changing the 'hierarchical' parameter to false did the trick. I even get why. ;-) Thanks!

#4 @ocean90
14 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.