WordPress.org

Making WordPress.org

Changeset 5642


Ignore:
Timestamp:
07/10/2017 08:55:28 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: Remove stray separator before "Subscribe" button.

Fixes #2948.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php

    r5640 r5642  
    7676}
    7777add_filter( 'bbp_before_get_breadcrumb_parse_args', 'wporg_support_breadcrumb' );
     78
     79/**
     80 * Customize arguments for Subscribe/Unsubscribe link.
     81 *
     82 * Removes ' | ' separator added by BBP_Default::ajax_subscription().
     83 *
     84 * @param array $args Arguments passed to bbp_get_user_subscribe_link().
     85 * @return array Filtered arguments.
     86 */
     87function wporg_support_subscribe_link( $args ) {
     88    $args['before'] = '';
     89
     90    return $args;
     91}
     92add_filter( 'bbp_after_get_user_subscribe_link_parse_args', 'wporg_support_subscribe_link' );
    7893
    7994/**
Note: See TracChangeset for help on using the changeset viewer.