Make WordPress Core

Ticket #29107: 29107.patch

File 29107.patch, 1.0 KB (added by SergeyBiryukov, 12 years ago)
  • src/wp-admin/includes/schema.php

     
    397397        'comment_moderation' => 0,
    398398        'moderation_notify' => 1,
    399399        'permalink_structure' => '',
     400        'rewrite_rules' => '',
    400401        'gzipcompression' => 0,
    401402        'hack_file' => 0,
    402403        'blog_charset' => 'UTF-8',
  • src/wp-includes/rewrite.php

     
    20432043         * @param bool $hard Whether to update .htaccess (hard flush) or just update rewrite_rules option (soft flush). Default is true (hard).
    20442044         */
    20452045        public function flush_rules($hard = true) {
    2046                 delete_option('rewrite_rules');
     2046                update_option( 'rewrite_rules', '' );
    20472047                $this->wp_rewrite_rules();
    20482048                /**
    20492049                 * Filter whether a "hard" rewrite rule flush should be performed when requested.