Plugin Directory

Changeset 2974689


Ignore:
Timestamp:
10/04/2023 11:26:03 AM (2 years ago)
Author:
Razzu
Message:

prevent interfering on other CPT

Location:
simple-masonry-layout
Files:
28 added
3 edited

Legend:

Unmodified
Added
Removed
  • simple-masonry-layout/trunk/includes/class.simple.masonry.admin.php

    r2968064 r2974689  
    183183    {
    184184        // Check if this is an autosave
    185         if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) return;
     185        if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
     186            return;
     187        }
    186188
    187189        // Check if the user has permission to edit the post
    188         if (!current_user_can('edit_post', $post_id)) return;
     190        if (!current_user_can('edit_post', $post_id)) {
     191            return;
     192        }
     193
     194        $post_type = get_post_type($post_id);
     195
     196        // Check the post type
     197        if ($post_type !==  self::POST_TYPE) {
     198            return;
     199        }
    189200
    190201        $post_title = get_post_field('post_title', $post_id);
  • simple-masonry-layout/trunk/readme.txt

    r2968064 r2974689  
    44Requires at least: 4.2
    55Tested up to: 6.3.1
    6 Stable tag: 2.0.1
     6Stable tag: 2.0.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5757== Changelog ==
    5858
     59= 2.0.2 =
     60
     61* prevent interfering on other CPT
     62
    5963= 2.0.1 =
    6064
  • simple-masonry-layout/trunk/simple-masonry-layout.php

    r2968064 r2974689  
    55 * Description: With simple shortcode, Masonry Layout in action.
    66 * Author: Raju Tako
    7  * Version: 2.0.1
     7 * Version: 2.0.2
    88 * Author URI: https://www.linkedin.com/in/raju-tako-b1067153/
    99 *
Note: See TracChangeset for help on using the changeset viewer.