Skip to content

Commit

Permalink
Twenty Seventeen: Document the $twentyseventeencounter global.
Browse files Browse the repository at this point in the history
Follow-up to [38833], [38986], [55003].

See #57069, #56792.

git-svn-id: https://develop.svn.wordpress.org/trunk@55004 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Dec 18, 2022
1 parent 1fbc27e commit 7c590f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/wp-content/themes/twentyseventeen/inc/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ function twentyseventeen_edit_link() {
/**
* Display a front page section.
*
* @global WP_Post $post Global post object.
* @global int|string $twentyseventeencounter Front page section counter.
* @global WP_Post $post Global post object.
*
* @param WP_Customize_Partial $partial Partial associated with a selective refresh request.
* @param int $id Front page section to display.
Expand Down
4 changes: 2 additions & 2 deletions src/wp-content/themes/twentythirteen/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,9 @@ function twentythirteen_paging_nav() {
/**
* Display navigation to next/previous post when applicable.
*
* @global WP_Post $post Global post object.
*
* @since Twenty Thirteen 1.0
*
* @global WP_Post $post Global post object.
*/
function twentythirteen_post_nav() {
global $post;
Expand Down
4 changes: 2 additions & 2 deletions src/wp-content/themes/twentytwelve/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,9 @@ function twentytwelve_content_nav( $html_id ) {
*
* Used as a callback by wp_list_comments() for displaying the comments.
*
* @global WP_Post $post Global post object.
*
* @since Twenty Twelve 1.0
*
* @global WP_Post $post Global post object.
*/
function twentytwelve_comment( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
Expand Down

0 comments on commit 7c590f2

Please sign in to comment.