Add missing filters to fictioneer_get_content_field
This commit is contained in:
parent
b833e8a2de
commit
73f2573e35
@ -1079,11 +1079,15 @@ if ( ! function_exists( 'fictioneer_get_content_field' ) ) {
|
||||
$content = get_post_meta( $post_id ?? get_the_ID(), $field, true );
|
||||
|
||||
// Apply default filter functions from the_content (but nothing else)
|
||||
$content = do_blocks( $content );
|
||||
$content = wptexturize( $content );
|
||||
$content = convert_chars( $content );
|
||||
$content = wpautop( $content );
|
||||
$content = shortcode_unautop( $content );
|
||||
$content = prepend_attachment( $content );
|
||||
$content = wp_replace_insecure_home_url( $content );
|
||||
$content = wp_filter_content_tags( $content );
|
||||
$content = convert_smilies( $content );
|
||||
|
||||
// Return formatted/filtered content
|
||||
return $content;
|
||||
|
10
stubs.php
10
stubs.php
@ -67,3 +67,13 @@ function wp_admin_notice( string $message, array $args = array() ) {}
|
||||
*/
|
||||
|
||||
function elementor_theme_do_location( $location ) {}
|
||||
|
||||
/**
|
||||
* Replaces insecure HTTP URLs to the site in the given content, if configured to do so.
|
||||
*
|
||||
* @param string $content Content to replace URLs in.
|
||||
*
|
||||
* @return string Filtered content.
|
||||
*/
|
||||
|
||||
function wp_replace_insecure_home_url( $content ) {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user