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
This commit is contained in:
Dominik Schilling 2015-02-27 11:15:25 +00:00
parent 789cd2e824
commit 5e47a1f633
2 changed files with 6 additions and 6 deletions

View File

@ -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 {
</form>
<?php
do_action( 'admin_footer', '' );
do_action( 'admin_print_footer_scripts' );
/** This action is documented in wp-admin/admin-footer.php */
do_action( 'admin_footer' );
/** This action is documented in wp-admin/admin-footer.php */
do_action( 'admin_print_footer_scripts' );
?>
</body>
</html>

View File

@ -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.