Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"phpstan/extension-installer": true
}
},
"require": {
"wp-media/apply-filters-typed": "^1.0"

},
Comment thread
Miraeld marked this conversation as resolved.
Outdated
"require-dev": {
"phpcompatibility/phpcompatibility-wp": "^2.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
Expand Down
15 changes: 12 additions & 3 deletions src/Controller/PluginFamily.php
Comment thread
Miraeld marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class PluginFamily implements PluginFamilyInterface {
*
* @var string
*/
private $version = '1.0.6';
private $version = '1.0.7';
Comment thread
jeawhanlee marked this conversation as resolved.
Outdated

/**
* Error transient.
Expand Down Expand Up @@ -467,10 +467,19 @@ static function ( $p ) {
)
);

return in_array( get_current_screen()->id, $allowed_screen_ids, true );
$can_enqueue = in_array( get_current_screen()->id, $allowed_screen_ids, true );
} else {
$can_enqueue = in_array( $page, $allowed_pages, true );
Comment thread
Miraeld marked this conversation as resolved.
Outdated
}

return in_array( $page, $allowed_pages, true );
/**
* Filters whether to show the Imagify banner on Media gallery components.
*
* @since 1.0.7
*
* @param bool $can_enqueue Whether to enqueue the admin assets and show the banner.
*/
return wpm_apply_filters_typed( 'bool', 'wpmedia_plugin_family_show_imagify_banner', $can_enqueue );
Comment thread
Miraeld marked this conversation as resolved.
Outdated
}

/**
Expand Down
Loading