Make WordPress Core

Changeset 56720


Ignore:
Timestamp:
09/26/2023 04:27:58 PM (7 months ago)
Author:
costdev
Message:

Toolbar: Link to Learn WordPress in the WordPress Logo menu.

This aims to make the various resources on learn.wordpress.org more easily available.

Props jeherve, mikinc860, audrasjb, sabernhardt, courane01, devmuhib, dhrumilk, estelaris, hellofromTonya.
Fixes #58820.

File:
1 edited

Legend:

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

    r56682 r56720  
    192192            'title'  => __( 'Documentation' ),
    193193            'href'   => __( 'https://wordpress.org/documentation/' ),
     194        )
     195    );
     196
     197    // Add learn link.
     198    $wp_admin_bar->add_node(
     199        array(
     200            'parent' => 'wp-logo-external',
     201            'id'     => 'learn',
     202            'title'  => __( 'Learn WordPress' ),
     203            'href'   => 'https://learn.wordpress.org/',
    194204        )
    195205    );
Note: See TracChangeset for help on using the changeset viewer.