Ticket #12002: 12002.5.diff
File 12002.5.diff, 1.3 KB (added by , 9 years ago) |
---|
-
src/wp-admin/options-permalink.php
50 50 51 51 $home_path = get_home_path(); 52 52 $iis7_permalinks = iis7_supports_permalinks(); 53 $permalink_structure = get_option( 'permalink_structure' ); 53 54 54 55 $prefix = $blog_prefix = ''; 55 56 if ( ! got_url_rewrite() ) 56 57 $prefix = '/index.php'; 57 if ( is_multisite() && !is_subdomain_install() && is_main_site() ) 58 59 /** 60 * In a subdirectory configuration of multisite, the `/blog` prefix is used by 61 * default on the main site to avoid collisions with other sites created on that 62 * network. If the `permalink_structure` option has been changed to remove this 63 * base prefix, WordPress core can no longer account for the possible collision. 64 */ 65 if ( is_multisite() && ! is_subdomain_install() && is_main_site() && 0 === strpos( $permalink_structure, '/blog/' ) ) { 58 66 $blog_prefix = '/blog'; 67 } 59 68 60 69 if ( isset($_POST['permalink_structure']) || isset($_POST['category_base']) ) { 61 70 check_admin_referer('update-permalink'); … … 94 103 exit; 95 104 } 96 105 97 $permalink_structure = get_option( 'permalink_structure' );98 106 $category_base = get_option( 'category_base' ); 99 107 $tag_base = get_option( 'tag_base' ); 100 108 $update_required = false;