You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to edit...@googlegroups.com
I mean we certainly could write one that just does exactly that ternary operation. Perhaps you also pass in a default value rather than just always setting it to an empty string. But just curious if WP has something like that or if they also use isset all over the place when getting stuff out of $_GET and $_POST.
Daniel Bachhuber
unread,
Oct 26, 2010, 9:42:32 AM10/26/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to edit...@googlegroups.com
Core seems to use a lot of isset() and !empty(). It also appears their logic is set so that no other code executes unless the conditions are met (e.g. they don't have to set the variable to a null value