Making WordPress.org

Ticket #5606: 5606.diff

File 5606.diff, 1.6 KB (added by mkaz, 3 years ago)
  • wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/import-block-editor.php

    diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/import-block-editor.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/import-block-editor.php
    index e04b5b9e6..cb3c17db3 100644
    a b class DevHub_Block_Editor_Importer extends DevHub_Docs_Importer { 
    55         * Initializes object.
    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(
    1111                        'blocks',
    class DevHub_Block_Editor_Importer extends DevHub_Docs_Importer { 
    286286        }
    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.
    292292         * @param int    $post_id The post ID.
    class DevHub_Block_Editor_Importer extends DevHub_Docs_Importer { 
    294294         */
    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
    300300                return $link;