Plugin Directory

Changeset 2828936


Ignore:
Timestamp:
12/05/2022 09:17:43 PM (3 years ago)
Author:
plnic
Message:

tagged 1.3.8

Location:
punchlist
Files:
3 edited
46 copied

Legend:

Unmodified
Added
Removed
  • punchlist/tags/1.3.7/trunk/src/Preview.php

    r2642586 r2828936  
    6767    public static function showPreview($query)
    6868    {
    69         if ($_GET['pluid'] && $_GET['post_to_preview'] && self::verifyPreviewCode($_GET['post_to_preview'], $_GET['pluid'])) {
     69        if (isset($_GET['pluid']) && isset($_GET['post_to_preview']) && self::verifyPreviewCode($_GET['post_to_preview'], $_GET['pluid'])) {
    7070            add_filter('posts_results', [__CLASS__, 'makePostViewable'], 10, 2);
    7171        }
  • punchlist/tags/1.3.8/trunk/src/Preview.php

    r2642586 r2828936  
    6767    public static function showPreview($query)
    6868    {
    69         if ($_GET['pluid'] && $_GET['post_to_preview'] && self::verifyPreviewCode($_GET['post_to_preview'], $_GET['pluid'])) {
     69        if (isset($_GET['pluid']) && isset($_GET['post_to_preview']) && self::verifyPreviewCode($_GET['post_to_preview'], $_GET['pluid'])) {
    7070            add_filter('posts_results', [__CLASS__, 'makePostViewable'], 10, 2);
    7171        }
  • punchlist/trunk/src/Preview.php

    r2642586 r2828936  
    6767    public static function showPreview($query)
    6868    {
    69         if ($_GET['pluid'] && $_GET['post_to_preview'] && self::verifyPreviewCode($_GET['post_to_preview'], $_GET['pluid'])) {
     69        if (isset($_GET['pluid']) && isset($_GET['post_to_preview']) && self::verifyPreviewCode($_GET['post_to_preview'], $_GET['pluid'])) {
    7070            add_filter('posts_results', [__CLASS__, 'makePostViewable'], 10, 2);
    7171        }
Note: See TracChangeset for help on using the changeset viewer.