Skip to:
Content

BuddyPress.org

Changeset 12538


Ignore:
Timestamp:
01/25/2020 07:20:27 AM (5 years ago)
Author:
imath
Message:

Admin: fix PHP code standards (including Translators comments)

Props sharaz

Fixes #8197

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/bp-core-admin-functions.php

    r12519 r12538  
    1515/**
    1616 * Initializes the wp-admin area "BuddyPress" menus and sub menus.
    17  *
    1817 */
    1918function bp_core_admin_menu_init() {
     
    7877
    7978    // This tweaks the Settings subnav menu to show only one BuddyPress menu item.
    80     if ( ! in_array( $plugin_page, array( 'bp-activity', 'bp-general-settings', ) ) ) {
     79    if ( ! in_array( $plugin_page, array( 'bp-activity', 'bp-general-settings' ) ) ) {
    8180        $submenu_file = 'bp-components';
    8281    }
     
    107106
    108107        <p><?php _e( "Don't worry! We've moved the BuddyPress options into more convenient and easier to find locations. You're seeing this page because you are running a legacy BuddyPress plugin which has not been updated.", 'buddypress' ); ?></p>
    109         <p><?php printf( __( 'Components, Pages, Settings, and Forums, have been moved to <a href="%s">Settings &gt; BuddyPress</a>. Profile Fields has been moved into the <a href="%s">Users</a> menu.', 'buddypress' ), esc_url( $settings_url ), bp_get_admin_url( 'users.php?page=bp-profile-setup' ) ); ?></p>
     108        <p>
     109            <?php
     110            printf(
     111                // Translators: 1: is the url to the BP Components settings screen. 2: is the url to the xProfile administration screen.
     112                __( 'Components, Pages, Settings, and Forums, have been moved to <a href="%1$s">Settings &gt; BuddyPress</a>. Profile Fields has been moved into the <a href="%2$s">Users</a> menu.', 'buddypress' ),
     113                esc_url( $settings_url ),
     114                bp_get_admin_url( 'users.php?page=bp-profile-setup' )
     115            );
     116            ?>
     117        </p>
    110118    </div>
    111119
     
    122130 *
    123131 * @since 1.5.0
    124  *
    125132 */
    126133function bp_core_print_admin_notices() {
     
    154161    }
    155162}
    156 add_action( 'admin_notices',         'bp_core_print_admin_notices' );
     163add_action( 'admin_notices', 'bp_core_print_admin_notices' );
    157164add_action( 'network_admin_notices', 'bp_core_print_admin_notices' );
    158165
     
    241248    // Add notice if no rewrite rules are enabled.
    242249    if ( empty( $wp_rewrite->permalink_structure ) ) {
    243         bp_core_add_admin_notice( sprintf( __( '<strong>BuddyPress is almost ready</strong>. You must <a href="%s">update your permalink structure</a> to something other than the default for it to work.', 'buddypress' ), admin_url( 'options-permalink.php' ) ), 'error' );
     250        bp_core_add_admin_notice(
     251            sprintf(
     252                // Translators: %s is the url to the permalink settings.
     253                __( '<strong>BuddyPress is almost ready</strong>. You must <a href="%s">update your permalink structure</a> to something other than the default for it to work.', 'buddypress' ),
     254                admin_url( 'options-permalink.php' )
     255            ),
     256            'error'
     257        );
    244258    }
    245259
     
    254268
    255269    // Only components with 'has_directory' require a WP page to function.
    256     foreach( array_keys( $bp->loaded_components ) as $component_id ) {
    257         if ( !empty( $bp->{$component_id}->has_directory ) ) {
     270    foreach ( array_keys( $bp->loaded_components ) as $component_id ) {
     271        if ( ! empty( $bp->{$component_id}->has_directory ) ) {
    258272            $wp_page_components[] = array(
    259273                'id'   => $component_id,
    260                 'name' => isset( $bp->{$component_id}->name ) ? $bp->{$component_id}->name : ucwords( $bp->{$component_id}->id )
     274                'name' => isset( $bp->{$component_id}->name ) ? $bp->{$component_id}->name : ucwords( $bp->{$component_id}->id ),
    261275            );
    262276        }
     
    268282        $wp_page_components[] = array(
    269283            'id'   => 'activate',
    270             'name' => __( 'Activate', 'buddypress' )
     284            'name' => __( 'Activate', 'buddypress' ),
    271285        );
    272286
    273287        $wp_page_components[] = array(
    274288            'id'   => 'register',
    275             'name' => __( 'Register', 'buddypress' )
     289            'name' => __( 'Register', 'buddypress' ),
    276290        );
    277291    }
     
    283297    }
    284298
    285     foreach( $wp_page_components as $component ) {
    286         if ( !isset( $bp->pages->{$component['id']} ) ) {
     299    foreach ( $wp_page_components as $component ) {
     300        if ( ! isset( $bp->pages->{$component['id']} ) ) {
    287301            $orphaned_components[] = $component['name'];
    288302        }
    289303    }
    290304
    291     if ( !empty( $orphaned_components ) ) {
     305    if ( ! empty( $orphaned_components ) ) {
    292306        $admin_url = bp_get_admin_url( add_query_arg( array( 'page' => 'bp-page-settings' ), 'admin.php' ) );
    293307        $notice    = sprintf(
    294308            '%1$s <a href="%2$s">%3$s</a>',
    295309            sprintf(
     310                // Translators: %s is the comma separated list of components needing a directory page.
    296311                __( 'The following active BuddyPress Components do not have associated WordPress Pages: %s.', 'buddypress' ),
    297312                '<strong>' . implode( '</strong>, <strong>', array_map( 'esc_html', $orphaned_components ) ) . '</strong>'
     
    309324    $dupes      = array_diff_assoc( $page_ids, array_unique( $page_ids ) );
    310325
    311     if ( !empty( $dupes ) ) {
    312         foreach( array_keys( $dupes ) as $dupe_component ) {
     326    if ( ! empty( $dupes ) ) {
     327        foreach ( array_keys( $dupes ) as $dupe_component ) {
    313328            $dupe_names[] = $bp->pages->{$dupe_component}->title;
    314329        }
     
    319334
    320335    // If there are duplicates, post a message about them.
    321     if ( !empty( $dupe_names ) ) {
     336    if ( ! empty( $dupe_names ) ) {
    322337        $admin_url = bp_get_admin_url( add_query_arg( array( 'page' => 'bp-page-settings' ), 'admin.php' ) );
    323338        $notice    = sprintf(
    324339            '%1$s <a href="%2$s">%3$s</a>',
    325340            sprintf(
     341                // Translators: %s is the list of directory pages associated to more than one component.
    326342                __( 'Each BuddyPress Component needs its own WordPress page. The following WordPress Pages have more than one component associated with them: %s.', 'buddypress' ),
    327343                '<strong>' . implode( '</strong>, <strong>', array_map( 'esc_html', $dupe_names ) ) . '</strong>'
     
    341357 *
    342358 * @internal Used internally to redirect BuddyPress to the about page on activation.
    343  *
    344359 */
    345360function bp_do_activation_redirect() {
     
    389404     * @param array $value Array of tabs to output to the admin area.
    390405     */
    391     $tabs         = apply_filters( 'bp_core_admin_tabs', bp_core_get_admin_tabs( $active_tab ) );
     406    $tabs = apply_filters( 'bp_core_admin_tabs', bp_core_get_admin_tabs( $active_tab ) );
    392407
    393408    // Loop through tabs and build navigation.
     
    420435        '0' => array(
    421436            'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp-components' ), 'admin.php' ) ),
    422             'name' => __( 'Components', 'buddypress' )
     437            'name' => __( 'Components', 'buddypress' ),
    423438        ),
    424439        '2' => array(
    425440            'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp-settings' ), 'admin.php' ) ),
    426             'name' => __( 'Options', 'buddypress' )
     441            'name' => __( 'Options', 'buddypress' ),
    427442        ),
    428443        '1' => array(
    429444            'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp-page-settings' ), 'admin.php' ) ),
    430             'name' => __( 'Pages', 'buddypress' )
     445            'name' => __( 'Pages', 'buddypress' ),
    431446        ),
    432447        '3' => array(
    433448            'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp-credits' ), 'admin.php' ) ),
    434             'name' => __( 'Credits', 'buddypress' )
     449            'name' => __( 'Credits', 'buddypress' ),
    435450        ),
    436451    );
     
    463478
    464479        // Component page.
    465         case 'settings_page_bp-components' :
    466 
     480        case 'settings_page_bp-components':
    467481            // Help tabs.
    468             $screen->add_help_tab( array(
    469                 'id'      => 'bp-comp-overview',
    470                 'title'   => __( 'Overview', 'buddypress' ),
    471                 'content' => bp_core_add_contextual_help_content( 'bp-comp-overview' ),
    472             ) );
     482            $screen->add_help_tab(
     483                array(
     484                    'id'      => 'bp-comp-overview',
     485                    'title'   => __( 'Overview', 'buddypress' ),
     486                    'content' => bp_core_add_contextual_help_content( 'bp-comp-overview' ),
     487                )
     488            );
    473489
    474490            // Help panel - sidebar links.
     
    481497
    482498        // Pages page.
    483         case 'settings_page_bp-page-settings' :
    484 
     499        case 'settings_page_bp-page-settings':
    485500            // Help tabs.
    486             $screen->add_help_tab( array(
    487                 'id' => 'bp-page-overview',
    488                 'title' => __( 'Overview', 'buddypress' ),
    489                 'content' => bp_core_add_contextual_help_content( 'bp-page-overview' ),
    490             ) );
     501            $screen->add_help_tab(
     502                array(
     503                    'id'      => 'bp-page-overview',
     504                    'title'   => __( 'Overview', 'buddypress' ),
     505                    'content' => bp_core_add_contextual_help_content( 'bp-page-overview' ),
     506                )
     507            );
    491508
    492509            // Help panel - sidebar links.
     
    500517
    501518        // Settings page.
    502         case 'settings_page_bp-settings' :
    503 
     519        case 'settings_page_bp-settings':
    504520            // Help tabs.
    505             $screen->add_help_tab( array(
    506                 'id'      => 'bp-settings-overview',
    507                 'title'   => __( 'Overview', 'buddypress' ),
    508                 'content' => bp_core_add_contextual_help_content( 'bp-settings-overview' ),
    509             ) );
     521            $screen->add_help_tab(
     522                array(
     523                    'id'      => 'bp-settings-overview',
     524                    'title'   => __( 'Overview', 'buddypress' ),
     525                    'content' => bp_core_add_contextual_help_content( 'bp-settings-overview' ),
     526                )
     527            );
    510528
    511529            // Help panel - sidebar links.
     
    519537
    520538        // Profile fields page.
    521         case 'users_page_bp-profile-setup' :
    522 
     539        case 'users_page_bp-profile-setup':
    523540            // Help tabs.
    524             $screen->add_help_tab( array(
    525                 'id'      => 'bp-profile-overview',
    526                 'title'   => __( 'Overview', 'buddypress' ),
    527                 'content' => bp_core_add_contextual_help_content( 'bp-profile-overview' ),
    528             ) );
     541            $screen->add_help_tab(
     542                array(
     543                    'id'      => 'bp-profile-overview',
     544                    'title'   => __( 'Overview', 'buddypress' ),
     545                    'content' => bp_core_add_contextual_help_content( 'bp-profile-overview' ),
     546                )
     547            );
    529548
    530549            // Help panel - sidebar links.
     
    554573
    555574    switch ( $tab ) {
    556         case 'bp-comp-overview' :
     575        case 'bp-comp-overview':
    557576            $retval = __( 'By default, all but four of the BuddyPress components are enabled. You can selectively enable or disable any of the components by using the form below. Your BuddyPress installation will continue to function. However, the features of the disabled components will no longer be accessible to anyone using the site.', 'buddypress' );
    558577            break;
    559578
    560         case 'bp-page-overview' :
     579        case 'bp-page-overview':
    561580            $retval = __( 'BuddyPress Components use WordPress Pages for their root directory/archive pages. You can change the page associations for each active component by using the form below.', 'buddypress' );
    562581            break;
    563582
    564         case 'bp-settings-overview' :
     583        case 'bp-settings-overview':
    565584            $retval = __( 'Extra configuration settings are provided and activated. You can selectively enable or disable any setting by using the form on this screen.', 'buddypress' );
    566585            break;
    567586
    568         case 'bp-profile-overview' :
     587        case 'bp-profile-overview':
    569588            $retval = __( 'Your users will distinguish themselves through their profile page. Create relevant profile fields that will show on each users profile.', 'buddypress' ) . '<br /><br />' . __( 'Note: Any fields in the first group will appear on the signup page.', 'buddypress' );
    570589            break;
     
    576595
    577596    // Wrap text in a paragraph tag.
    578     if ( !empty( $retval ) ) {
     597    if ( ! empty( $retval ) ) {
    579598        $retval = '<p>' . $retval . '</p>';
    580599    }
     
    589608 *
    590609 * @since 1.7.0
    591  *
    592610 */
    593611function bp_admin_separator() {
     
    656674
    657675    // Menu values.
    658     $last_sep     = is_network_admin() ? 'separator1' : 'separator2';
     676    $last_sep = is_network_admin() ? 'separator1' : 'separator2';
    659677
    660678    /**
     
    682700
    683701            // Add our custom menus.
    684             foreach( (array) $custom_menus as $custom_menu ) {
     702            foreach ( (array) $custom_menus as $custom_menu ) {
    685703                if ( array_search( $custom_menu, $menu_order ) ) {
    686704                    $bp_menu_order[] = $custom_menu;
     
    691709            $bp_menu_order[] = $last_sep;
    692710
    693         // Skip our menu items.
     711            // Skip our menu items.
    694712        } elseif ( ! in_array( $item, $custom_menus ) ) {
    695713            $bp_menu_order[] = $item;
     
    719737
    720738    // If the bottom is set, let it override the action.
    721     if ( ! empty( $_REQUEST['action2'] ) && $_REQUEST['action2'] != "-1" ) {
     739    if ( ! empty( $_REQUEST['action2'] ) && $_REQUEST['action2'] != '-1' ) {
    722740        $action = $_REQUEST['action2'];
    723741    }
     
    760778    $tabs = array();
    761779
    762     $tabs['loggedin']['label']  = __( 'Logged-In', 'buddypress' );
    763     $tabs['loggedin']['pages']  = bp_nav_menu_get_loggedin_pages();
     780    $tabs['loggedin']['label'] = __( 'Logged-In', 'buddypress' );
     781    $tabs['loggedin']['pages'] = bp_nav_menu_get_loggedin_pages();
    764782
    765783    $tabs['loggedout']['label'] = __( 'Logged-Out', 'buddypress' );
     
    769787
    770788    <div id="buddypress-menu" class="posttypediv">
    771         <h4><?php _e( 'Logged-In', 'buddypress' ) ?></h4>
    772         <p><?php _e( '<em>Logged-In</em> links are relative to the current user, and are not visible to visitors who are not logged in.', 'buddypress' ) ?></p>
     789        <h4><?php _e( 'Logged-In', 'buddypress' ); ?></h4>
     790        <p><?php _e( '<em>Logged-In</em> links are relative to the current user, and are not visible to visitors who are not logged in.', 'buddypress' ); ?></p>
    773791
    774792        <div id="tabs-panel-posttype-<?php echo $post_type_name; ?>-loggedin" class="tabs-panel tabs-panel-active">
    775793            <ul id="buddypress-menu-checklist-loggedin" class="categorychecklist form-no-clear">
    776                 <?php echo walk_nav_menu_tree( array_map( 'wp_setup_nav_menu_item', $tabs['loggedin']['pages'] ), 0, (object) $args );?>
     794                <?php echo walk_nav_menu_tree( array_map( 'wp_setup_nav_menu_item', $tabs['loggedin']['pages'] ), 0, (object) $args ); ?>
    777795            </ul>
    778796        </div>
    779797
    780         <h4><?php _e( 'Logged-Out', 'buddypress' ) ?></h4>
    781         <p><?php _e( '<em>Logged-Out</em> links are not visible to users who are logged in.', 'buddypress' ) ?></p>
     798        <h4><?php _e( 'Logged-Out', 'buddypress' ); ?></h4>
     799        <p><?php _e( '<em>Logged-Out</em> links are not visible to users who are logged in.', 'buddypress' ); ?></p>
    782800
    783801        <div id="tabs-panel-posttype-<?php echo $post_type_name; ?>-loggedout" class="tabs-panel tabs-panel-active">
    784802            <ul id="buddypress-menu-checklist-loggedout" class="categorychecklist form-no-clear">
    785                 <?php echo walk_nav_menu_tree( array_map( 'wp_setup_nav_menu_item', $tabs['loggedout']['pages'] ), 0, (object) $args );?>
     803                <?php echo walk_nav_menu_tree( array_map( 'wp_setup_nav_menu_item', $tabs['loggedout']['pages'] ), 0, (object) $args ); ?>
    786804            </ul>
    787805        </div>
     
    800818        <p class="button-controls">
    801819            <span class="list-controls">
    802                 <a href="<?php
    803                 echo esc_url( add_query_arg(
    804                     array(
    805                         $post_type_name . '-tab' => 'all',
    806                         'selectall'              => 1,
    807                     ),
    808                     remove_query_arg( $removed_args )
    809                 ) );
    810                 ?>#buddypress-menu" class="select-all"><?php _e( 'Select All', 'buddypress' ); ?></a>
     820                <a href="
     821                <?php
     822                echo esc_url(
     823                    add_query_arg(
     824                        array(
     825                            $post_type_name . '-tab' => 'all',
     826                            'selectall'              => 1,
     827                        ),
     828                        remove_query_arg( $removed_args )
     829                    )
     830                );
     831                ?>
     832                #buddypress-menu" class="select-all"><?php _e( 'Select All', 'buddypress' ); ?></a>
    811833            </span>
    812834            <span class="add-to-menu">
    813                 <input type="submit"<?php if ( function_exists( 'wp_nav_menu_disabled_check' ) ) : wp_nav_menu_disabled_check( $nav_menu_selected_id ); endif; ?> class="button-secondary submit-add-to-menu right" value="<?php esc_attr_e( 'Add to Menu', 'buddypress' ); ?>" name="add-custom-menu-item" id="submit-buddypress-menu" />
     835                <input type="submit"
     836                <?php
     837                if ( function_exists( 'wp_nav_menu_disabled_check' ) ) :
     838                    wp_nav_menu_disabled_check( $nav_menu_selected_id );
     839endif;
     840                ?>
     841                 class="button-secondary submit-add-to-menu right" value="<?php esc_attr_e( 'Add to Menu', 'buddypress' ); ?>" name="add-custom-menu-item" id="submit-buddypress-menu" />
    814842                <span class="spinner"></span>
    815843            </span>
     
    846874    bp_core_add_admin_notice(
    847875        sprintf(
     876            // Translators: %s is the url to the BuddyPress tools administration screen.
    848877            __( 'Are these emails not written in your site\'s language? Go to <a href="%s">BuddyPress Tools and try the "reinstall emails"</a> tool.', 'buddypress' ),
    849878            esc_url( add_query_arg( 'page', 'bp-tools', bp_get_admin_url( $admin_page ) ) )
     
    866895    bp_core_add_admin_notice(
    867896        sprintf(
     897            // Translators: %s is the url to the BuddyPress codex page about BP Email tokens.
    868898            __( 'Phrases wrapped in braces <code>{{ }}</code> are email tokens. <a href="%s">Learn about tokens on the BuddyPress Codex</a>.', 'buddypress' ),
    869899            esc_url( 'https://codex.buddypress.org/emails/email-tokens/' )
     
    892922function bp_email_tax_type_metabox( $post, $box ) {
    893923    $r = array(
    894         'taxonomy' => bp_get_email_tax_type()
     924        'taxonomy' => bp_get_email_tax_type(),
    895925    );
    896926
     
    905935            ?>
    906936            <ul id="<?php echo $tax_name; ?>checklist" data-wp-lists="list:<?php echo $tax_name; ?>" class="categorychecklist form-no-clear">
    907                 <?php wp_terms_checklist( $post->ID, array( 'taxonomy' => $tax_name, 'walker' => new BP_Walker_Category_Checklist ) ); ?>
     937                <?php
     938                wp_terms_checklist(
     939                    $post->ID,
     940                    array(
     941                        'taxonomy' => $tax_name,
     942                        'walker'   => new BP_Walker_Category_Checklist(),
     943                    )
     944                );
     945                ?>
    908946            </ul>
    909947        </div>
     
    936974 */
    937975function bp_email_plaintext_metabox( $post ) {
    938 ?>
    939 
    940     <label class="screen-reader-text" for="excerpt"><?php
     976    ?>
     977
     978    <label class="screen-reader-text" for="excerpt">
     979    <?php
    941980        /* translators: accessibility text */
    942981        _e( 'Plain text email content', 'buddypress' );
    943     ?></label><textarea rows="5" cols="40" name="excerpt" id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea>
     982    ?>
     983    </label><textarea rows="5" cols="40" name="excerpt" id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea>
    944984
    945985    <p><?php _e( 'Most email clients support HTML email. However, some people prefer to receive plain text email. Enter a plain text alternative version of your email here.', 'buddypress' ); ?></p>
    946986
    947 <?php
     987    <?php
    948988}
    949989
     
    9651005 */
    9661006function bp_admin_wp_nav_menu_restrict_items() {
    967 ?>
     1007    ?>
    9681008    <script type="text/javascript">
    9691009    jQuery( '#menu-to-edit').on( 'click', 'a.item-edit', function() {
     
    9771017    });
    9781018    </script>
    979 <?php
     1019    <?php
    9801020}
    9811021
     
    9931033    // Setup the $user_id variable from the current user object.
    9941034    $user_id = 0;
    995     if ( !empty( $user_object->ID ) ) {
     1035    if ( ! empty( $user_object->ID ) ) {
    9961036        $user_id = absint( $user_object->ID );
    9971037    }
     
    10051045        // If spammed, create unspam link.
    10061046        if ( bp_is_user_spammer( $user_id ) ) {
    1007             $url             = add_query_arg( array( 'action' => 'ham', 'user' => $user_id ), $url );
    1008             $unspam_link     = wp_nonce_url( $url, 'bp-spam-user' );
    1009             $actions['ham']  = sprintf( '<a href="%1$s">%2$s</a>', esc_url( $unspam_link ), esc_html__( 'Not Spam', 'buddypress' ) );
    1010 
    1011         // If not already spammed, create spam link.
     1047            $url            = add_query_arg(
     1048                array(
     1049                    'action' => 'ham',
     1050                    'user'   => $user_id,
     1051                ),
     1052                $url
     1053            );
     1054            $unspam_link    = wp_nonce_url( $url, 'bp-spam-user' );
     1055            $actions['ham'] = sprintf('<a href="%1$s">%2$s</a>', esc_url( $unspam_link ), esc_html__( 'Not Spam', 'buddypress' ) );
     1056
     1057            // If not already spammed, create spam link.
    10121058        } else {
    1013             $url             = add_query_arg( array( 'action' => 'spam', 'user' => $user_id ), $url );
     1059            $url             = add_query_arg(
     1060                array(
     1061                    'action' => 'spam',
     1062                    'user'   => $user_id,
     1063                ),
     1064                $url
     1065            );
    10141066            $spam_link       = wp_nonce_url( $url, 'bp-spam-user' );
    10151067            $actions['spam'] = sprintf( '<a class="submitdelete" href="%1$s">%2$s</a>', esc_url( $spam_link ), esc_html__( 'Spam', 'buddypress' ) );
     
    11421194 * @since 5.0.0
    11431195 *
    1144  * @param array   $categories Array of block categories.
    1145  * @param object  $post       Post being loaded.
     1196 * @param array  $categories Array of block categories.
     1197 * @param object $post       Post being loaded.
    11461198 */
    11471199function bp_block_category( $categories = array(), $post = null ) {
     
    11701222    }
    11711223
    1172     return array_merge( $categories, array(
     1224    return array_merge(
     1225        $categories,
    11731226        array(
    1174             'slug'  => 'buddypress',
    1175             'title' => __( 'BuddyPress', 'buddypress' ),
    1176             'icon'  => 'buddicons-buddypress-logo',
    1177         ),
    1178     ) );
     1227            array(
     1228                'slug'  => 'buddypress',
     1229                'title' => __( 'BuddyPress', 'buddypress' ),
     1230                'icon'  => 'buddicons-buddypress-logo',
     1231            ),
     1232        )
     1233    );
    11791234}
    11801235add_filter( 'block_categories', 'bp_block_category', 1, 2 );
Note: See TracChangeset for help on using the changeset viewer.