From 7d9ed19fa7df552077cb79e3a3fa62acbc6a2ac1 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Fri, 27 Feb 2015 11:14:34 +0000 Subject: [PATCH] Press This: Use boolean value instead of __return_true(). Add missing hook docs. see #31373. git-svn-id: https://develop.svn.wordpress.org/trunk@31571 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-press-this.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wp-admin/includes/class-wp-press-this.php b/src/wp-admin/includes/class-wp-press-this.php index 759e73344f..2da5d55dc7 100644 --- a/src/wp-admin/includes/class-wp-press-this.php +++ b/src/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 {