Making WordPress.org


Ignore:
Timestamp:
03/11/2021 08:48:14 PM (4 years ago)
Author:
coffee2code
Message:

Markdown Importer: Recognize 'welcome' as a valid root page slug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-markdown/inc/class-importer.php

    r8848 r10810  
    8686        // Account for potential handbook landing page, which results in an empty $key.
    8787        if ( ! $key ) {
    88             if ( in_array( $post->post_name, [ 'handbook', $post->post_type, "{$post->post_type}-handbook" ] ) ) {
     88            if ( in_array( $post->post_name, [ 'handbook', $post->post_type, "{$post->post_type}-handbook", 'welcome' ] ) ) {
    8989                $key = $post->post_name;
    9090            }
Note: See TracChangeset for help on using the changeset viewer.