Has is_archived() for sites in a multisite changed with WP 4.7?

Can you try out the following code somewhere and post the output? $mySites = wp_get_sites($args); foreach ($mySites as $blog){ print_r(get_blog_status($blog[‘blog_id’], ‘archived’)); } If this works, I suspect the code behind is_archived() used to understand blog-objects, but the function is supposed to recieve only the blog ID, not the whole object. Your code should be the … Read more

Is the root index.php file part of the Core?

Yes, index.php is part of core and is liable to be overwritten. In fact, if you look at the process to manually update WordPress, step 7 is: Upload all new loose files from the root directory of the new version to your existing WordPress root directory That may include index.php. You can put custom PHP … Read more

What happens if I don’t update my plugins?

I personally disable all updates; themes/plugins/core, too many times I was burned with erros in the most inconvenient times possible. Now I do manual updated for each site after I checked in a development environment. after im sure that everything works and I fixed every bug that happened I update the live site. Now I … Read more

Updated WordPress, now getting errors on site

I suspect this is already resolved in the plugin, but I added a check for the new function in wp-content/plugins/fusion-builder/shortcodes/fusion-image.php:285. if ( ! empty( $image_id ) && function_exists( ‘wp_image_add_srcset_and_sizes’ ) ) { $content = wp_image_add_srcset_and_sizes( $content, wp_get_attachment_metadata( (int) $image_id ), $image_id ); } elseif ( function_exists( ‘wp_make_content_images_responsive’ ) ) { $content = wp_make_content_images_responsive( $content ); … Read more

Email user on WordPress upgrade

I forked the above plugin you mentioned as WP Updates Notifier Maybe you want to look at that instead? If you want to include it in your theme all you do is copy the plugin file and place in your theme functions file instead. If you need further help modifying this plugin leave a comment … Read more

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