Making WordPress.org

Changeset 11422


Ignore:
Timestamp:
01/09/2022 10:46:59 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Developer, Block Editor: Update old URLs to avoid an extra redirect.

This updates the old designers-developers/developers part of the URL in Markdown replacements to the new reference-guide location.

Follow-up to [8689].

Props mkaz.
Fixes #6018.

File:
1 edited

Legend:

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

    r11392 r11422  
    274274        $markdown = preg_replace(
    275275            '@(\[.*?\])\(/packages/components/?(#.*?)?\)@i',
    276             '$1(https://developer.wordpress.org/block-editor/designers-developers/developers/components/$2)',
     276            '$1(https://developer.wordpress.org/block-editor/reference-guide/components/$2)',
    277277            $markdown
    278278        );
     
    281281        $markdown = preg_replace(
    282282            '@(\[.*?\])\(/packages/components/(src/)?(.*?)/?(#.*?)?\)@i',
    283             '$1(https://developer.wordpress.org/block-editor/designers-developers/developers/components/$3/$4)',
     283            '$1(https://developer.wordpress.org/block-editor/reference-guide/components/$3/$4)',
    284284            $markdown
    285285        );
     
    288288        $markdown = preg_replace(
    289289            '@(\[.*?\])\(/packages/(.*?)/?(#.*?)?\)@i',
    290             '$1(https://developer.wordpress.org/block-editor/designers-developers/developers/packages/packages-$2/$3)',
     290            '$1(https://developer.wordpress.org/block-editor/reference-guide/packages/packages-$2/$3)',
    291291            $markdown
    292292        );
Note: See TracChangeset for help on using the changeset viewer.