Making WordPress.org

Ticket #1171: 1171.diff

File 1171.diff, 6.5 KB (added by netweb, 10 years ago)
  • sites/trunk/buddypress.org/public_html/wp-content/plugins/bbpress-org/toolbar.php

     
    4949
    5050        /** WordPress *************************************************************/
    5151
    52         // Add "About WordPress" link
     52        // Add WordPress menu
    5353        $wp_admin_bar->add_menu( array(
    5454                'parent' => 'wp-logo',
    5555                'id'     => 'wordpress',
     
    5757                'href'  => 'https://wordpress.org',
    5858        ) );
    5959
     60        // Add "About WordPress" link
    6061        $wp_admin_bar->add_menu( array(
    6162                'parent' => 'wordpress',
    6263                'id'     => 'wp-about',
     
    8889                'href'      => 'https://wordpress.org/support/forum/requests-and-feedback',
    8990        ) );
    9091
    91         /** BuddyPress Developer **/
     92        /** WordPress Developer **/
    9293        $wp_admin_bar->add_group( array(
    9394                'parent' => 'wordpress',
    9495                'id'     => 'wp-developer',
     
    113114
    114115        /** bbPress ***************************************************************/
    115116
    116         // Add "About WordPress" link
     117        // Add bbPress menu
    117118        $wp_admin_bar->add_menu( array(
    118119                'parent' => 'wp-logo',
    119120                'id'     => 'bbpress',
     
    121122                'href'  => 'https://bbpress.org',
    122123        ) );
    123124
     125        // Add "About bbPress" link
    124126        $wp_admin_bar->add_menu( array(
    125127                'parent' => 'bbpress',
    126                 'id'     => 'bbp-about',
     128                'id'     => 'bbp-about-alt',
    127129                'title'  => __( 'About bbPress' ),
    128130                'href'   => 'https://bbpress.org/about/',
    129131        ) );
     
    152154                'href'      => 'https://bbpress.org/forums/forum/requests-and-feedback',
    153155        ) );
    154156
    155         /** BuddyPress Developer **/
     157        /** bbPress Developer **/
    156158        $wp_admin_bar->add_group( array(
    157159                'parent' => 'bbpress',
    158160                'id'     => 'bbp-developer',
     
    177179
    178180        /** BuddyPress ************************************************************/
    179181
    180         // Add "About WordPress" link
     182        // Add BuddyPress menu
    181183        $wp_admin_bar->add_menu( array(
    182184                'parent' => 'wp-logo',
    183185                'id'     => 'buddypress',
     
    185187                'href'  => 'https://buddypress.org',
    186188        ) );
    187189
     190        // Add "About BuddyPress" link
    188191        $wp_admin_bar->add_menu( array(
    189192                'parent' => 'buddypress',
    190                 'id'     => 'bp-about',
     193                'id'     => 'bp-about-alt',
    191194                'title'  => __( 'About BuddyPress' ),
    192195                'href'   => 'https://buddypress.org/about/',
    193196        ) );
     
    205208                'parent'    => 'buddypress',
    206209                'id'        => 'bp-support-forums',
    207210                'title'     => __( 'Support Forums' ),
    208                 'href'      => 'https://buddypress.org/forums/',
     211                'href'      => 'https://buddypress.org/support/',
    209212        ) );
    210213
    211214        // Add feedback link
     
    259262
    260263        if ( is_user_logged_in() ) {
    261264
    262                 // Add an option to visit the site.
     265                // Add a link to create a new topic.
    263266                $wp_admin_bar->add_menu( array(
    264                         'parent' => 'bbp-site-name',
    265267                        'id'     => 'bbp-new-topic',
    266268                        'title'  => __( 'Create New Topic' ),
    267269                        'href'   => 'https://bbpress.org/forums/new-topic/'
     
    289291        // Not logged in
    290292        } else {
    291293                $wp_admin_bar->add_menu( array(
    292                         'parent' => 'bbp-site-name',
    293294                        'id'     => 'bbp-login',
    294295                        'title'  => __( 'Log in' ),
    295296                        'href'   => 'https://bbpress.org/login/'
  • sites/trunk/buddypress.org/public_html/wp-content/plugins/buddypress-org/toolbar.php

     
    5656
    5757        /** WordPress *************************************************************/
    5858
    59         // Add "About WordPress" link
     59        // Add WordPress menu
    6060        $wp_admin_bar->add_menu( array(
    6161                'parent' => 'wp-logo',
    6262                'id'     => 'wordpress',
     
    6464                'href'  => 'https://wordpress.org',
    6565        ) );
    6666
     67        // Add "About WordPress" link
    6768        $wp_admin_bar->add_menu( array(
    6869                'parent' => 'wordpress',
    6970                'id'     => 'wp-about',
     
    9596                'href'      => 'https://wordpress.org/support/forum/requests-and-feedback',
    9697        ) );
    9798
    98         /** BuddyPress Developer **/
     99        /** WordPress Developer **/
    99100        $wp_admin_bar->add_group( array(
    100101                'parent' => 'wordpress',
    101102                'id'     => 'wp-developer',
     
    120121
    121122        /** bbPress ***************************************************************/
    122123
    123         // Add "About WordPress" link
     124        // Add bbPress menu
    124125        $wp_admin_bar->add_menu( array(
    125126                'parent' => 'wp-logo',
    126127                'id'     => 'bbpress',
     
    128129                'href'  => 'https://bbpress.org',
    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/',
    136138        ) );
     
    159161                'href'      => 'https://bbpress.org/forums/forum/requests-and-feedback',
    160162        ) );
    161163
    162         /** BuddyPress Developer **/
     164        /** bbPress Developer **/
    163165        $wp_admin_bar->add_group( array(
    164166                'parent' => 'bbpress',
    165167                'id'     => 'bbp-developer',
     
    184186
    185187        /** BuddyPress ************************************************************/
    186188
    187         // Add "About WordPress" link
     189        // Add BuddyPress menu
    188190        $wp_admin_bar->add_menu( array(
    189191                'parent' => 'wp-logo',
    190192                'id'     => 'buddypress',
     
    192194                'href'  => 'https://buddypress.org',
    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/',
    200203        ) );
     
    212215                'parent'    => 'buddypress',
    213216                'id'        => 'bp-support-forums',
    214217                'title'     => __( 'Support Forums' ),
    215                 'href'      => 'https://buddypress.org/forums/',
     218                'href'      => 'https://buddypress.org/support/',
    216219        ) );
    217220
    218221        // Add feedback link
     
    290293
    291294        if ( is_user_logged_in() ) {
    292295
    293                 // Add an option to visit the site.
     296                // Add a link to create a new topic.
    294297                $wp_admin_bar->add_menu( array(
    295                         'parent' => 'bp-site-name',
    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
    301303                // Add an option to visit the admin dashboard
     
    320322        // Not logged in
    321323        } else {
    322324                $wp_admin_bar->add_menu( array(
    323                         'parent' => 'bp-site-name',
    324325                        'id'     => 'bp-login',
    325326                        'title'  => __( 'Log in' ),
    326327                        'href'   => 'https://buddypress.org/login/'