-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Document globals in bundled themes #5920
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
base: trunk
Are you sure you want to change the base?
Changes from all 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
44d6dcc
7d74ac6
c7124ba
84911f3
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 |
|---|---|---|
|
|
@@ -7,6 +7,9 @@ | |
| * @since Twenty Eleven 1.0 | ||
| */ | ||
|
|
||
| /** | ||
| * @global string $feature_class Classes for post container of featured posts. | ||
| */ | ||
|
Author
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. Twenty Twenty documents |
||
| global $feature_class; | ||
| ?> | ||
| <article id="post-<?php the_ID(); ?>" <?php post_class( $feature_class ); ?>> | ||
|
|
||
| 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 The WordPress version string. | ||
| */ | ||
| function twentyeleven_setup() { | ||
|
|
||
|
|
@@ -636,6 +638,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 ) { | ||
|
|
@@ -753,6 +757,8 @@ function twentyeleven_footer_sidebar_class() { | |
| * | ||
| * @since Twenty Eleven 1.0 | ||
| * | ||
| * @global WP_Comment $comment Global comment object. | ||
|
Author
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. | ||||||||||
| /* | ||||||||||
|
Author
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. | ||||||||||
|
Comment on lines
+211
to
+212
Author
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.
Suggested change
#10864 used the docblock format. |
||||||||||
| * | ||||||||||
| * @global int $more | ||||||||||
|
Member
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. Would it be okay to use it like this?
Author
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. I'm not sure. Other options: #10864 had
|
||||||||||
| */ | ||||||||||
| global $more; | ||||||||||
| $more = 0; | ||||||||||
|
|
||||||||||
|
|
||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,6 +66,9 @@ public function enqueue_scripts() { | |
| * | ||
| * @since Twenty Fourteen 1.0 | ||
| * | ||
| * @global int $content_width Content width. | ||
| * @global int $more | ||
|
Author
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
Member
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. Also here |
||
| * | ||
| * @param array $args An array of standard parameters for widgets in this theme. | ||
| * @param array $instance An array of settings for this widget instance. | ||
| */ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,7 +33,7 @@ function twentynineteen_switch_theme() { | |
| * | ||
| * @since Twenty Nineteen 1.0.0 | ||
| * | ||
| * @global string $wp_version WordPress version. | ||
| * @global string $wp_version The WordPress version string. | ||
|
Author
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. I had originally added new tags to match "WordPress version" in the |
||
| */ | ||
| function twentynineteen_upgrade_notice() { | ||
| printf( | ||
|
|
@@ -51,7 +51,7 @@ function twentynineteen_upgrade_notice() { | |
| * | ||
| * @since Twenty Nineteen 1.0.0 | ||
| * | ||
| * @global string $wp_version WordPress version. | ||
| * @global string $wp_version The WordPress version string. | ||
| */ | ||
| function twentynineteen_customize() { | ||
| wp_die( | ||
|
|
@@ -73,7 +73,7 @@ function twentynineteen_customize() { | |
| * | ||
| * @since Twenty Nineteen 1.0.0 | ||
| * | ||
| * @global string $wp_version WordPress version. | ||
| * @global string $wp_version The WordPress version string. | ||
| */ | ||
| function twentynineteen_preview() { | ||
| if ( isset( $_GET['preview'] ) ) { | ||
|
|
||
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.
noruzzaman suggested this description in #10864: