enchamun
Forum Replies Created
-
Forum: Plugins
In reply to: [WP YouTube Lyte] YouTube API Request Error FixAfter some test here another solution for the weird alphanumeric error. You need a alphanumeric key without underscore…. Therefore create a new YouTube API v3 key, but NOT with the + Credentials Button. Go to Library add the YouTube API v3 again, the following generated key is “whooop!” alphanumeric.
Hi Twentig…
At first: Nice and useful Plugin!
I Can’t provide a link… After checking the full error log its not a bug in the Twentig Plugin. But maybe it will appear again, because of other plugin calls..
It’s a Issue of backward compatibility with other Plugins, since 4.5.0 the get_the_excerpt hook accepts 2 arguments, and i predict there are a lot of plugins or custom functions with only 1 argument in the hook call .
https://developer.ww.wp.xz.cn/reference/hooks/get_the_excerpt/
In my case it’s the Plugin
custom-content-shortcode/
and the call includes/core/content.php in row 1888:
$result = apply_filters('get_the_excerpt', $result);The missing $post Object is global…
Greets
bug:
function twentig_add_more_to_excerpt( $excerpt, $post ) {Fix?:
function twentig_add_more_to_excerpt( $excerpt) {
global $post;