WordPress.org

Make WordPress Core

Opened 8 months ago

Closed 7 months ago

Last modified 7 months ago

#25168 closed enhancement (wontfix)

Include scheduled posts in "Add link" dialog

Reported by: thewanderingbrit Owned by:
Milestone: Priority: normal
Severity: minor Version: 3.6
Component: Editor Keywords: has-patch
Focuses: Cc:

Description

I schedule my posts well in advance to publish in the future, so when I write a new article and I want to link to one of those articles that has not yet been published, but that is scheduled to post, they are not included in the "add link" dialog that comes up in the editor.

I would like to add scheduled posts to the query so that when I want to reference a post that has been written and is scheduled to publish, I can do so before waiting until its published without having to manually retrieve the URL and title.

Attachments (1)

25168.patch (498 bytes) - added by thewanderingbrit 8 months ago.
Proposed patch for #25168

Download all attachments as: .zip

Change History (11)

comment:1 thewanderingbrit8 months ago

This is my attempt to perform my first WordPress patch. I've got everything installed and I think I know generally what I need to do, but I need a little guidance! I don't know how to find the file to edit which lists the posts in the "Insert/edit link" window to add scheduled posts to the query.

Perhaps someone can help point me in the right direction? I'd really like this to be my ticket and my first patch and want to see the process through from beginning to end.

Thanks

thewanderingbrit8 months ago

Proposed patch for #25168

comment:2 thewanderingbrit8 months ago

OK, I found the function for the query that shows links in the "Insert/Edit link" window. I've tested and attached my patch, and now I'm just hoping it gets included!

comment:3 thewanderingbrit8 months ago

  • Keywords has-patch added; needs-patch removed

comment:4 SergeyBiryukov8 months ago

  • Keywords ux-feedback added

comment:5 helen7 months ago

  • Keywords ux-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

I don't think this is good default behavior - I could see somebody linking to something set for the future but publishing the post right then, thus linking to something that 404s. I can understand this being something a specific site might want, though, so a query args filter seems warranted: #18042.

comment:6 thewanderingbrit7 months ago

A query args filter would be a good start, but what about if future dates were in some way highlighted, such as if they were shown in red, or the word FUTURE was added next to them?

comment:7 helen7 months ago

That sounds like something that's specific to the use case - it already shows a date; I don't know what it shows if it's a scheduled post.

comment:8 thewanderingbrit7 months ago

It doesn't show anything as scheduled posts do not show up. Anyway, I think you've made your point, so I'll not push any further :)

comment:9 helen7 months ago

They can now - [25293].

comment:10 thewanderingbrit7 months ago

Awesome, thank you :)

Last edited 7 months ago by thewanderingbrit (previous) (diff)
Note: See TracTickets for help on using tickets.