edmyersjr
Forum Replies Created
-
We’re having the same issue. Thanks for the temporary fix while we wait for the plugin author @boonebgorges!
I ran into this issue on an urgent project for a site running PHP 7.1.
The issue appears to be in the validate(…) method in ~/includes/abstracts/admin_page.php
$sanitized is initialized as a string (line 182), and then the foreach loop attempts to access named offsets as if it were an array (line 186).
I was able to resolve the issue by making a small modification:
public function validate( $settings ) { $sanitized; //untyped declaration if ( is_array( $settings ) ) { $sanitized = array(); //initialize as array foreach ( $settings as $k => $v ) { $sanitized[ $k ] = simcal_sanitize_input( $v ); } } else { $sanitized = ''; //initialize as string $sanitized = simcal_sanitize_input( $settings ); } return $sanitized; }
@nickyoung87, maybe you can take a look for the next release?
Sorry for the delay getting back to you, didn’t see your reply until today.
Exactly right. With a small change you can use:
[youtube url=”https://www.youtube.com/watch?v=123456″%5D
OR
[youtube id=”123456″]
either one would work. How I implemented was a little sloppy – you would probably do a better job of it – but I’ll do a pull request this weekend when I have a minute so you can take a look
When I put the urls on their own lines (without shortcode), the standard embed was taking over.
IFTTT watches the youtube rss feed for new videos, when one is created, it creates a post. You have access to the video title, description, url, and embed code to use in creating the post.
Forum: Plugins
In reply to: [WPSSO Core - Complete and Optimized Structured Data SEO] Green Admin IconActually I just tried and unfortunately it didn’t work. If I have wp_debug turned on I see the following notice:
Notice: Constant WPSSO_MENU_ICON_HIGHLIGHT already defined in /users/edmyersjr/box sync/projects/bucks sports chiropractic/prototype/cms/wp-config.php on line 86
Forum: Plugins
In reply to: [WPSSO Core - Complete and Optimized Structured Data SEO] Green Admin IconAwesome! Thanks!!