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
This commit is contained in:
Dominik Schilling (ocean90) 2015-02-27 11:14:34 +00:00
parent 61dfcc3b4c
commit 7d9ed19fa7
1 changed files with 5 additions and 5 deletions

View File

@ -465,7 +465,7 @@ class WP_Press_This {
* *
* @param bool $enable Whether to enable media discovery. * @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, * If no _meta (a new thing) was passed via $_POST, fetch data from source as fallback,
* makes PT fully backward compatible * makes PT fully backward compatible
@ -886,10 +886,10 @@ class WP_Press_This {
</form> </form>
<?php <?php
/** This action is documented in wp-admin/admin-footer.php */
do_action( 'admin_footer', '' ); do_action( 'admin_footer' );
do_action( 'admin_print_footer_scripts' ); /** This action is documented in wp-admin/admin-footer.php */
do_action( 'admin_print_footer_scripts' );
?> ?>
</body> </body>
</html> </html>