Changeset 9121
- Timestamp:
- 11/03/2014 06:26:26 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-functions.php
r9027 r9121 121 121 122 122 // Set creator ID 123 if ( ! empty( $creator_id )) {123 if ( $creator_id ) { 124 124 $group->creator_id = (int) $creator_id; 125 } else {125 } elseif ( is_user_logged_in() ) { 126 126 $group->creator_id = bp_loggedin_user_id(); 127 } 128 129 if ( ! $group->creator_id ) { 130 return false; 127 131 } 128 132 -
trunk/tests/phpunit/testcases/groups/functions.php
r9118 r9121 16 16 17 17 $this->factory->group->create(); 18 }19 20 public function test_creating_new_group_as_anonymous_user() {21 $g = $this->factory->group->create();22 $this->assertFalse( $g );23 18 } 24 19
Note: See TracChangeset
for help on using the changeset viewer.