Skip to content

Commit

Permalink
removed unnecessary control type check inside the classic control class
Browse files Browse the repository at this point in the history
  • Loading branch information
Fellan-91 committed Oct 14, 2024
1 parent 9ae7efa commit bd2fbad
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions controls/classic_editor/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,8 @@ public function get_script_depends() {
*/
// phpcs:ignore
public function filter_control_value( $value, $control_data, $block_data, $context ) {
if ( 'classic_editor' === $control_data['type'] ) {
global $wp_embed;
$value = $wp_embed->autoembed( $value );
}
global $wp_embed;
$value = $wp_embed->autoembed( $value );

return $value;
}
Expand Down

0 comments on commit bd2fbad

Please sign in to comment.