• Resolved musicman847

    (@musicman847)


    After updating to WP 6.5, the output of this function is the string “array”.

    function generate_custom_post($customtext) {
    global $post;
    if ( '' == $customtext ) {
    $customtext = get_the_content('');
    $customtext = apply_filters('the_content', $customtext);
    }
    return $customtext;
    }
    
    add_shortcode( 'custom_post', 'generate_custom_post' );

    Before, it outputted the entire content of the post in my customized way. I reverted to WP 6.43 and things work fine. Any ideas why this might happen in the WP 6.5? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Did you perform a plugin conflict test? It appears the plugin associated with you code snippet could be the issue (i.e., is not compatible with WP 6.5).

    Thread Starter musicman847

    (@musicman847)

    Yes, I disabled every single plugin. After creating a staging site and disabling every plugin, and activating the default theme, the problem still persists. Is it possible that WP 6.5 would evaluate this function differently? Thanks.

    It appears a good samaritan solved your issue. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issue With WP 6.5’ is closed to new replies.