$wpdb->base_prefix not get parent site prefix in multisite

$wpdb->base_prefix gets the original prefix (ie, the ‘root’ site in a Multisite installation). It was added in Version 3.0.0, right when Multisite became a part of WordPress core. $wpdb->prefix will get the prefix for the current site in a Multisite installation. Per the documentation for the wpdb class: $prefix The assigned WordPress table prefix for … Read more

Which asset URLs are acceptable in a “vanilla” MU install?

Short Answer example.com/bob/files/picture.jpg is the preferred, canonical URL for images in a WordPress Multisite installation. The two URLs with blogs.dir in the URL are essentially identical, and both leverage the filesystem structure. The path with ‘bob’ exists because you did a sub-directory install, not a subdomain install. Other paths would exist based on your other … Read more

Multisite on Windows with wildcard subdomains

There is a plugin for that: WP XAMPP Multisite Subdomains. Unfortunately, there is no English description available. I’ll try that here. The following guide will set up a multi-site under mu.wp with subdomains. 1. Basic Installation Start with a fresh installation of WordPress and XAMPP. Create a network for subdomains. Do not create any sub … Read more

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