Skip to content

Commit

Permalink
Dont include WP on widget page (#71)
Browse files Browse the repository at this point in the history
Co-authored-by: Stephane Bisson <[email protected]>
  • Loading branch information
stephanebisson and Stephane Bisson authored Feb 6, 2023
1 parent d0a9320 commit 9a763f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wikipediapreview.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
DEFINE( 'WIKIPEDIA_PREVIEW_PLUGIN_VERSION', '1.6.0' );

function wikipediapreview_enqueue_scripts() {
if ( ! in_array( get_post_type(), array( 'post', 'page' ), true ) ) {
return;
}
$build_dir = plugin_dir_url( __FILE__ ) . 'build/';
$libs_dir = plugin_dir_url( __FILE__ ) . 'libs/';
$media_type_all = 'all';
Expand Down

0 comments on commit 9a763f6

Please sign in to comment.