Skip to:
Content

BuddyPress.org

Changeset 14217


Ignore:
Timestamp:
07/29/2026 03:34:11 PM (5 weeks ago)
Author:
dcavins
Message:

Avoid php8.4 deprecation notices (14.0 branch).

Resolve php8.4 deprecations notices about implicitly marking function parameters as nullable.

Fixes #9337.

Props dealazer, emaralive.

Location:
branches/14.0/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/14.0/src/bp-core/bp-core-template-loader.php

    r14150 r14217  
    654654 *
    655655 * @since 12.0.0
     656 * @since 14.5.1 Make nullable type parameter compatible with PHP 8.4.
    656657 *
    657658 * @param string   $bp_request A specific BuddyPress request.
     
    659660 * @return true
    660661 */
    661 function bp_reset_query( $bp_request = '', WP_Query $query = null ) {
     662function bp_reset_query( $bp_request = '', $query = null ) {
    662663        global $wp;
    663664
  • branches/14.0/src/bp-groups/bp-groups-admin.php

    r14176 r14217  
    11631163 *
    11641164 * @since 2.6.0
     1165 * @since 14.5.1 Make nullable type parameter compatible with PHP 8.4.
    11651166 *
    11661167 * @param BP_Groups_Group|null $group The BP_Groups_Group object corresponding to the group being edited.
    11671168 */
    1168 function bp_groups_admin_edit_metabox_group_type( BP_Groups_Group $group = null ) {
     1169function bp_groups_admin_edit_metabox_group_type( $group = null ) {
    11691170
    11701171        // Bail if no group ID.
Note: See TracChangeset for help on using the changeset viewer.