Plugin Directory


Ignore:
Timestamp:
11/10/2026 04:01:40 PM (2 weeks ago)
Author:
shihabsoft
Message:

Version 1.5.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • copy-delete-posts/trunk/menu/variables.php

    r3455545 r3794746  
    134134  </script>
    135135  <div class="cdp-copy-alert-success" style="top: -28px; opacity: 0; display: none;">
    136     <img src="<?php echo $cdp_plug_url ?>/assets/imgs/copy.png" alt="<?php _e('Successfull copy image', 'copy-delete-posts'); ?>">
     136    <img src="<?php echo esc_url($cdp_plug_url) ?>/assets/imgs/copy.png" alt="<?php _e('Successfull copy image', 'copy-delete-posts'); ?>">
    137137  </div>
    138138  <?php do_action('cdp_notices_special'); ?>
    … …  
    148148    <div class="cdp-spinner"></div>
    149149  </div>
    150   <input type="text" hidden id="cdp-purl" style="display: none; visibility: hidden;" value="<?php echo $cdp_plug_url ?>">
     150  <input type="text" hidden id="cdp-purl" style="display: none; visibility: hidden;" value="<?php echo esc_url($cdp_plug_url) ?>">
    151151  <?php if ($hideTT == true): ?>
    152152  <input type="text" hidden id="cdp-hideTT" style="display: none; visibility: hidden;" value="true">
    … …  
    154154
    155155  <?php if ($post_id != false): ?>
    156   <input type="text" hidden id="cdp-current-post-id" style="display: none; visibility: hidden;" value="<?php echo $post_id ?>">
     156  <input type="text" hidden id="cdp-current-post-id" style="display: none; visibility: hidden;" value="<?php echo esc_attr(intval($post_id)) ?>">
    157157  <?php endif;?>
    158158
    159   <?php if ($parent != false): ?>
    160   <input type="text" hidden id="cdp-original-post" style="display: none; visibility: hidden;" data-cdp-parent="<?php echo $parent['title'] ?>" data-cdp-parent-url="<?php echo $parent['link'] ?>">
     159  <?php if ($parent != false && is_array($parent)): ?>
     160  <input type="text" hidden id="cdp-original-post" style="display: none; visibility: hidden;" data-cdp-parent="<?php echo esc_attr(isset($parent['title']) ? $parent['title'] : '') ?>" data-cdp-parent-url="<?php echo esc_url(isset($parent['link']) ? $parent['link'] : '') ?>">
    161161  <?php endif;?>
    162162
Note: See TracChangeset for help on using the changeset viewer.