Plugin Directory

Changeset 3429755


Ignore:
Timestamp:
12/30/2025 05:49:28 PM (3 months ago)
Author:
martin7ba
Message:

Potential bug fix where hidden posts do not show in the admin area

Location:
whp-hide-posts/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • whp-hide-posts/trunk/README.md

    r3401474 r3429755  
    7474== Changelog ==
    7575
     76= 2.1.1 =
     77_Release Date - 30 December 2025_
     78
     79- Potential bug fix where hidden posts do not show in the admin area.
     80
    7681= 2.1.0 =
    7782_Release Date - 24 November 2025_
  • whp-hide-posts/trunk/inc/class-post-hide.php

    r3401474 r3429755  
    6161     */
    6262    public function hide_from_rest_api( $args, $request ) {
     63        // Don't hide posts in admin context (edit mode).
     64        if ( 'edit' === $request->get_param( 'context' ) ) {
     65            return $args;
     66        }
     67
    6368        if ( ! in_array( $args['post_type'], $this->enabled_post_types, true ) ) {
    6469            return $args;
  • whp-hide-posts/trunk/whp-hide-posts.php

    r3401474 r3429755  
    55 * Author:      MartinCV
    66 * Author URI:  https://www.martincv.com
    7  * Version:     2.1.0
     7 * Version:     2.1.1
    88 * Text Domain: whp-hide-posts
    99 *
     
    4949     * @var string
    5050     */
    51     private $version = '2.1.0';
     51    private $version = '2.1.1';
    5252
    5353    /**
Note: See TracChangeset for help on using the changeset viewer.