Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#25168 closed enhancement (wontfix)

Include scheduled posts in "Add link" dialog

Reported by: thewanderingbrit's profile 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 11 years ago.
Proposed patch for #25168

Download all attachments as: .zip

Change History (11)

#1 @thewanderingbrit
11 years 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

@thewanderingbrit
11 years ago

Proposed patch for #25168

#2 @thewanderingbrit
11 years 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!

#3 @thewanderingbrit
11 years ago

  • Keywords has-patch added; needs-patch removed

#4 @SergeyBiryukov
11 years ago

  • Keywords ux-feedback added

#5 @helen
11 years 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.

#6 @thewanderingbrit
11 years 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?

#7 @helen
11 years 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.

#8 @thewanderingbrit
11 years 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 :)

#9 @helen
11 years ago

They can now - [25293].

#10 @thewanderingbrit
11 years ago

Awesome, thank you :)

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