mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin.
See #47632. git-svn-id: https://develop.svn.wordpress.org/trunk@45583 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -82,11 +82,13 @@ function allow_subdirectory_install() {
|
||||
* @return string Base domain.
|
||||
*/
|
||||
function get_clean_basedomain() {
|
||||
if ( $existing_domain = network_domain_check() ) {
|
||||
$existing_domain = network_domain_check();
|
||||
if ( $existing_domain ) {
|
||||
return $existing_domain;
|
||||
}
|
||||
$domain = preg_replace( '|https?://|', '', get_option( 'siteurl' ) );
|
||||
if ( $slash = strpos( $domain, '/' ) ) {
|
||||
$slash = strpos( $domain, '/' );
|
||||
if ( $slash ) {
|
||||
$domain = substr( $domain, 0, $slash );
|
||||
}
|
||||
return $domain;
|
||||
@@ -185,7 +187,8 @@ function network_step1( $errors = false ) {
|
||||
$subdomain_install = true;
|
||||
} else {
|
||||
$subdomain_install = false;
|
||||
if ( $got_mod_rewrite = got_mod_rewrite() ) { // dangerous assumptions
|
||||
$got_mod_rewrite = got_mod_rewrite();
|
||||
if ( $got_mod_rewrite ) { // dangerous assumptions
|
||||
echo '<div class="updated inline"><p><strong>' . __( 'Note:' ) . '</strong> ';
|
||||
/* translators: %s: mod_rewrite */
|
||||
printf(
|
||||
|
||||
Reference in New Issue
Block a user