Making WordPress.org

Changeset 11951


Ignore:
Timestamp:
07/08/2022 02:02:32 AM (2 years ago)
Author:
dd32
Message:

Make: CLI Handbook: Switch from the master branch to the main branch.

Props Ipstenu, danielbachhuber, dd32.
Fixes #6394.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-cli/inc
Files:
2 edited

Legend:

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

    r8197 r11951  
    117117        }
    118118        if ( 'github.com' !== parse_url( $markdown_source, PHP_URL_HOST )
    119             || false !== stripos( $markdown_source, '/edit/master/' ) ) {
     119            || false !== stripos( $markdown_source, '/edit/main/' ) ) {
    120120            return $markdown_source;
    121121        }
    122         $markdown_source = str_replace( '/blob/master/', '/edit/master/', $markdown_source );
     122        $markdown_source = str_replace( '/blob/main/', '/edit/main/', $markdown_source );
    123123        return $markdown_source;
    124124    }
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-cli/inc/class-markdown-import.php

    r5489 r11951  
    88class Markdown_Import {
    99
    10     private static $handbook_manifest = 'https://raw.githubusercontent.com/wp-cli/handbook/master/bin/handbook-manifest.json';
     10    private static $handbook_manifest = 'https://raw.githubusercontent.com/wp-cli/handbook/main/bin/handbook-manifest.json';
    1111    private static $input_name = 'wporg-cli-markdown-source';
    1212    private static $meta_key = 'wporg_cli_markdown_source';
Note: See TracChangeset for help on using the changeset viewer.