[wp-trac] [WordPress Trac] #44069: Private posts are not displayed in "Insert link" editor modal box

WordPress Trac noreply at wordpress.org
Mon May 14 11:42:46 UTC 2018


#44069: Private posts are not displayed in "Insert link" editor modal box
-----------------------------------+---------------------------------
 Reporter:  fetard                 |       Owner:  (none)
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Editor                 |     Version:  4.9.5
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:  ui, administration
-----------------------------------+---------------------------------

Comment (by subrataemfluence):

 @fetard If I have not understood wrong, by saying "search result" you
 meant the inline search which lists you list of available pages when
 typing in a keyword for adding a link.

 To my understanding (may be wrong), if you are marking a post **Private**,
 the post can no way be displayed or even no link to it should be displayed
 by other posts to anonymous (not yet logged in). Since, you are not
 supposed to link a Private post directly from any other post, the private
 page link is not showing up.

 Because if this new page is Published with Public visibility, the link
 will also be visible inside it. If a visitor clicks on it, he will land on
 a page saying something like Oops! That page can’t be found (message in
 twentyseventeen theme)

 Now if you Publish your Private page and then try to link this from
 another page, it will be included and appear in search (list of available
 that could be linked).

 I believe the filtration is intentional since Private pages are always
 meant to be protected from anonymous users.

 The suggested patch brings up a private page in the list, but I don't
 think we really require this.

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


More information about the wp-trac mailing list