-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rb192 #197
base: master
Are you sure you want to change the base?
Rb192 #197
Conversation
Eeep, sorry, I've only just got round to looking at this. (Pro 1.8.0 is now out the door, so I'm focussing on the next major of Event Organiser). Could I ask that you make the PR on the develop, I'm currently restructuring on how the repo is organised. The Also, with regards to defining functions, prefix functions with I'll add some additional comments Thanks for your help :). |
foreach( $bool_options as $option ){ | ||
$args[$option] = ( $args[$option] == 'false' ? false : true ); | ||
// Cast options as boolean: | ||
$boolean_keys = array_filter(eo_venue_map_defaults(), "is_bool"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like how the boolean keys are treated, but I think the defaults should be an array rather than a separate function. That way the default values are obvious within the function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see, defaults are used in two separate places. I see the reasoning now...
The default values, however are different for the function/shortcode (tooltip
as far as I can tell).
So this is the reworked pull-request.
It contains three issues:
#194
ryskajakub#1
ryskajakub#2
eo_get_venues_map
are specified two times.grunt uglify
task for minification of thefrontend.js
file, all the other.js
files got changed for some reason, too.