WordPress.org

Make WordPress Core

Ticket #3426: 3426.diff

File 3426.diff, 568 bytes (added by Denis-de-Bernardy, 5 years ago)
  • wp-includes/rewrite.php

     
    16531653                $rules = "<IfModule mod_rewrite.c>\n"; 
    16541654                $rules .= "RewriteEngine On\n"; 
    16551655                $rules .= "RewriteBase $home_root\n"; 
     1656                $rules .= "\nRewriteRule \.(gif|png|jpe?g|css|js|ico)$ - [L]\n\n"; 
    16561657 
    16571658                //add in the rules that don't redirect to WP's index.php (and thus shouldn't be handled by WP at all) 
    16581659                foreach ( (array) $this->non_wp_rules as $match => $query) {