WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#49017 closed enhancement (fixed)

Administration: Add `doing_wp_cron` to `wp_removable_query_args()`

Reported by: dlh Owned by: SergeyBiryukov
Milestone: 5.4 Priority: normal
Severity: normal Version: 4.2
Component: Administration Keywords: has-patch commit
Focuses: Cc:

Description

In my experience, the doing_wp_cron query var that appears when ALTERNATE_WP_CRON is enabled can cause user confusion in the admin. As far as I can tell, it isn't used by the browser or needed as part of the canonical URL.

While doing_wp_cron can also appear on the frontend, where it's immune to wp_admin_canonical_url(), the attached patch would at least suppress it where core is able to do so reliably.

Attachments (1)

49017.diff (356 bytes) - added by dlh 2 years ago.

Download all attachments as: .zip

Change History (3)

@dlh
2 years ago

#1 @SergeyBiryukov
2 years ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 5.4

#2 @SergeyBiryukov
2 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 47002:

Administration: Add doing_wp_cron to wp_removable_query_args().

It's a single-use URL parameter that does not need to be passed to canonical URLs in the admin.

Props dlh.
Fixes #49017.

Note: See TracTickets for help on using tickets.