Skip to content

Commit

Permalink
fixes #7002
Browse files Browse the repository at this point in the history
as discussed with @wordpressfan switch rocket_lrc_processor  to regex if dom extension is not found
  • Loading branch information
alfonso100 committed Jan 8, 2025
1 parent cd0de84 commit 6ce0191
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function add_hashes( $html ) {
*
* @param string $processor The processor to use.
*/
$processor = wpm_apply_filters_typed( 'string', 'rocket_lrc_processor', 'dom' );
$processor = wpm_apply_filters_typed( 'string', 'rocket_lrc_processor', extension_loaded( 'dom' ) ? 'dom' : 'regex' );

$this->processor->set_processor( $processor );
$this->processor->get_processor()->set_exclusions( $this->get_exclusions() );
Expand Down

0 comments on commit 6ce0191

Please sign in to comment.