WordPress.org

Making WordPress.org

Changeset 6508


Ignore:
Timestamp:
02/01/2018 08:02:37 PM (4 years ago)
Author:
iandunn
Message:

WordCamp Post Type: Don't display admin notices on the "All WordCamps" screen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-admin.php

    r6506 r6508  
    10171017    public function print_admin_notices() {
    10181018        global $post;
    1019 
    1020         if ( empty( $post->post_type ) || WCPT_POST_TYPE_ID != $post->post_type ) {
     1019        $screen = get_current_screen();
     1020
     1021        if ( empty( $post->post_type ) || WCPT_POST_TYPE_ID != $post->post_type || 'post' !== $screen->base ) {
    10211022            return;
    10221023        }
Note: See TracChangeset for help on using the changeset viewer.