Skip to:
Content

bbPress.org

Changeset 4402


Ignore:
Timestamp:
11/12/2012 08:25:14 AM (9 years ago)
Author:
johnjamesjacoby
Message:

BuddyPress:

  • Only rename 'Default Forum' if name matches old bbPress default forum title.
  • See #2025, #1669.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/admin/tools.php

    r4401 r4402  
    361361    if ( ! empty( $posts ) ) {
    362362
    363         // Rename the group root, since it's now visible in sitewide forums
    364         wp_update_post( array(
    365             'ID'         => $posts[0]->ID,
    366             'post_title' => __( 'Group Forums', 'bbpress' ),
    367         ) );
     363        // Rename 'Default Forum'  since it's now visible in sitewide forums
     364        if ( 'Default Forum' == $posts[0]->post_title ) {
     365            wp_update_post( array(
     366                'ID'         => $posts[0]->ID,
     367                'post_title' => __( 'Group Forums', 'bbpress' ),
     368            ) );
     369        }
    368370
    369371        // Update the group forums root metadata
Note: See TracChangeset for help on using the changeset viewer.