-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document globals in bundled themes #5920
base: trunk
Are you sure you want to change the base?
Changes from 24 commits
45c8adc
b765a7e
b0dd7a6
f1e0005
df0980b
0f278e1
6d342d3
9be551c
4b26696
cbd5ef8
2add9e4
20a6e3b
e2c8a32
94989f0
9f777c6
5c3d4a4
6b74b32
f6892bf
2d877d8
cecad66
80fb633
da9e9f7
8b245b5
1c6e7ee
a9a4206
b24fe08
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,8 @@ | |
* @uses set_post_thumbnail_size() To set a custom post thumbnail size. | ||
* | ||
* @since Twenty Eleven 1.0 | ||
* | ||
* @global string $wp_version WordPress version. | ||
*/ | ||
function twentyeleven_setup() { | ||
|
||
|
@@ -637,6 +639,8 @@ function twentyeleven_widgets_init() { | |
* | ||
* @since Twenty Eleven 1.0 | ||
* | ||
* @global WP_Query $wp_query WordPress Query object. | ||
* | ||
* @param string $html_id The HTML id attribute. | ||
*/ | ||
function twentyeleven_content_nav( $html_id ) { | ||
|
@@ -741,6 +745,8 @@ function twentyeleven_footer_sidebar_class() { | |
* | ||
* @since Twenty Eleven 1.0 | ||
* | ||
* @global WP_Comment $comment Global comment object. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 58715.2.patch documented the |
||
* | ||
* @param WP_Comment $comment The comment object. | ||
* @param array $args An array of comment arguments. @see get_comment_reply_link() | ||
* @param int $depth The depth of the comment. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -208,7 +208,11 @@ | |
if ( $recent->have_posts() ) : | ||
$recent->the_post(); | ||
|
||
// Set $more to 0 in order to only get the first part of the post. | ||
/* | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. single-line comment style changed to multi-line (should it be docblock or edited another way?) |
||
* Set $more to 0 in order to only get the first part of the post. | ||
* | ||
* @global int $more | ||
*/ | ||
global $more; | ||
$more = 0; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,9 @@ public function enqueue_scripts() { | |
* | ||
* @since Twenty Fourteen 1.0 | ||
* | ||
* @global int $content_width Content width. | ||
* @global int $more | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 59101-twentyfifteen.patch and the Core |
||
* | ||
* @param array $args An array of standard parameters for widgets in this theme. | ||
* @param array $instance An array of settings for this widget instance. | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Twenty Twenty documents
$wp_query
in the index.php template using a similar short docblock. Is this the best way for templates such ascontent-featured.php
or Twenty Seventeen's content-front-page-panels.php to document their globals?