lesterchan/wp-draftsforfriends

admin_scripts() needs case insensitive testing on Windows

Closed this issue · 0 comments

In a Windows based server the jQuery and CSS is not enqueued since the following test fails
if( 'posts_page_wp-draftsforfriends/wp-draftsforfriends' == $hook_suffix )
as $hook_suffix is "posts_page_WP-DraftsForFriends/wp-draftsforfriends"

changing the test to strtolower( $hook_suffix ) resolves the problem.