OneSignal-WordPress-Plugin
OneSignal-WordPress-Plugin copied to clipboard
send_onesignal_notification checkbox does not correctly display when onesignal_send_notification set to false
Description: The send_onesignal_notification checkbox is always checked on the edit post page if the global send notification is enable and the post page is enabled.
Steps to Reproduce Issue:
- ensure global notification_on_post config is set true
- create a new post
- uncheck send_onesignal_notification checkbox
- click save draft
- observe checkbox is re-checked
Anything else: It seems that get_post_meta returns '' for both false and null, making it impossible to tell if the user has explicitly set onesignal_send_notification to false. Does it make sense to change the meta valuse to 0 and 1 or something like that?