Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Developer Actions and Filters #766

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removing filter syntax_highlighting_code_block_pre_start_tag
Remove filter `syntax_highlighting_code_block_pre_start_tag` as pre tag is not designed to have extra markup injected.
ronaldhuereca committed Oct 7, 2023
commit 5437aca83e61c639ac4e9ebcd9922f1907e75b36
13 changes: 0 additions & 13 deletions inc/functions.php
Original file line number Diff line number Diff line change
@@ -593,19 +593,6 @@ function ( $key, $value ) {
),
$pre_start_tag
);

/**
* Filter the start tag. Allow others to insert markup.
*
* @param string $pre_start_tag The `<pre>` start tag.
* @param string $element_id The ID of the element containing the language info.
* @param string $language_name The name of the language.
* @param string $language_slug The slug of the language.
* @param array $attributes Block attributes.
*
* @since 1.4.1
*/
$pre_start_tag = apply_filters( 'syntax_highlighting_code_block_pre_start_tag', $pre_start_tag, $element_id, $language_name, $attributes['language'], $attributes );
}
$end_tags .= '</pre>';