From 5e47a1f6337fecbf251139b09fc860eb12687e9d Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Fri, 27 Feb 2015 11:15:25 +0000 Subject: [PATCH] Press This: Use boolean value instead of __return_true(). Add missing hook docs. see #31373. Built from https://develop.svn.wordpress.org/trunk@31571 git-svn-id: http://core.svn.wordpress.org/trunk@31552 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-press-this.php | 10 +++++----- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/class-wp-press-this.php b/wp-admin/includes/class-wp-press-this.php index 759e73344f..2da5d55dc7 100644 --- a/wp-admin/includes/class-wp-press-this.php +++ b/wp-admin/includes/class-wp-press-this.php @@ -465,7 +465,7 @@ class WP_Press_This { * * @param bool $enable Whether to enable media discovery. */ - if ( apply_filters( 'enable_press_this_media_discovery', __return_true() ) ) { + if ( apply_filters( 'enable_press_this_media_discovery', true ) ) { /* * If no _meta (a new thing) was passed via $_POST, fetch data from source as fallback, * makes PT fully backward compatible @@ -886,10 +886,10 @@ class WP_Press_This { diff --git a/wp-includes/version.php b/wp-includes/version.php index bfdeefac7f..25fa588429 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31570'; +$wp_version = '4.2-alpha-31571'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.