Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#41238 closed defect (bug) (fixed)

Document $wp global in redirect_canonical()

Reported by: afzalmultani's profile afzalmultani Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 4.9 Priority: normal
Severity: normal Version:
Component: Canonical Keywords:
Focuses: docs Cc:

Description

global $wp is used but it is not mentioned in the documentation of the function.

Attachments (3)

41238.patch (475 bytes) - added by afzalmultani 6 years ago.
function redirect_canonical in canonical.php
41238.2.patch (498 bytes) - added by afzalmultani 6 years ago.
global wp_post_statuses is used in make_auto_draft_status_previewable() function but it is not mentioned in the documentation of the function.
41238.3.patch (489 bytes) - added by afzalmultani 6 years ago.
global wpdb is used in get_network_ids() function but it is not mentioned in the documentation of the function.

Download all attachments as: .zip

Change History (10)

@afzalmultani
6 years ago

function redirect_canonical in canonical.php

@afzalmultani
6 years ago

global wp_post_statuses is used in make_auto_draft_status_previewable() function but it is not mentioned in the documentation of the function.

@afzalmultani
6 years ago

global wpdb is used in get_network_ids() function but it is not mentioned in the documentation of the function.

#1 @SergeyBiryukov
6 years ago

  • Milestone changed from Awaiting Review to 4.9

#2 @SergeyBiryukov
6 years ago

In 41003:

Docs: Add a @global entry for $wp in redirect_canonical().

Props afzalmultani.
See #41238.

#3 @SergeyBiryukov
6 years ago

In 41004:

Docs: Add a @global entry for $wp_post_statuses in WP_Customize_Nav_Menus::make_auto_draft_status_previewable().

Props afzalmultani.
See #41238.

#4 @SergeyBiryukov
6 years ago

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

In 41005:

Docs: Add a @global entry for $wpdb in WP_Network_Query::get_network_ids().

Props afzalmultani.
Fixes #41238.

#5 @SergeyBiryukov
6 years ago

  • Component changed from General to Canonical

#6 @SergeyBiryukov
6 years ago

#41310 was marked as a duplicate.

#7 @SergeyBiryukov
6 years ago

  • Summary changed from Needs documentation improvement... to Document $wp global in redirect_canonical()
Note: See TracTickets for help on using tickets.