WordPress.org

Make WordPress Core

Changeset 4577


Ignore:
Timestamp:
12/01/2006 12:07:01 PM (11 years ago)
Author:
ryan
Message:

Return status from save_mod_rewrite_rules(). Props Viper007Bond. fixes #3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r4571 r4577  
    12561256
    12571257    if (!$wp_rewrite->using_mod_rewrite_permalinks() )
    1258         return;
     1258        return false;
    12591259
    12601260    if (!((!file_exists( $home_path.'.htaccess' ) && is_writable( $home_path ) ) || is_writable( $home_path.'.htaccess' ) ) )
    1261         return;
     1261        return false;
    12621262
    12631263    if (! got_mod_rewrite() )
    1264         return;
     1264        return false;
    12651265
    12661266    $rules = explode( "\n", $wp_rewrite->mod_rewrite_rules() );
    1267     insert_with_markers( $home_path.'.htaccess', 'WordPress', $rules );
     1267    return insert_with_markers( $home_path.'.htaccess', 'WordPress', $rules );
    12681268}
    12691269
Note: See TracChangeset for help on using the changeset viewer.