Changeset 13414
- Timestamp:
- 02/10/2023 03:12:09 AM (22 months ago)
- Location:
- trunk
- Files:
-
- 56 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/unit-tests.yml
r13406 r13414 13 13 fail-fast: false 14 14 matrix: 15 php: ['7.4', '8.0', '8.1' ]15 php: ['7.4', '8.0', '8.1', '8.2'] 16 16 wp_version: ['master'] 17 17 include: -
trunk/src/bp-activity/classes/class-bp-activity-activity.php
r13396 r13414 18 18 * @since 1.0.0 19 19 */ 20 #[AllowDynamicProperties] 20 21 class BP_Activity_Activity { 21 22 … … 60 61 * @var string 61 62 */ 62 var $primary_link ;63 var $primary_link = ''; 63 64 64 65 /** … … 68 69 * @var string 69 70 */ 70 var $component ;71 var $component = ''; 71 72 72 73 /** … … 76 77 * @var string 77 78 */ 78 var $type ;79 var $type = ''; 79 80 80 81 /** … … 84 85 * @var string 85 86 */ 86 var $action ;87 var $action = ''; 87 88 88 89 /** … … 92 93 * @var string 93 94 */ 94 var $content ;95 var $content = ''; 95 96 96 97 /** … … 100 101 * @var string 101 102 */ 102 var $date_recorded ;103 var $date_recorded = ''; 103 104 104 105 /** -
trunk/src/bp-activity/classes/class-bp-activity-component.php
r13370 r13414 18 18 * @since 1.5.0 19 19 */ 20 #[AllowDynamicProperties] 20 21 class BP_Activity_Component extends BP_Component { 21 22 -
trunk/src/bp-blogs/classes/class-bp-blogs-blog.php
r13405 r13414 19 19 * @since 1.0.0 20 20 */ 21 #[AllowDynamicProperties] 21 22 class BP_Blogs_Blog { 22 23 -
trunk/src/bp-blogs/classes/class-bp-blogs-component.php
r13405 r13414 17 17 /** 18 18 * Creates our Blogs component. 19 * 20 * @since 1.5.0 19 21 */ 22 #[AllowDynamicProperties] 20 23 class BP_Blogs_Component extends BP_Component { 21 24 -
trunk/src/bp-core/classes/class-bp-admin.php
r13411 r13414 20 20 * @since 1.6.0 21 21 */ 22 #[AllowDynamicProperties] 22 23 class BP_Admin { 23 24 -
trunk/src/bp-core/classes/class-bp-attachment-avatar.php
r13315 r13414 18 18 * @since 2.3.0 19 19 */ 20 #[AllowDynamicProperties] 20 21 class BP_Attachment_Avatar extends BP_Attachment { 21 22 -
trunk/src/bp-core/classes/class-bp-attachment-cover-image.php
r13315 r13414 18 18 * @since 2.4.0 19 19 */ 20 #[AllowDynamicProperties] 20 21 class BP_Attachment_Cover_Image extends BP_Attachment { 21 22 /** -
trunk/src/bp-core/classes/class-bp-core.php
r13336 r13414 18 18 * @since 1.5.0 19 19 */ 20 #[AllowDynamicProperties] 20 21 class BP_Core extends BP_Component { 21 22 -
trunk/src/bp-core/classes/class-bp-media-extractor.php
r12602 r13414 643 643 644 644 foreach ( $links['links'] as $link ) { 645 $path = untrailingslashit( parse_url( $link['url'], PHP_URL_PATH ));645 $path = parse_url( $link['url'], PHP_URL_PATH ); 646 646 647 647 // Check this URL's file extension matches that of an accepted audio format. 648 if ( ! $path || substr( $path, -4 ) !== $extension ) {648 if ( ! $path || substr( untrailingslashit( $path ), -4 ) !== $extension ) { 649 649 continue; 650 650 } -
trunk/src/bp-friends/classes/class-bp-friends-component.php
r13395 r13414 18 18 * @since 1.5.0 19 19 */ 20 #[AllowDynamicProperties] 20 21 class BP_Friends_Component extends BP_Component { 21 22 -
trunk/src/bp-friends/classes/class-bp-friends-friendship.php
r13395 r13414 16 16 * @since 1.0.0 17 17 */ 18 #[AllowDynamicProperties] 18 19 class BP_Friends_Friendship { 19 20 -
trunk/src/bp-groups/classes/class-bp-groups-component.php
r13399 r13414 16 16 * @since 1.5.0 17 17 */ 18 #[AllowDynamicProperties] 18 19 class BP_Groups_Component extends BP_Component { 19 20 -
trunk/src/bp-groups/classes/class-bp-groups-group.php
r13395 r13414 16 16 * @since 1.6.0 17 17 */ 18 #[AllowDynamicProperties] 18 19 class BP_Groups_Group { 19 20 -
trunk/src/bp-members/classes/class-bp-core-members-template.php
r13184 r13414 162 162 'max' => false, 163 163 'user_id' => false, 164 'search_terms' => null,164 'search_terms' => '', 165 165 'include' => false, 166 166 'populate_extras' => true, -
trunk/src/bp-members/classes/class-bp-members-component.php
r13404 r13414 16 16 * @since 1.5.0 17 17 */ 18 #[AllowDynamicProperties] 18 19 class BP_Members_Component extends BP_Component { 19 20 -
trunk/src/bp-members/classes/class-bp-signup.php
r13399 r13414 13 13 * @since 2.0.0 14 14 */ 15 #[AllowDynamicProperties] 15 16 class BP_Signup { 16 17 -
trunk/src/bp-messages/classes/class-bp-messages-box-template.php
r13399 r13414 14 14 * Message Box Template Class 15 15 */ 16 #[AllowDynamicProperties] 16 17 class BP_Messages_Box_Template { 17 18 -
trunk/src/bp-messages/classes/class-bp-messages-component.php
r13274 r13414 18 18 * @since 1.5.0 19 19 */ 20 #[AllowDynamicProperties] 20 21 class BP_Messages_Component extends BP_Component { 21 22 -
trunk/src/bp-messages/classes/class-bp-messages-message.php
r13395 r13414 14 14 * Single message class. 15 15 */ 16 #[AllowDynamicProperties] 16 17 class BP_Messages_Message { 17 18 -
trunk/src/bp-messages/classes/class-bp-messages-notice.php
r13395 r13414 18 18 * @since 1.0.0 19 19 */ 20 #[AllowDynamicProperties] 20 21 class BP_Messages_Notice { 21 22 -
trunk/src/bp-messages/classes/class-bp-messages-notices-admin.php
r13395 r13414 14 14 * BuddyPress Notices Admin class. 15 15 */ 16 #[AllowDynamicProperties] 16 17 class BP_Messages_Notices_Admin { 17 18 -
trunk/src/bp-messages/classes/class-bp-messages-thread.php
r13402 r13414 16 16 * @since 1.0.0 17 17 */ 18 #[AllowDynamicProperties] 18 19 class BP_Messages_Thread { 19 20 -
trunk/src/bp-notifications/classes/class-bp-notifications-component.php
r13336 r13414 15 15 /** 16 16 * Extends the component class to set up the Notifications component. 17 * 18 * @since 1.9.0 17 19 */ 20 #[AllowDynamicProperties] 18 21 class BP_Notifications_Component extends BP_Component { 19 22 -
trunk/src/bp-notifications/classes/class-bp-notifications-notification.php
r13397 r13414 20 20 * @since 1.9.0 21 21 */ 22 #[AllowDynamicProperties] 22 23 class BP_Notifications_Notification { 23 24 -
trunk/src/bp-settings/classes/class-bp-settings-component.php
r13327 r13414 16 16 * @since 1.5.0 17 17 */ 18 #[AllowDynamicProperties] 18 19 class BP_Settings_Component extends BP_Component { 19 20 -
trunk/src/bp-templates/bp-nouveau/includes/activity/loader.php
r13153 r13414 15 15 * @since 3.0.0 16 16 */ 17 #[AllowDynamicProperties] 17 18 class BP_Nouveau_Activity { 18 19 /** -
trunk/src/bp-templates/bp-nouveau/includes/blogs/loader.php
r12670 r13414 15 15 * @since 3.0.0 16 16 */ 17 #[AllowDynamicProperties] 17 18 class BP_Nouveau_Blogs { 18 19 /** -
trunk/src/bp-templates/bp-nouveau/includes/classes/class-bp-buttons-group.php
r13338 r13414 15 15 * @since 3.0.0 16 16 */ 17 #[AllowDynamicProperties] 17 18 class BP_Buttons_Group { 18 19 -
trunk/src/bp-templates/bp-nouveau/includes/friends/loader.php
r12670 r13414 15 15 * @since 3.0.0 16 16 */ 17 #[AllowDynamicProperties] 17 18 class BP_Nouveau_Friends { 18 19 /** -
trunk/src/bp-templates/bp-nouveau/includes/groups/classes.php
r13156 r13414 15 15 * @since 3.0.0 16 16 */ 17 #[AllowDynamicProperties] 17 18 class BP_Nouveau_Group_Invite_Query extends BP_User_Query { 18 19 /** -
trunk/src/bp-templates/bp-nouveau/includes/groups/loader.php
r12670 r13414 15 15 * @since 3.0.0 16 16 */ 17 #[AllowDynamicProperties] 17 18 class BP_Nouveau_Groups { 18 19 /** -
trunk/src/bp-templates/bp-nouveau/includes/members/loader.php
r12921 r13414 15 15 * @since 3.0.0 16 16 */ 17 #[AllowDynamicProperties] 17 18 class BP_Nouveau_Members { 18 19 /** -
trunk/src/bp-templates/bp-nouveau/includes/messages/loader.php
r13036 r13414 15 15 * @since 3.0.0 16 16 */ 17 #[AllowDynamicProperties] 17 18 class BP_Nouveau_Messages { 18 19 /** -
trunk/src/bp-templates/bp-nouveau/includes/notifications/loader.php
r12670 r13414 15 15 * @since 3.0.0 16 16 */ 17 #[AllowDynamicProperties] 17 18 class BP_Nouveau_Notifications { 18 19 /** -
trunk/src/bp-templates/bp-nouveau/includes/xprofile/loader.php
r12082 r13414 15 15 * @since 3.0.0 16 16 */ 17 #[AllowDynamicProperties] 17 18 class BP_Nouveau_xProfile { 18 19 /** -
trunk/src/bp-xprofile/classes/class-bp-xprofile-component.php
r13395 r13414 19 19 * @since 1.5.0 20 20 */ 21 #[AllowDynamicProperties] 21 22 class BP_XProfile_Component extends BP_Component { 22 23 -
trunk/src/bp-xprofile/classes/class-bp-xprofile-field.php
r13399 r13414 16 16 * @since 1.0.0 17 17 */ 18 #[AllowDynamicProperties] 18 19 class BP_XProfile_Field { 19 20 … … 48 49 * @var string 49 50 */ 50 public $type ;51 public $type = ''; 51 52 52 53 /** … … 56 57 * @var string 57 58 */ 58 public $name ;59 public $name = ''; 59 60 60 61 /** … … 64 65 * @var string 65 66 */ 66 public $description ;67 public $description = ''; 67 68 68 69 /** … … 104 105 * @var string 105 106 */ 106 public $order_by ;107 public $order_by = ''; 107 108 108 109 /** -
trunk/src/bp-xprofile/classes/class-bp-xprofile-group.php
r13395 r13414 16 16 * @since 1.0.0 17 17 */ 18 #[AllowDynamicProperties] 18 19 class BP_XProfile_Group { 19 20 -
trunk/src/bp-xprofile/classes/class-bp-xprofile-profiledata.php
r13395 r13414 16 16 * @since 1.6.0 17 17 */ 18 #[AllowDynamicProperties] 18 19 class BP_XProfile_ProfileData { 19 20 -
trunk/tests/phpunit/assets/attachment-extensions.php
r10194 r13414 4 4 * for our unit tests 5 5 */ 6 #[AllowDynamicProperties] 6 7 class BPTest_Attachment_Extension extends BP_Attachment { 7 8 public function __construct( $args = array() ) { -
trunk/tests/phpunit/assets/bp-rest-api-controllers.php
r12607 r13414 15 15 * BP Member Cover Image REST Controller's mock. 16 16 */ 17 #[AllowDynamicProperties] 17 18 class BP_REST_Attachments_Member_Cover_Endpoint extends BP_REST_Mock_Class { 18 19 public function __construct() { … … 29 30 * BP Member Avatar REST Controller's mock. 30 31 */ 32 #[AllowDynamicProperties] 31 33 class BP_REST_Attachments_Member_Avatar_Endpoint extends BP_REST_Mock_Class { 32 34 public function __construct() { … … 43 45 * BP Components REST Controller's mock. 44 46 */ 47 #[AllowDynamicProperties] 45 48 class BP_REST_Components_Endpoint extends BP_REST_Mock_Class { 46 49 public function __construct() { … … 57 60 * BP Members REST Controller's mock. 58 61 */ 62 #[AllowDynamicProperties] 59 63 class BP_REST_Members_Endpoint extends BP_REST_Mock_Class { 60 64 public function __construct() { -
trunk/tests/phpunit/includes/factory.php
r13402 r13414 1 1 <?php 2 #[AllowDynamicProperties] 2 3 class BP_UnitTest_Factory extends WP_UnitTest_Factory { 3 4 public $activity = null; -
trunk/tests/phpunit/testcases/activity/functions.php
r13343 r13414 3 3 * @group activity 4 4 */ 5 #[AllowDynamicProperties] 5 6 class BP_Tests_Activity_Functions extends BP_UnitTestCase { 6 7 -
trunk/tests/phpunit/testcases/activity/functions/bpActivityGetActionsForContext.php
r13314 r13414 4 4 * @group activity 5 5 */ 6 #[AllowDynamicProperties] 6 7 class BP_Tests_Activity_Functions_BpActivityGetActionsForContext extends BP_UnitTestCase { 7 8 public function set_up() { -
trunk/tests/phpunit/testcases/activity/notifications.php
r13314 r13414 5 5 * @group notifications 6 6 */ 7 #[AllowDynamicProperties] 7 8 class BP_Tests_Activity_Notifications extends BP_UnitTestCase { 8 9 protected $current_user; -
trunk/tests/phpunit/testcases/blogs/functions.php
r13343 r13414 4 4 * @group blogs 5 5 */ 6 #[AllowDynamicProperties] 6 7 class BP_Tests_Blogs_Functions extends BP_UnitTestCase { 7 8 /** -
trunk/tests/phpunit/testcases/core/class-bp-attachment.php
r13314 r13414 7 7 * @group BP_Attachment 8 8 */ 9 #[AllowDynamicProperties] 9 10 class BP_Tests_BP_Attachment_TestCases extends BP_UnitTestCase { 10 11 private $upload_results; -
trunk/tests/phpunit/testcases/groups/class-bp-groups-group.php
r13184 r13414 4 4 * @group BP_Groups_Group 5 5 */ 6 #[AllowDynamicProperties] 6 7 class BP_Tests_BP_Groups_Group_TestCases extends BP_UnitTestCase { 7 8 -
trunk/tests/phpunit/testcases/groups/template.php
r13314 r13414 4 4 * @group template 5 5 */ 6 #[AllowDynamicProperties] 6 7 class BP_Tests_Groups_Template extends BP_UnitTestCase { 7 8 -
trunk/tests/phpunit/testcases/groups/template/group-is-visible.php
r13314 r13414 5 5 * @group template 6 6 */ 7 #[AllowDynamicProperties] 7 8 class BP_Tests_Groups_Template_Is_Visible extends BP_UnitTestCase { 8 9 -
trunk/tests/phpunit/testcases/members/functions.php
r13395 r13414 3 3 * @group members 4 4 */ 5 #[AllowDynamicProperties] 5 6 class BP_Tests_Members_Functions extends BP_UnitTestCase { 6 7 -
trunk/tests/phpunit/testcases/messages/cache.php
r11737 r13414 5 5 * @group cache 6 6 */ 7 #[AllowDynamicProperties] 7 8 class BP_Tests_Message_Cache extends BP_UnitTestCase { 8 9 /** -
trunk/tests/phpunit/testcases/messages/notifications.php
r13314 r13414 5 5 * @group messages 6 6 */ 7 #[AllowDynamicProperties] 7 8 class BP_Tests_Messages_Notifications extends BP_UnitTestCase { 8 9 -
trunk/tests/phpunit/testcases/notifications/functions.php
r13243 r13414 4 4 * @group notifications 5 5 */ 6 #[AllowDynamicProperties] 6 7 class BP_Tests_Notifications_Functions extends BP_UnitTestCase { 7 8 -
trunk/tests/phpunit/testcases/xprofile/class-bp-xprofile-profiledata.php
r12781 r13414 5 5 * @group BP_XProfile_ProfileData 6 6 */ 7 #[AllowDynamicProperties] 7 8 class BP_Tests_BP_XProfile_ProfileData_TestCases extends BP_UnitTestCase { 8 9 /**
Note: See TracChangeset
for help on using the changeset viewer.