Make WordPress Core


Ignore:
Timestamp:
07/12/2023 12:52:26 PM (15 months ago)
Author:
SergeyBiryukov
Message:

Help/About: Add a “Get Involved” tab to the About page.

This aims to make all the various ways of contributing to open-source WordPress project more discoverable, as well as make it easier to find an area that aligns with new contributor’s skills and interests.

Props oglekler, jpantani, SeReedMedia, ryelle, marybaum, karmatosed, eidolonnight, mt_suzette, Shelob9, desrosj, cathibosco1, jenmylo, nacin, helen, joostdevalk, hugobaeta, TacoVerdo, swissspidy, markoheijnen, lukecavanagh, boemedia, bridgetwillard, jeffmora, davidmusnik, mehdi01, johnbillion, fierevere, tobifjellner, richtabor, meher, courane01, webcommsat, audrasjb, mukesh27, davidbaumwald, costdev, joedolson, robinwpdeveloper, estelaris, mohiuddinomran, SergeyBiryukov.
See #23348.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/admin-bar.php

    r56209 r56220  
    123123function wp_admin_bar_wp_menu( $wp_admin_bar ) {
    124124    if ( current_user_can( 'read' ) ) {
    125         $about_url = self_admin_url( 'about.php' );
     125        $about_url      = self_admin_url( 'about.php' );
     126        $contribute_url = self_admin_url( 'contribute.php' );
    126127    } elseif ( is_multisite() ) {
    127         $about_url = get_dashboard_url( get_current_user_id(), 'about.php' );
     128        $about_url      = get_dashboard_url( get_current_user_id(), 'about.php' );
     129        $contribute_url = get_dashboard_url( get_current_user_id(), 'contribute.php' );
    128130    } else {
    129         $about_url = false;
     131        $about_url      = false;
     132        $contribute_url = false;
    130133    }
    131134
     
    156159                'title'  => __( 'About WordPress' ),
    157160                'href'   => $about_url,
     161            )
     162        );
     163    }
     164
     165    if ( $contribute_url ) {
     166        // Add contribute link.
     167        $wp_admin_bar->add_node(
     168            array(
     169                'parent' => 'wp-logo',
     170                'id'     => 'contribute',
     171                'title'  => __( 'Get Involved' ),
     172                'href'   => $contribute_url,
    158173            )
    159174        );
Note: See TracChangeset for help on using the changeset viewer.