Plugin Directory

Changeset 3260579


Ignore:
Timestamp:
03/24/2025 06:50:32 AM (9 months ago)
Author:
Tomdever
Message:

wpForo v2.4.4 / Fix structured data issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wpforo/tags/2.4.4/includes/functions-template.php

    r3260571 r3260579  
    27372737                    if ( $paged === 1 && $key == 0 ) continue;
    27382738                    $post_member = wpforo_member( $post['userid'] );
    2739                     $post_text = wpforo_text( sanitize_text_field( $post['body'] ), 5000, false );
     2739                    $post_text = wpforo_text( stripslashes( sanitize_text_field( $post['body'] ) ), 5000, false );
    27402740                    $post_images = wpforo_generate_scheme_image_object( $post['body'] );
    27412741                    if( !$post_text && !$post_images ) continue;
     
    27682768                  "mainEntityOfPage": "' . esc_url_raw($topic['url']) . '",
    27692769                  "headline": "' . esc_attr( $topic_post['title'] ) . '",
    2770                   "text": "' . esc_attr( wpforo_text( sanitize_text_field( $topic_post['body'] ), 5000, false ) ) . '",
     2770                  "text": "' . esc_attr( wpforo_text( stripslashes( sanitize_text_field( $topic_post['body'] ) ), 5000, false ) ) . '",
    27712771                  ' . $topic_images . '
    27722772                  "url": "' . esc_url_raw($topic['url']) . '",
Note: See TracChangeset for help on using the changeset viewer.