Changeset 10124 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/email/class-base.php
- Timestamp:
- 08/06/2020 08:31:07 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/email/class-base.php
r10121 r10124 31 31 public function __construct( $plugin, $users, $args = array() ) { 32 32 $this->plugin = Plugin_Directory::get_plugin_post( $plugin ); 33 34 // Don't cast an object to an array, but rather an array of object. 35 if ( is_object( $users ) ) { 36 $users = [ $users ]; 37 } 33 38 34 39 foreach ( (array) $users as $user ) { … … 109 114 110 115 // Blocked users don't need emails. 111 if ( ! empty( $this->user->caps[ 'bbp_blocked'] ) ) {116 if ( ! empty( $this->user->caps[ 'bbp_blocked'] ) ) { 112 117 return false; 113 118 }
Note: See TracChangeset
for help on using the changeset viewer.