mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 23:58:03 +00:00
Use void instead of null where appropriate when pipe-delimiting @return types. If a @return only contains void, remove it.
See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32568 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
* @param string $requested_url Optional. The URL that was requested, used to
|
||||
* figure if redirect is needed.
|
||||
* @param bool $do_redirect Optional. Redirect to the new URL.
|
||||
* @return null|string Null, if redirect not needed, or the string of the URL
|
||||
* @return string|void The string of the URL, if redirect needed.
|
||||
*/
|
||||
function redirect_canonical( $requested_url = null, $do_redirect = true ) {
|
||||
global $wp_rewrite, $is_IIS, $wp_query, $wpdb;
|
||||
|
||||
Reference in New Issue
Block a user