diff --git a/includes/plugins/co-authors-plus/class-guest-contributor-role.php b/includes/plugins/co-authors-plus/class-guest-contributor-role.php index 4288bf3685..5dd33ca699 100644 --- a/includes/plugins/co-authors-plus/class-guest-contributor-role.php +++ b/includes/plugins/co-authors-plus/class-guest-contributor-role.php @@ -246,6 +246,9 @@ public static function generate_username( $display_name ) { */ public static function admin_footer() { global $pagenow; + if ( ! in_array( $pagenow, [ 'user-edit.php','user-new.php' ] ) ) { + return; + } \wp_enqueue_script( 'newspack-co-authors-plus', Newspack::plugin_url() . '/dist/other-scripts/co-authors-plus.js',