Multisite stuck at 1MB for max file size
There is a network admin settings page with a Max upload file size field, make sure this is also set correctly.
There is a network admin settings page with a Max upload file size field, make sure this is also set correctly.
I haven’t tested this, but if you would need to find such a solution, I would probably try to do it in the following way by adding a script into the if ( SOME_CHECK_IF_STEP-1_WAS_PASSED ) condition you’ve described above, that would: check the DB for the {$wpdb->prefix}sitemeta table; if it does not exist -> return … Read more
try to read this useful article: http://digwp.com/2009/12/redirect-mobile-users-to-mobile-theme/
There are two types of multisite compatibility: Passive compatibility: doing nothing multisite specific, just works without breaking anything. Active compatibility: changing or extending multisite specific behavior. I guess you are out for 1. See my slides from WordCamp Prague 2015 for the second part. Plugins that do not say anything about multisite should not be … Read more
The Proper Network Activation meta-plugin was written precisely for cases like this.
This is a much safer query to use and will remove related entries from the postmeta and term_relationship, unlike deathlocks query in his answer. Change the {id} to the id of each blog posts table. You can combine this query to run all the post tables at once, but try this on one table first. … Read more
Easy one. <?php /* Plugin Name: Sort My-Sites Description: Sorts the My Sites listing on both the page and in the 3.3 admin bar dropdown Author: Otto */ add_filter(‘get_blogs_of_user’,’sort_my_sites’); function sort_my_sites($blogs) { $f = create_function(‘$a,$b’,’return strcasecmp($a->blogname,$b->blogname);’); uasort($blogs, $f); return $blogs; } Edit: If you want a PHP 7 version: add_filter(‘get_blogs_of_user’, function( $blogs ) { uasort( … Read more
You can set the permalink structure by calling on the set_permalink_structure() method of the global $wp_rewrite object. add_action( ‘init’, function() { global $wp_rewrite; $wp_rewrite->set_permalink_structure( ‘/%year%/%monthnum%/%postname%/’ ); } ); Here’s a PHP < 5.3 version of the code in case you’re getting errors. function reset_permalinks() { global $wp_rewrite; $wp_rewrite->set_permalink_structure( ‘/%year%/%monthnum%/%postname%/’ ); } add_action( ‘init’, ‘reset_permalinks’ );
get_option() returns an option for the current blog. In single site installation, the current blog is the only blog. So get get_option() returns the option for it. get_site_option() is used to retrieve an option network-wide. It means that you can get the same option from any site of the network. When this function is used … Read more
Why not just use get_option(‘upload_path’) after your switch_to_blog( $blog_ID );? Does that do it?