Skip to content

Commit

Permalink
fix: improper usage of the_content filter
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigoreMihai committed Mar 12, 2024
1 parent 70b17c6 commit d9c64e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions classes/input-meta.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* @version 1.0
*/

/*
**========== Block direct access ===========
/*
**========== Block direct access ===========
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
Expand Down Expand Up @@ -69,7 +69,8 @@ function desc() {
// old Filter
$desc = apply_filters( 'ppom_description_content', $desc, self::$input_meta );
$desc = apply_filters( 'ppom_input_meta_desc', $desc, self::$input_meta );
return apply_filters( 'the_content', $desc );

return do_shortcode($desc);
}


Expand Down
6 changes: 3 additions & 3 deletions classes/legacy-meta.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* @version 21.2
*/

/*
**========== Block direct access ===========
/*
**========== Block direct access ===========
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
Expand Down Expand Up @@ -71,7 +71,7 @@ function desc() {

// old Filter
$desc = apply_filters( 'ppom_description_content', $desc, self::$input_meta );
return apply_filters( 'the_content', $desc );
return do_shortcode($desc);
}


Expand Down

0 comments on commit d9c64e6

Please sign in to comment.