Skip to content

Commit

Permalink
Tutorial to Lesson conversion command: add linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Pinkle-pash committed Nov 27, 2024
1 parent aa273bb commit aad8ac9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<exclude-pattern>/wp-content/plugins/(?!wporg-learn)</exclude-pattern>

<!-- Exclude all mu-plugin files except the ones we're changing -->
<exclude-pattern>/wp-content/mu-plugins/pub/(?!locales.php)</exclude-pattern>
<exclude-pattern>/wp-content/mu-plugins/pub/(?!locales.php|wporg-learn-cli.php)</exclude-pattern>
<exclude-pattern>/wp-content/mu-plugins/wporg-mu-plugins</exclude-pattern>

<!-- Exclude alternate wp-content directories -->
Expand Down
2 changes: 1 addition & 1 deletion wp-content/mu-plugins/pub/wporg-learn-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private function process_url( $url, $is_dry_run, $blog_id ) {
WP_CLI::line( "Slug: $slug" );

// Get post by slug
$post = get_page_by_path( $slug, OBJECT, 'wporg_workshop');
$post = get_page_by_path( $slug, OBJECT, 'wporg_workshop' );

if ( ! $post ) {
restore_current_blog();
Expand Down

0 comments on commit aad8ac9

Please sign in to comment.