WordPress.org

Make WordPress Core

Ticket #3409: admin-functions.patch

File admin-functions.patch, 805 bytes (added by Viper007Bond, 7 years ago)
  • wp-admin/admin-functions.php

     
    12521252        $home_path = get_home_path(); 
    12531253 
    12541254        if (!$wp_rewrite->using_mod_rewrite_permalinks() ) 
    1255                 return; 
     1255                return false; 
    12561256 
    12571257        if (!((!file_exists( $home_path.'.htaccess' ) && is_writable( $home_path ) ) || is_writable( $home_path.'.htaccess' ) ) ) 
    1258                 return; 
     1258                return false; 
    12591259 
    12601260        if (! got_mod_rewrite() ) 
    1261                 return; 
     1261                return false; 
    12621262 
    12631263        $rules = explode( "\n", $wp_rewrite->mod_rewrite_rules() ); 
    1264         insert_with_markers( $home_path.'.htaccess', 'WordPress', $rules ); 
     1264        return insert_with_markers( $home_path.'.htaccess', 'WordPress', $rules ); 
    12651265} 
    12661266 
    12671267function get_broken_themes() {