From 1997429498f926614a4b96f6802e7dd132e492ac Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sun, 8 Mar 2015 23:08:48 +0000 Subject: [PATCH] Empty `return` statements are unnecessary at the end of functions. See #30799. git-svn-id: https://develop.svn.wordpress.org/trunk@31679 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/deprecated.php | 4 ---- src/wp-admin/includes/ms-deprecated.php | 1 - src/wp-includes/cache.php | 1 - src/wp-includes/date.php | 2 -- src/wp-includes/deprecated.php | 1 - 5 files changed, 9 deletions(-) diff --git a/src/wp-admin/includes/deprecated.php b/src/wp-admin/includes/deprecated.php index 8ae6048edc..d1eebac0e8 100644 --- a/src/wp-admin/includes/deprecated.php +++ b/src/wp-admin/includes/deprecated.php @@ -33,7 +33,6 @@ function tinymce_include() { */ function documentation_link() { _deprecated_function( __FUNCTION__, '2.5' ); - return; } /** @@ -204,7 +203,6 @@ function remove_option_update_handler( $option_group, $option_name, $sanitize_ca **/ function codepress_get_lang( $filename ) { _deprecated_function( __FUNCTION__, '3.0' ); - return; } /** @@ -215,7 +213,6 @@ function codepress_get_lang( $filename ) { **/ function codepress_footer_js() { _deprecated_function( __FUNCTION__, '3.0' ); - return; } /** @@ -226,7 +223,6 @@ function codepress_footer_js() { **/ function use_codepress() { _deprecated_function( __FUNCTION__, '3.0' ); - return; } /** diff --git a/src/wp-admin/includes/ms-deprecated.php b/src/wp-admin/includes/ms-deprecated.php index 44e2a82b20..6a443dee61 100644 --- a/src/wp-admin/includes/ms-deprecated.php +++ b/src/wp-admin/includes/ms-deprecated.php @@ -53,7 +53,6 @@ function activate_sitewide_plugin() { */ function deactivate_sitewide_plugin( $plugin = false ) { _deprecated_function(__FUNCTION__, '3.0', 'deactivate_plugin()' ); - return; } /** diff --git a/src/wp-includes/cache.php b/src/wp-includes/cache.php index 77be09d090..f5ad2cc87c 100644 --- a/src/wp-includes/cache.php +++ b/src/wp-includes/cache.php @@ -217,7 +217,6 @@ function wp_cache_add_global_groups( $groups ) { */ function wp_cache_add_non_persistent_groups( $groups ) { // Default cache doesn't persist so nothing to do here. - return; } /** diff --git a/src/wp-includes/date.php b/src/wp-includes/date.php index 84ec325a0e..f37d6ccc86 100644 --- a/src/wp-includes/date.php +++ b/src/wp-includes/date.php @@ -182,8 +182,6 @@ class WP_Date_Query { $this->compare = $this->get_compare( $date_query ); $this->queries = $this->sanitize_query( $date_query ); - - return; } /** diff --git a/src/wp-includes/deprecated.php b/src/wp-includes/deprecated.php index 6d71f646b2..77dd70b462 100644 --- a/src/wp-includes/deprecated.php +++ b/src/wp-includes/deprecated.php @@ -2632,7 +2632,6 @@ function the_editor($content, $id = 'content', $prev_id = 'title', $media_button _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' ); wp_editor( $content, $id, array( 'media_buttons' => $media_buttons ) ); - return; } /**