Making WordPress.org


Ignore:
Timestamp:
09/01/2016 09:45:53 AM (9 years ago)
Author:
netweb
Message:

BuddyPress.org: Move the Create New Topic toolbar menu item to a "top level" menu item

Fixes #1711.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/plugins/buddypress-org/toolbar.php

    r1851 r3907  
    5757    /** WordPress *************************************************************/
    5858
    59     // Add "About WordPress" link
     59    // Add WordPress menu
    6060    $wp_admin_bar->add_menu( array(
    6161        'parent' => 'wp-logo',
     
    6565    ) );
    6666
     67    // Add "About WordPress" link
    6768    $wp_admin_bar->add_menu( array(
    6869        'parent' => 'wordpress',
     
    9697    ) );
    9798
    98     /** BuddyPress Developer **/
     99    /** WordPress Developer **/
    99100    $wp_admin_bar->add_group( array(
    100101        'parent' => 'wordpress',
     
    121122    /** bbPress ***************************************************************/
    122123
    123     // Add "About WordPress" link
     124    // Add bbPress menu
    124125    $wp_admin_bar->add_menu( array(
    125126        'parent' => 'wp-logo',
     
    129130    ) );
    130131
     132    // Add "About bbPress" link
    131133    $wp_admin_bar->add_menu( array(
    132134        'parent' => 'bbpress',
    133         'id'     => 'bbp-about',
     135        'id'     => 'bbp-about-alt',
    134136        'title'  => __( 'About bbPress' ),
    135137        'href'   => 'https://bbpress.org/about/',
     
    160162    ) );
    161163
    162     /** BuddyPress Developer **/
     164    /** bbPress Developer **/
    163165    $wp_admin_bar->add_group( array(
    164166        'parent' => 'bbpress',
     
    185187    /** BuddyPress ************************************************************/
    186188
    187     // Add "About WordPress" link
     189    // Add BuddyPress menu
    188190    $wp_admin_bar->add_menu( array(
    189191        'parent' => 'wp-logo',
     
    193195    ) );
    194196
     197    // Add "About BuddyPress" link
    195198    $wp_admin_bar->add_menu( array(
    196199        'parent' => 'buddypress',
    197         'id'     => 'bp-about',
     200        'id'     => 'bp-about-alt',
    198201        'title'  => __( 'About BuddyPress' ),
    199202        'href'   => 'https://buddypress.org/about/',
     
    213216        'id'        => 'bp-support-forums',
    214217        'title'     => __( 'Support Forums' ),
    215         'href'      => 'https://buddypress.org/forums/',
     218        'href'      => 'https://buddypress.org/support/',
    216219    ) );
    217220
     
    291294    if ( is_user_logged_in() ) {
    292295
    293         // Add an option to visit the site.
    294         $wp_admin_bar->add_menu( array(
    295             'parent' => 'bp-site-name',
     296        // Add a link to create a new topic.
     297        $wp_admin_bar->add_menu( array(
    296298            'id'     => 'bp-new-topic',
    297299            'title'  => __( 'Create New Topic' ),
    298             'href'   => 'https://buddypress.org/forums/new-topic/'
     300            'href'   => 'https://buddypress.org/support/new-topic/'
    299301        ) );
    300302
     
    321323    } else {
    322324        $wp_admin_bar->add_menu( array(
    323             'parent' => 'bp-site-name',
    324325            'id'     => 'bp-login',
    325326            'title'  => __( 'Log in' ),
Note: See TracChangeset for help on using the changeset viewer.