Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#41238 closed defect (bug) (fixed)

Document $wp global in redirect_canonical()

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

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 9 years ago.
function redirect_canonical in canonical.php
41238.2.patch​ (498 bytes ) - added by afzalmultani 9 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 9 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
9 years ago

function redirect_canonical in canonical.php

@afzalmultani
9 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
9 years ago

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

#1 @SergeyBiryukov
9 years ago

  • Milestone Awaiting Review → 4.9

#2 @SergeyBiryukov
9 years ago

In 41003:

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

Props afzalmultani.
See #41238.

#3 @SergeyBiryukov
9 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
9 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 41005:

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

Props afzalmultani.
Fixes #41238.

#5 @SergeyBiryukov
9 years ago

  • Component General → Canonical

#6 @SergeyBiryukov
9 years ago

#41310 was marked as a duplicate.

#7 @SergeyBiryukov
9 years ago

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