Make different sites on multisite reference same script

Hi this is what I did to solve it: add_filter( ‘script_loader_src’, ‘change_src’ ); add_filter( ‘style_loader_src’, ‘change_src’ ); function change_src( $url ) { if( is_admin() ) return $url; // Don’t filter admin area return str_replace( site_url(), ‘www.mysite.com/mydefaultnetworksite’, $url ); } I’m using both those filters because I want it to apply to script and stylesheet urls. … Read more

Aliasing a subdomain on a wordpress network

So far as we know, we can control the subdomain by the WordPress subdomain network and apache rewrite rule(nginx works too.). The subdomain is a rule, so you can’t set it directyly in .htaccess by using your http://www.supercooldomain.com, but you can set another apacahe virutal host use your cooldomain. There is another wordpress plugin may … Read more

Multisite and plugins options

Back when Multisite first appeared, there were multiple blogs in a single site. The *_site_option functions are from that older Multisite era. Now in current Multisite you have multiple sites in a network, so the meaning of “site” has made a confusing change. In the context of these functions, think of them as network functions … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)