WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 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:

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)

comment:1 @Alphawolf5 years ago

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

comment:2 @linuxologos5 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.

comment:3 @Alphawolf5 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!

comment:4 @ocean905 years ago

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