Making WordPress.org

Changeset 11920


Ignore:
Timestamp:
06/16/2022 02:15:44 AM (22 months ago)
Author:
dd32
Message:

Translate: Correct the link to the wporg-gutenberg strings in the wordpress-org project.

See https://make.wordpress.org/meta/2022/06/16/gutenberg-landing-page-launched/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/helper-functions.php

    r11740 r11920  
    351351 */
    352352function wporg_references_wordpress_org_github( $source_url, $project, $file, $line ) {
    353     if (
    354         'meta/wordpress-org' === $project->path &&
    355         str_starts_with( $file, 'mu-plugins/' ) &&
    356         ! str_starts_with( $file, 'mu-plugins/pub/' )
    357     ) {
    358         $source_url = "https://github.com/WordPress/wporg-mu-plugins/blob/trunk/{$file}#L{$line}";
     353    if ( 'meta/wordpress-org' === $project->path ) {
     354        // wporg-mu-plugins is mu-plugins/ based, but NOT those in mu-plugins/pub
     355        if ( str_starts_with( $file, 'mu-plugins/' ) && ! str_starts_with( $file, 'mu-plugins/pub/' ) ) {
     356            $source_url = "https://github.com/WordPress/wporg-mu-plugins/blob/trunk/{$file}#L{$line}";
     357
     358        // wporg-gutenberg theme is pretty unique path..
     359        } elseif ( str_contains( $file, '/themes/wporg-gutenberg/' ) ) {
     360            $source_url = "https://github.com/WordPress/wporg-gutenberg/blob/trunk/{$file}#L{$line}";
     361        }
    359362    }
    360363
Note: See TracChangeset for help on using the changeset viewer.