WordPress.org

Make WordPress Core

Opened 12 months ago

Closed 12 months ago

Last modified 11 months ago

#41238 closed defect (bug) (fixed)

Document $wp global in redirect_canonical()

Reported by: afzalmultani Owned by: 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 12 months ago.
function redirect_canonical in canonical.php
41238.2.patch (498 bytes) - added by afzalmultani 12 months 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 12 months 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
12 months ago

function redirect_canonical in canonical.php

@afzalmultani
12 months 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
12 months ago

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

#1 @SergeyBiryukov
12 months ago

  • Milestone changed from Awaiting Review to 4.9

#2 @SergeyBiryukov
12 months ago

In 41003:

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

Props afzalmultani.
See #41238.

#3 @SergeyBiryukov
12 months 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
12 months 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
11 months ago

  • Component changed from General to Canonical

#6 @SergeyBiryukov
11 months ago

#41310 was marked as a duplicate.

#7 @SergeyBiryukov
11 months ago

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