Skip to:
Content

BuddyPress.org

Ticket #8152: 8152.patch

File 8152.patch, 821 bytes (added by imath, 4 years ago)
  • src/bp-core/admin/bp-core-admin-functions.php

    diff --git src/bp-core/admin/bp-core-admin-functions.php src/bp-core/admin/bp-core-admin-functions.php
    index 5e195edbe..2b6abea5f 100644
    add_filter( 'admin_body_class', 'bp_core_admin_body_classes' ); 
    11421142 * @since 5.0.0
    11431143 *
    11441144 * @param array   $categories Array of block categories.
    1145  * @param WP_Post $post       Post being loaded.
     1145 * @param object $post       Post being loaded.
    11461146 */
    1147 function bp_block_category( $categories = array(), WP_Post $post ) {
     1147function bp_block_category( $categories = array(), $post = null ) {
     1148        if ( ! ( $post instanceof WP_Post ) ) {
     1149                return $categories;
     1150        }
     1151
    11481152        /**
    11491153         * Filter here to add/remove the supported post types for the BuddyPress blocks category.
    11501154         *