Plugin Directory

Changeset 3004495


Ignore:
Timestamp:
12/02/2023 09:09:12 AM (2 years ago)
Author:
Bueltge
Message:

Fix php notice

Location:
adminimize
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • adminimize/tags/1.11.10/adminimize.php

    r3004113 r3004495  
    283283    }
    284284    if ( ! isset( $current_post_type ) || empty( $current_post_type ) ) {
    285         $current_post_type = get_post_type($post->ID);
     285        $current_post_type = get_post_type( get_queried_object_id() );
    286286    }
    287287    if ( ! isset( $current_post_type ) || empty( $current_post_type ) ) {
  • adminimize/trunk/adminimize.php

    r3004114 r3004495  
    283283    }
    284284    if ( ! isset( $current_post_type ) || empty( $current_post_type ) ) {
    285         $current_post_type = get_post_type($post->ID);
     285        $current_post_type = get_post_type( get_queried_object_id() );
    286286    }
    287287    if ( ! isset( $current_post_type ) || empty( $current_post_type ) ) {
Note: See TracChangeset for help on using the changeset viewer.