|
43 | 43 | * @uses set_post_thumbnail_size() To set a custom post thumbnail size. |
44 | 44 | * |
45 | 45 | * @since Twenty Twelve 1.0 |
| 46 | + * |
| 47 | + * @global string $wp_version The WordPress version string. |
46 | 48 | */ |
47 | 49 | function twentytwelve_setup() { |
48 | 50 | /* |
@@ -181,6 +183,8 @@ function twentytwelve_get_font_url() { |
181 | 183 | * Enqueues scripts and styles for front end. |
182 | 184 | * |
183 | 185 | * @since Twenty Twelve 1.0 |
| 186 | + * |
| 187 | + * @global WP_Styles $wp_styles The WP_Styles object for printing styles. |
184 | 188 | */ |
185 | 189 | function twentytwelve_scripts_styles() { |
186 | 190 | global $wp_styles; |
@@ -242,6 +246,8 @@ function twentytwelve_block_editor_styles() { |
242 | 246 | * @since Twenty Twelve 2.2 |
243 | 247 | * @deprecated Twenty Twelve 3.9 Disabled filter because, by default, fonts are self-hosted. |
244 | 248 | * |
| 249 | + * @global string $wp_version The WordPress version string. |
| 250 | + * |
245 | 251 | * @param array $urls URLs to print for resource hints. |
246 | 252 | * @param string $relation_type The relation type the URLs are printed. |
247 | 253 | * @return array URLs to print for resource hints. |
@@ -299,6 +305,9 @@ function twentytwelve_mce_css( $mce_css ) { |
299 | 305 | * |
300 | 306 | * @since Twenty Twelve 1.0 |
301 | 307 | * |
| 308 | + * @global int $paged Page number of a list of posts. |
| 309 | + * @global int $page Page number of a single post. |
| 310 | + * |
302 | 311 | * @param string $title Default title text for current view. |
303 | 312 | * @param string $sep Optional separator. |
304 | 313 | * @return string Filtered title. |
@@ -411,6 +420,8 @@ function wp_get_list_item_separator() { |
411 | 420 | * Displays navigation to next/previous pages when applicable. |
412 | 421 | * |
413 | 422 | * @since Twenty Twelve 1.0 |
| 423 | + * |
| 424 | + * @global WP_Query $wp_query WordPress Query object. |
414 | 425 | */ |
415 | 426 | function twentytwelve_content_nav( $html_id ) { |
416 | 427 | global $wp_query; |
@@ -451,7 +462,12 @@ function twentytwelve_content_nav( $html_id ) { |
451 | 462 | * |
452 | 463 | * @since Twenty Twelve 1.0 |
453 | 464 | * |
454 | | - * @global WP_Post $post Global post object. |
| 465 | + * @global WP_Comment $comment Global comment object. |
| 466 | + * @global WP_Post $post Global post object. |
| 467 | + * |
| 468 | + * @param WP_Comment $comment The comment object. |
| 469 | + * @param array $args An array of comment arguments. @see get_comment_reply_link() |
| 470 | + * @param int $depth The depth of the comment. |
455 | 471 | */ |
456 | 472 | function twentytwelve_comment( $comment, $args, $depth ) { |
457 | 473 | $GLOBALS['comment'] = $comment; |
@@ -644,6 +660,8 @@ function twentytwelve_body_class( $classes ) { |
644 | 660 | * templates, and when there are no active widgets in the sidebar. |
645 | 661 | * |
646 | 662 | * @since Twenty Twelve 1.0 |
| 663 | + * |
| 664 | + * @global int $content_width Content width. |
647 | 665 | */ |
648 | 666 | function twentytwelve_content_width() { |
649 | 667 | if ( is_page_template( 'page-templates/full-width.php' ) || is_attachment() || ! is_active_sidebar( 'sidebar-1' ) ) { |
|
0 commit comments