Making WordPress.org


Ignore:
Timestamp:
03/01/2021 08:51:22 PM (6 years ago)
Author:
coffee2code
Message:

Developer, Block Editor Handbook: Switch to 'trunk' as default import source branch.

Props mkaz.
Fixes #5606.

File:
1 edited

Legend:

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

    r9963 r10734  
    66         */
    77        public function init() {
    8                 $manifest = 'https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/manifest.json';
     8                $manifest = 'https://raw.githubusercontent.com/WordPress/gutenberg/trunk/docs/manifest.json';
    99
    1010                parent::do_init(
    … …  
    287287
    288288        /**
    289          * Modifies the GitHub edit URL to point to master instead of the imported branch.
     289         * Modifies the GitHub edit URL to point to trunk instead of the imported branch.
    290290         *
    291291         * @param string $link    The link to edit the post on GitHub.
    … …  
    295295        public function wporg_markdown_edit_link( $link, $post_id ) {
    296296                if ( $this->get_post_type() === get_post_type( $post_id ) ) {
    297                         $link = str_replace( '/wp/' . WP_CORE_STABLE_BRANCH . '/', '/master/', $link );
     297                        $link = str_replace( '/wp/' . WP_CORE_STABLE_BRANCH . '/', '/trunk/', $link );
    298298                }
    299299
Note: See TracChangeset for help on using the changeset viewer.