Make WordPress Core


Ignore:
Timestamp:
06/29/2014 10:20:26 PM (10 years ago)
Author:
wonderboymusic
Message:

Admin screens should use the WPINC constant

Props wojtek.szkutnik
See #14157.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network.php

    r28712 r28906  
    440440                <rule name="WordPress Rule for Files" stopProcessing="true">
    441441                    <match url="^' . $iis_subdir_match . 'files/(.+)" ignoreCase="false" />
    442                     <action type="Rewrite" url="' . $iis_rewrite_base . 'wp-includes/ms-files.php?file={R:1}" appendQueryString="false" />
     442                    <action type="Rewrite" url="' . $iis_rewrite_base . WPINC . '/ms-files.php?file={R:1}" appendQueryString="false" />
    443443                </rule>';
    444444                }
     
    490490        if ( is_multisite() && get_site_option( 'ms_files_rewriting' ) ) {
    491491            $ms_files_rewriting = "\n# uploaded files\nRewriteRule ^";
    492             $ms_files_rewriting .= $subdir_match . "files/(.+) {$rewrite_base}wp-includes/ms-files.php?file={$subdir_replacement_12} [L]" . "\n";
     492            $ms_files_rewriting .= $subdir_match . "files/(.+) {$rewrite_base}" . WPINC . "/ms-files.php?file={$subdir_replacement_12} [L]" . "\n";
    493493        }
    494494
Note: See TracChangeset for help on using the changeset viewer.