mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 11:53:53 +02:00
Update activate_new_site did_action to become Yoda condition
This commit is contained in:
parent
2a2050d7fb
commit
772e1365a5
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ class PluginName {
|
|||
* @param int $blog_id ID of the new blog.
|
||||
*/
|
||||
public function activate_new_site( $blog_id ) {
|
||||
if ( did_action( 'wpmu_new_blog' ) !== 1 )
|
||||
if ( 1 !== did_action( 'wpmu_new_blog' ) )
|
||||
return;
|
||||
|
||||
switch_to_blog( $blog_id );
|
||||
|
|
Loading…
Reference in a new issue