Plugin Directory

Changeset 3451137


Ignore:
Timestamp:
01/31/2026 07:40:56 PM (2 months ago)
Author:
precisionwp
Message:

1.5.2

  • Fixed: Posts meta box loading issue.
Location:
adminease/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • adminease/trunk/README.txt

    r3451135 r3451137  
    44Requires at least: 5.0
    55Tested up to: 6.9
    6 Stable tag: 1.5.1
     6Stable tag: 1.5.2
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    187187== Changelog ==
    188188
     189= 1.5.2 =
     190- Fixed: Posts meta box loading issue.
     191
    189192= 1.5.1 =
    190193- Fixed: Posts meta box loading issue.
  • adminease/trunk/adminease.php

    r3451135 r3451137  
    33 * Plugin Name: AdminEase
    44 * Description: Boosts your WordPress admin with tools for updates, security, performance, and user management - no coding required.
    5  * Version:     1.5.1
     5 * Version:     1.5.2
    66 * Author:      PrecisionWP
    77 * Author URI:  https://precisionwp.net/
     
    1515
    1616// Plugin constants.
    17 define( 'ADMINEASE_VERSION', '1.5.1' );
     17define( 'ADMINEASE_VERSION', '1.5.2' );
    1818define( 'ADMINEASE_NAME', 'AdminEase' );
    1919define( 'ADMINEASE_SLUG', 'adminease' );
  • adminease/trunk/composer.json

    r3451135 r3451137  
    33    "description": "AdminEase – free version",
    44    "type": "wordpress-plugin",
    5     "version": "1.5.1",
     5    "version": "1.5.2",
    66    "require": {
    77        "php": ">=7.4",
  • adminease/trunk/includes/Features/PostsMetadataBox.php

    r3451135 r3451137  
    1212class PostsMetadataBox {
    1313    private array $settings;
    14     private array $allowed_post_types;
    1514    private array $selected_post_types;
    1615   
     
    4039     */
    4140    public function init() {
    42         $default_post_types  = Utils::get_post_types( [ 'base', 'media' ] );
    43         $selected_post_types = isset( $this->settings['posts_metadata_box_post_types'] ) ? array_intersect_key( $this->allowed_post_types, array_flip( $this->settings['posts_metadata_box_post_types'] ) ) : $default_post_types;
    44        
    45         $this->allowed_post_types  = apply_filters( 'adminease_posts_metadata_box_allowed_post_types', Utils::get_post_types( [ 'base', 'media' ] ) );
    46         $this->selected_post_types = $selected_post_types;
     41        $default_post_types = Utils::get_post_types( [ 'base', 'media' ] );
     42       
     43        $allowed_post_types        = apply_filters( 'adminease_posts_metadata_box_allowed_post_types', $default_post_types );
     44        $this->selected_post_types = isset( $this->settings['posts_metadata_box_post_types'] ) ? array_intersect_key( $allowed_post_types, array_flip( $this->settings['posts_metadata_box_post_types'] ) ) : $default_post_types;
    4745    }
    4846   
Note: See TracChangeset for help on using the changeset viewer.