Skip to content

Commit 909d64c

Browse files
Coding Standards: Explicitly return null in functions saving URL rewrite rules.
This matches the documented `@return` type in `save_mod_rewrite_rules()` and `iis7_save_url_rewrite_rules()`. Follow-up to [12726], [17328], [43362]. Props justlevine. See #63268. git-svn-id: https://develop.svn.wordpress.org/trunk@60353 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6ea383f commit 909d64c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-admin/includes/misc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ function save_mod_rewrite_rules() {
263263
global $wp_rewrite;
264264

265265
if ( is_multisite() ) {
266-
return;
266+
return null;
267267
}
268268

269269
// Ensure get_home_path() is declared.
@@ -303,7 +303,7 @@ function iis7_save_url_rewrite_rules() {
303303
global $wp_rewrite;
304304

305305
if ( is_multisite() ) {
306-
return;
306+
return null;
307307
}
308308

309309
// Ensure get_home_path() is declared.

0 commit comments

Comments
 (0)