Make WordPress Core

Opened 7 years ago

Closed 2 years ago

#43164 closed enhancement (fixed)

Function Description : wp-includes/link-template.php

Reported by: mt8biz's profile mt8.biz Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 6.1 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: docs Cc:

Description

There is no descrption for global vars

Attachments (2)

link-template.php.diff (285 bytes) - added by mt8.biz 7 years ago.
43164.diff (474 bytes) - added by sabernhardt 4 years ago.

Download all attachments as: .zip

Change History (6)

#1 @desrosj
5 years ago

  • Keywords has-patch added

@sabernhardt
4 years ago

#2 @sabernhardt
4 years ago

  • Version 4.1 deleted

The WP_Query note was not included for get_the_posts_pagination(), as it had been for the get_the_posts_navigation() function:

@global WP_Query $wp_query WordPress Query object.

#3 @sabernhardt
2 years ago

  • Milestone changed from Awaiting Review to 6.1

This would make more sense as part of #39447, but this could be a simple change on its own.

#4 @SergeyBiryukov
2 years ago

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

In 53520:

Docs: Consistently declare the $wp_query global in link template functions.

This ensures that the global is explicitly declared and documented in:

  • get_next_posts_link()
  • get_posts_nav_link()
  • get_the_posts_navigation()
  • get_the_posts_pagination()
  • get_next_comments_link()

Follow-up to [30065].

Props mt8.biz, sabernhardt.
Fixes #43164.

Note: See TracTickets for help on using tickets.