[wp-trac] [WordPress Trac] #37372: missing "edit permalink button" below the title

WordPress Trac noreply at wordpress.org
Thu Jul 14 22:53:44 UTC 2016


#37372: missing "edit permalink button" below the title
-------------------------------+------------------------------
 Reporter:  realblueorange     |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  4.5.3
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------

Comment (by realblueorange):

 Replying to [comment:1 achbed]:
 > The reason is that querying posts must include the post type in some
 fashion.  A permalink simply maps to an internal post query.  So in order
 to use the permalink system, you must have `publicly_queryable` set to
 `true`.  Setting `public` to `false` also changes this setting to `false`.

  If I understand the register_post_type() function correctly the 'public'
 argument is a way of setting 4 other arguments at once.

 The value true implies exclude_from_search: false, publicly_queryable:
 true, show_in_nav_menus: true, and show_ui: true.

 Setting it to false implies: exclude_from_search: true,
 publicly_queryable: false, show_in_nav_menus: false, and show_ui: false

 I need exclude_from_search: true, publicly_queryable: false,
 show_in_nav_menus: false, and show_ui: true.

 I would expect that setting 'public' to false and 'show_ui' to true would
 result in the normal user interface, including the "edit permalink button"
 below the title. And, I do need the permalinks.

 By the way: I have 'publicly_queryable' set to false, but that does not
 mean I cannot use them or show them. They do have permalinks that are
 useable.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37372#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list