Making WordPress.org


Ignore:
Timestamp:
01/14/2017 05:09:27 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: Change "Stick (to front)" link text to "Stick (to all forums)" for clarity.

Fixes #1996.

File:
1 edited

Legend:

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

    r4685 r4688  
    276276add_action( 'bbp_theme_before_reply_content', 'wporg_support_add_moderation_notice' );
    277277
     278/**
     279 * Change "Stick (to front)" link text to "Stick (to all forums)".
     280 */
     281function wporg_support_change_super_sticky_text( $links ) {
     282    $links['stick'] = bbp_get_topic_stick_link( array( 'super_text' => __( '(to all forums)', 'wporg-forums' ) ) );
     283
     284    return $links;
     285}
     286add_filter( 'bbp_topic_admin_links', 'wporg_support_change_super_sticky_text' );
     287
    278288/** bb Base *******************************************************************/
    279289
Note: See TracChangeset for help on using the changeset viewer.