extract_from_markers example

$writable = false;
    }
} elseif ( $is_nginx ) {
    $writable = false;
} else {
    if ( ( ! file_exists( $home_path . '.htaccess' )
        && is_writable( $home_path ) ) || is_writable( $home_path . '.htaccess' )
    ) {
        $writable = true;
    } else {
        $writable       = false;
        $existing_rules = array_filter( extract_from_markers( $home_path . '.htaccess', 'WordPress' ) );
        $new_rules      = array_filter( explode( "\n", $wp_rewrite->mod_rewrite_rules() ) );

        $htaccess_update_required = ( $new_rules !== $existing_rules );
    }
}

$using_index_permalinks = $wp_rewrite->using_index_permalinks();

if ( $structure_updated ) {
    $message = __( 'Permalink structure updated.' );

    
Home | Imprint | This part of the site doesn't use cookies.