Plugin Directory

Changeset 3226503


Ignore:
Timestamp:
01/21/2025 09:28:01 PM (15 months ago)
Author:
skyword
Message:

Adjust escaping for iframe; fix issue of identifying previously published content

Location:
skyword-plugin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • skyword-plugin/tags/2.5.3/php/class-skyword-publish.php

    r3222464 r3226503  
    694694        $query = new WP_Query($args);
    695695        if ( $query->have_posts() ) :
    696             while ( $query->have_posts() ) : the_post();
     696            while ( $query->have_posts() ) : $query->the_post();
    697697                $str = get_the_ID();
    698698
     
    700700            endwhile;
    701701        else :
    702             $query = array(
     702            $args = array(
    703703                'ignore_sticky_posts' => true,
    704704                'meta_key'            => 'skyword_content_id',
     
    720720            $query = new WP_Query($args);
    721721            if ( $query->have_posts() ) :
    722             while ( $query->have_posts() ) : the_post();
     722            while ( $query->have_posts() ) : $query->the_post();
    723723                    $str = get_the_ID();
    724724
  • skyword-plugin/tags/2.5.3/php/class-skyword-shortcode.php

    r3224615 r3226503  
    8888            }
    8989            if (in_array($k, $validattrs, true) && isset($v)) {
    90                 $iframeattrs .= " " . esc_html($k) . "=\"" . esc_html($v) . "\"";
     90                $iframeattrs .= " " . esc_attr($k) . "=\"" . esc_attr($v) . "\"";
    9191            }
    9292        }
  • skyword-plugin/trunk/php/class-skyword-publish.php

    r3224292 r3226503  
    694694        $query = new WP_Query($args);
    695695        if ( $query->have_posts() ) :
    696             while ( $query->have_posts() ) : the_post();
     696            while ( $query->have_posts() ) : $query->the_post();
    697697                $str = get_the_ID();
    698698
     
    700700            endwhile;
    701701        else :
    702             $query = array(
     702            $args = array(
    703703                'ignore_sticky_posts' => true,
    704704                'meta_key'            => 'skyword_content_id',
     
    720720            $query = new WP_Query($args);
    721721            if ( $query->have_posts() ) :
    722             while ( $query->have_posts() ) : the_post();
     722            while ( $query->have_posts() ) : $query->the_post();
    723723                    $str = get_the_ID();
    724724
  • skyword-plugin/trunk/php/class-skyword-shortcode.php

    r3224615 r3226503  
    8888            }
    8989            if (in_array($k, $validattrs, true) && isset($v)) {
    90                 $iframeattrs .= " " . esc_html($k) . "=\"" . esc_html($v) . "\"";
     90                $iframeattrs .= " " . esc_attr($k) . "=\"" . esc_attr($v) . "\"";
    9191            }
    9292        }
Note: See TracChangeset for help on using the changeset viewer.