Making WordPress.org

Changeset 9678


Ignore:
Timestamp:
04/02/2020 12:52:55 AM (5 years ago)
Author:
dd32
Message:

Developer: Block Editor Handbook: Import from the WordPress-specific branch.

This allows the handbook to contain information that's relevant to the current release, rather than future changes.

Props chrisvanpatten for initial patch.
Fixes #5020.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/import-block-editor.php

    r9482 r9678  
    66     */
    77    public function init() {
     8        if ( defined( 'WP_CORE_STABLE_BRANCH' ) ) {
     9            $manifest = 'https://raw.githubusercontent.com/WordPress/gutenberg/wp/' . WP_CORE_STABLE_BRANCH . '/docs/manifest.json';
     10        } else {
     11            $manifest = 'https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/manifest.json';
     12        }
     13
    814        parent::do_init(
    915            'blocks',
    1016            'block-editor',
    11             'https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/manifest.json'
     17            $manifest
    1218        );
    1319
Note: See TracChangeset for help on using the changeset viewer.