[wp-trac] [WordPress Trac] #24041: Slug meta box should be added as supported parameter for CPT and post_type_support

WordPress Trac noreply at wordpress.org
Thu Apr 11 01:58:07 UTC 2013


#24041: Slug meta box should be added as supported parameter for CPT and
post_type_support
-------------------------------------------+--------------------------
 Reporter:  wycks                          |       Type:  defect (bug)
   Status:  new                            |   Priority:  normal
Milestone:  Awaiting Review                |  Component:  Post Types
  Version:  3.5.1                          |   Severity:  normal
 Keywords:  2nd-opinion reporter-feedback  |
-------------------------------------------+--------------------------
 When registering a CPT there is no parameter to remove the slug meta box.

 Setting:

 {{{
  'public' => false,
   //Removes the permalink edit box but does not remove the slug meta box
  'rewrite' => false,
   //Also does not remove the slug meta box and still allows for editing
 the slug?
 }}}

 Possible solution:
 Add a new supports parameter `'supports' => array('slug-box'),` when
 registering a CPT

 Furthermore it is confusing in conjunction with the edit permalink
 problem(related #18523 ).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24041>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list