From 0ea90a9174bf2527c8552ec9f1d67e775b1057d3 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 20 Oct 2015 18:14:24 +0000 Subject: [PATCH] Docs: Update the hook doc for the `pre_get_document_title` filter to explain ''what'' value is filterable rather than ''why'' the value is filterable :-) The hook was introduced in [35294]. See #31078. See #32246. Built from https://develop.svn.wordpress.org/trunk@35298 git-svn-id: http://core.svn.wordpress.org/trunk@35264 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 5 ++++- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 0233f4093f..5a22c0a680 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -793,7 +793,10 @@ function has_site_icon( $blog_id = 0 ) { function wp_get_document_title() { /** - * Allows to short-circuit the title generation. + * Filter the document title before it is generated. + * + * Passing a non-empty value will short-circuit wp_get_document_title(), + * returning that value instead. * * @since 4.4.0 * diff --git a/wp-includes/version.php b/wp-includes/version.php index 030d8f72fd..261b352d36 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-35297'; +$wp_version = '4.4-alpha-35298'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.