WordPress.org

Making WordPress.org

Ticket #5912: 5912.diff

File 5912.diff, 2.2 KB (added by mkaz, 2 months 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 dd9ce2e5a..c65359899 100644
    a b class DevHub_Block_Editor_Importer extends DevHub_Docs_Importer { 
    5151
    5252                // Any handbook pages where the slug changes should be listed here.
    5353                $redirects = [
    54                         'tutorials/block-tutorial/block-controls-toolbars-and-inspector' => 'tutorials/block-tutorial/block-controls-toolbar-and-sidebar/',
    5554                        'components/server-side-render' => 'packages/packages-server-side-render',
    5655                        'reference-guides/block-api/versions' => 'reference-guides/block-api/block-api-versions',
    5756                        'how-to-guides/block-theme' => 'how-to-guides/themes/create-block-theme',
    class DevHub_Block_Editor_Importer extends DevHub_Docs_Importer { 
    6463                        'developers/richtext' => 'reference-guides/richtext',
    6564                        'developers/accessibility' => 'how-to-guides/accessibility',
    6665                        'developers/feature-flags' => 'how-to-guides/feature-flags',
    67                         'tutorials/devenv' => 'handbook/tutorials/devenv',
    68                         'tutorials/devenv/docker-ubuntu' => 'handbook/tutorials/devenv/docker-ubuntu',
     66                        'tutorials/devenv' => 'getting-started/devenv',
     67                        'tutorials/devenv/docker-ubuntu' => 'getting-started/devenv/docker-ubuntu',
    6968                        'tutorials/block-based-theme' => 'how-to-guides/themes/block-theme-overview',
    7069                ];
    7170
    class DevHub_Block_Editor_Importer extends DevHub_Docs_Importer { 
    8584                        'developers/platform/' => 'how-to-guides/platform/',
    8685                        'developers/slotfills/' => 'reference-guides/slotfills/',
    8786                        'developers/themes/' => 'how-to-guides/themes/',
     87                        'handbook/tutorials/' => 'getting-started/'
    8888                        'packages/' => 'reference-guides/packages/',
    89                         'tutorials/create-block/' => 'handbook/tutorials/create-block/',
     89                        'tutorials/create-block/' => 'getting-started/create-block/',
    9090                        'tutorials/plugin-sidebar-0/' => 'how-to-guides/sidebar-tutorial/',
    9191                        'tutorials/' => 'how-to-guides/',
    9292                ];