File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -962,7 +962,7 @@ public function get_matching_ad_code( $tag_id ) {
962962
963963 // Don't run the conditional if the conditional function doesn't exist or
964964 // isn't in our whitelist
965- if ( !function_exists ( $ cond_func ) || !in_array ( $ cond_func , $ this ->whitelisted_conditionals ) )
965+ if ( !is_callable ( $ cond_func ) || !in_array ( $ cond_func , $ this ->whitelisted_conditionals ) )
966966 continue ;
967967
968968 // Run our conditional and use any arguments that were passed
Original file line number Diff line number Diff line change @@ -224,8 +224,8 @@ function column_id( $item ) {
224224 $ column_id = 'acm-column[ ' . $ slug . '] ' ;
225225 $ output .= '<label for=" ' . esc_attr ( $ column_id ) . '"> ' . esc_html ( $ slug ) . '</label> ' ;
226226 // Support for select dropdowns
227- $ ad_code_args = $ ad_code_manager ->current_provider ->ad_code_args ;
228- $ ad_code_arg = array_shift ( wp_filter_object_list ( $ ad_code_args, array ( ' key ' => $ slug ) ) );
227+ $ ad_code_args = wp_filter_object_list ( $ ad_code_manager ->current_provider ->ad_code_args , array ( ' key ' => $ slug ) ) ;
228+ $ ad_code_arg = array_shift ( $ ad_code_args );
229229 if ( isset ( $ ad_code_arg ['type ' ] ) && 'select ' == $ ad_code_arg ['type ' ] ) {
230230 $ output .= '<select name=" ' . esc_attr ( $ column_id ) . '"> ' ;
231231 foreach ( $ ad_code_arg ['options ' ] as $ key => $ label ) {
You can’t perform that action at this time.
0 commit comments