WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/18/2017 10:03:39 AM (3 years ago)
Author:
pento
Message:

Dashboard: Introduce a "Try Gutenberg" callout.

To encourage more people to try Gutenberg, this new Dashboard box allows site users to easily install and try out Gutenberg.

Props pento, melchoyce, joen, karmatosed.
Fixes #41316.

File:
1 edited

Legend:

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

    r41721 r41895  
    14811481
    14821482/**
     1483 * Ajax handler for updating whether to display the Try Gutenberg panel.
     1484 *
     1485 * @since 4.9.0
     1486 */
     1487function wp_ajax_update_try_gutenberg_panel() {
     1488    check_ajax_referer( 'try-gutenberg-panel-nonce', 'trygutenbergpanelnonce' );
     1489
     1490    update_user_meta( get_current_user_id(), 'show_try_gutenberg_panel', empty( $_POST['visible'] ) ? 0 : 1 );
     1491
     1492    wp_die( 1 );
     1493}
     1494
     1495/**
    14831496 * Ajax handler for retrieving menu meta boxes.
    14841497 *
Note: See TracChangeset for help on using the changeset viewer.