[wp-trac] [WordPress Trac] #41118: Add post type classes to internal link search results

WordPress Trac noreply at wordpress.org
Wed Jun 21 16:22:01 UTC 2017


#41118: Add post type classes to internal link search results
--------------------------------+-----------------------------
 Reporter:  guidod              |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Editor              |    Version:  trunk
 Severity:  normal              |   Keywords:
  Focuses:  ui, administration  |
--------------------------------+-----------------------------
 Would be useful to have post-type classes (and maybe others, like post-
 status or whether the post type is hierarchical or not) in the internal
 link search results of the post editor. Currently the output looks like
 this:

 {{{
 <li class="alternate selected"><input type="hidden" class="item-permalink"
 value="http://example.com/"><span class="item-title">Example</span><span
 class="item-info">Page</span></li>
 }}}

 I believe there is no hook that would allow one to add post type classes
 to this output, (I know about the wp_link_query filter that can change the
 query results, but it can't add classes to the LI).

 (Use case: adding custom color indentations or other styles to distinguish
 important post types from non-important post types in these results).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41118>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list