Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#16407 closed defect (bug) (invalid)

Wrong search button label on post type listing panel?

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



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
7 years ago

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

#2 @linuxologos
7 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
7 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
7 years ago

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