[wp-trac] [WordPress Trac] #12002: Multisite should not lock the root blog into using a /blog prefix

WordPress Trac noreply at wordpress.org
Thu Jan 8 16:52:27 UTC 2015


#12002: Multisite should not lock the root blog into using a /blog prefix
----------------------------+-----------------------------
 Reporter:  wpmuguru        |       Owner:
     Type:  enhancement     |      Status:  reopened
 Priority:  normal          |   Milestone:  Future Release
Component:  Bootstrap/Load  |     Version:  3.0
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  multisite
----------------------------+-----------------------------
Changes (by karincom):

 * keywords:  needs-patch =>


Comment:

 Replying to [comment:33 MeharBhagat]:
 > Works for me on WP version 4.1
 >
 > wp-admin -> options-permalink.php ->
 >
 > {{{
 > if ( is_multisite() && !is_subdomain_install() && is_main_site() )
 >       $blog_prefix = ''''/blog'''';
 > }}}
 > Change '/blog' to '/AsYouWish'

 Even simpler:

 {{{
 if (empty($blog_prefix)) {$blog_prefix = ''''/blog'''';}
 }}}

 Now, we need a place to entry $blog_prefix parameter:[[BR]]

 a) wp-config.php
 b) Super-Admin Dashboard -> General Settings.
 [[BR]]

 $blog_prefix input interface can be only seen ''if is_multisite() &&
 !is_subdomain_install()''.[[BR]]


 It should work.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/12002#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list