Skip to content

Commit

Permalink
Stop Sensei using translated slugs for post types
Browse files Browse the repository at this point in the history
Run wporg_correct_sensei_slugs init callback at higher priority to ensure non translated slugs are used.

Fixes #2544
  • Loading branch information
adamwoodnz committed Jun 18, 2024
1 parent cc5a0f3 commit 950c381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-content/plugins/wporg-learn/inc/sensei.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
add_filter( 'sensei_load_default_supported_theme_wrappers', '__return_false' );
add_action( 'sensei_before_main_content', __NAMESPACE__ . '\theme_wrapper_start' );
add_action( 'sensei_after_main_content', __NAMESPACE__ . '\theme_wrapper_end' );
add_action( 'init', __NAMESPACE__ . '\wporg_correct_sensei_slugs' );
add_action( 'init', __NAMESPACE__ . '\wporg_correct_sensei_slugs', 9 );
add_filter( 'pre_render_block', __NAMESPACE__ . '\modify_course_query', 10, 2 );
add_filter( 'rest_course_query', __NAMESPACE__ . '\modify_course_rest_query', 10, 2 );

Expand Down

0 comments on commit 950c381

Please sign in to comment.