Skip to content

Commit

Permalink
Remove references to old theme
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwoodnz committed Aug 9, 2024
1 parent 0f3333c commit 39c9a44
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<exclude-pattern>*/build/*</exclude-pattern>

<!-- Exclude all themes except the learn theme -->
<exclude-pattern>/wp-content/themes/pub/(?!wporg-learn-2020|wporg-learn-2024)</exclude-pattern>
<exclude-pattern>/wp-content/themes/pub/(?!wporg-learn-2024)</exclude-pattern>

<!-- Exclude all plugins except the learn plugin -->
<exclude-pattern>/wp-content/plugins/(?!wporg-learn)</exclude-pattern>
Expand Down
4 changes: 0 additions & 4 deletions wp-content/plugins/wporg-learn/inc/locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,6 @@ function wporg_archive_query_prioritize_locale( $clauses, $query ) {
$current_theme = wp_get_theme();
$theme_slug = $current_theme->get_stylesheet();

if ( 'pub/wporg-learn-2020' === $theme_slug ) {
return $clauses;
}

if ( $query->is_post_type_archive( 'course' ) || $query->is_post_type_archive( 'lesson' ) || $query->is_post_type_archive( 'lesson-plan' ) ) {
return wporg_query_prioritize_locale( $clauses, $locale );
}
Expand Down
2 changes: 1 addition & 1 deletion wp-content/plugins/wporg-learn/wporg-learn.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Plugin name: WordPress.org Learn
* Description: Functionality for learn.wordpress.org. See also the wporg-learn-2020 theme.
* Description: Functionality for learn.wordpress.org. See also the wporg-learn-2024 theme.
* Version: 1.0.0
* Author: WordPress.org
* Author URI: http://wordpress.org/
Expand Down

0 comments on commit 39c9a44

Please sign in to comment.