Changeset 11920
- Timestamp:
- 06/16/2022 02:15:44 AM (3 years ago)
- 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 351 351 */ 352 352 function 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 } 359 362 } 360 363
Note: See TracChangeset
for help on using the changeset viewer.