Modifies shortcode attributes from advanced iframe which causes errors!
-
Hi,
A user of advanced iframe reported that my plugin does not work properly anymore when the plus blocks are installed.
After checking I found out that this plugin does modify the $attr attribute of advanced iframe!!
printing the $attr gives this: print_r($atts) =>
Array ( [src] =>?https://www.atmosud.org/widget-mon-air/widget/commune/83050?[width] => 100% [height] => 373px [disRule] => all [displayRules] => Array ( [0] => stdClass Object ( [_key] => 0 [displayKey] => authentication [tpgb_authentication_value] => authenticated [tpgb_role_value] => administrator [tpgb_os_value] => iphone [tpgb_browser_value] => ie [assigOpr] => is [tpgb_startdate_value] => 2021-10-13 [tpgb_enddate_value] => 2021-10-15 [tpgb_time_value] => 12:00 [tpgb_day_value] => [] [tpgb_post_type_value] => [] [tpgb_page_value] => [] [tpgb_post_value] => [] [tpgb_taxonomy_archive_value] => [] [tpgb_single_terms_value] => [] [tpgb_author_archive_value] => [] [tpgb_post_type_archive_value] => [] [tpgb_static_page_value] => home [tpgb_date_archive_value] => day [tpgb_search_results_value] => [tpgb_single_archive_value] => [] [tpgb_acf_text_name] => [] [tpgb_acf_text_value] => [tpgb_acf_select_name] => [] [tpgb_acf_select_value] => [tpgb_acf_button_group_name] => [] [tpgb_acf_button_group_value] => [tpgb_acf_boolean_name] => [] [tpgb_acf_boolean_value] => true [tpgb_acf_datetime_name] => [] [tpgb_acf_datetime_value] => ) ) [add_surrounding_p] => false [enable_lazy_load] => false [hide_content_until_iframe_color] => )
So you add tpgb_* stuff to other plugins shortcodes ? I check all elements for vulnerabilities and an unknown structure in the middle of if is killing this. I have to filter this in my latest version because of your plugin!
Still: Why do you modify shortcodes of other plugins? Stop doing this asap! You might break a lot of other plugins as well. Please change your code so it does not influence others!
Best regards, Michael
- The topic ‘Modifies shortcode attributes from advanced iframe which causes errors!’ is closed to new replies.