Plugin Directory

Changeset 3213944


Ignore:
Timestamp:
12/27/2024 07:53:25 PM (12 months ago)
Author:
martin7ba
Message:

Version 2.0

Location:
whp-hide-posts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • whp-hide-posts/tags/2.0/inc/class-post-hide.php

    r3213937 r3213944  
    6363        }
    6464
    65         $hidden_ids = whp_plugin()->get_hidden_posts_ids( $args['post_type'], 'rest_api' );
     65        $data_migrated = get_option( 'whp_data_migrated', false );
     66
     67        $fallback = ! $data_migrated;
     68
     69        $hidden_ids = whp_plugin()->get_hidden_posts_ids( $args['post_type'], 'rest_api', $fallback );
    6670
    6771        if ( ! empty( $hidden_ids ) ) {
  • whp-hide-posts/trunk/inc/class-post-hide.php

    r3213937 r3213944  
    6363        }
    6464
    65         $hidden_ids = whp_plugin()->get_hidden_posts_ids( $args['post_type'], 'rest_api' );
     65        $data_migrated = get_option( 'whp_data_migrated', false );
     66
     67        $fallback = ! $data_migrated;
     68
     69        $hidden_ids = whp_plugin()->get_hidden_posts_ids( $args['post_type'], 'rest_api', $fallback );
    6670
    6771        if ( ! empty( $hidden_ids ) ) {
Note: See TracChangeset for help on using the changeset viewer.