Code Quality: Use of a global Variable instead of a function with a static local variable
|Reported by:||hakre||Owned by:||anonymous|
function force_ssl_admin (wp-includes/functions.php line ~2963ff) only exists to set a static variable inside that function.
instead a global variable can be used.
even the global variable might not be used, because since 2.6 a constant FORCE_SSL_ADMIN does exists.
I suggest to remove the function and replace the places where it is called with either setting a (global) variable or getting it.
Change History (6)
- Milestone 2.9 deleted
- Resolution set to wontfix
- Status changed from new to closed