mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
Bundled Themes: Improve various globals documentation, as per docblock standards.
Props viralsampat, audrasjb, costdev. See #56792, #57069. git-svn-id: https://develop.svn.wordpress.org/trunk@55472 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4d3627fd2e
commit
a7ec28812c
@ -721,6 +721,8 @@ if ( ! class_exists( 'Featured_Content' ) && 'plugins.php' !== $GLOBALS['pagenow
|
||||
*
|
||||
* Enables installing Twenty Fourteen in WordPress versions before 4.0.0 when the
|
||||
* `is_customize_preview` function was introduced.
|
||||
*
|
||||
* @global WP_Customize_Manager $wp_customize Customizer object.
|
||||
*/
|
||||
if ( ! function_exists( 'is_customize_preview' ) ) :
|
||||
function is_customize_preview() {
|
||||
|
@ -38,6 +38,8 @@ get_header(); ?>
|
||||
*
|
||||
* @since Twenty Seventeen 1.0
|
||||
*
|
||||
* @global int|string $twentyseventeencounter Front page section counter.
|
||||
*
|
||||
* @param int $num_sections Number of front page sections.
|
||||
*/
|
||||
$num_sections = apply_filters( 'twentyseventeen_front_page_sections', 4 );
|
||||
|
@ -383,6 +383,9 @@ add_action( 'enqueue_block_editor_assets', 'twentythirteen_block_editor_styles'
|
||||
*
|
||||
* @since Twenty Thirteen 1.0
|
||||
*
|
||||
* @global int $paged WordPress archive pagination page count.
|
||||
* @global int $page WordPress paginated post page count.
|
||||
*
|
||||
* @param string $title Default title text for current view.
|
||||
* @param string $sep Optional separator.
|
||||
* @return string The filtered title.
|
||||
@ -751,6 +754,8 @@ add_filter( 'body_class', 'twentythirteen_body_class' );
|
||||
* Adjust content_width value for video post formats and attachment templates.
|
||||
*
|
||||
* @since Twenty Thirteen 1.0
|
||||
*
|
||||
* @global int $content_width Content width.
|
||||
*/
|
||||
function twentythirteen_content_width() {
|
||||
global $content_width;
|
||||
|
@ -25,6 +25,9 @@ get_header();
|
||||
$archive_subtitle = '';
|
||||
|
||||
if ( is_search() ) {
|
||||
/**
|
||||
* @global WP_Query $wp_query WordPress Query object.
|
||||
*/
|
||||
global $wp_query;
|
||||
|
||||
$archive_title = sprintf(
|
||||
|
Loading…
x
Reference in New Issue
Block a user