aspacecodyssey
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Fixing WordPress
In reply to: Keyboard shortcuts not working after updateHaving the same problem. Help!
EDIT AGAIN: Line 7 in lib/generator.php makes this plugin incompatible with any custom created role.
if ( !current_user_can( 'author' ) && !current_user_can( 'editor' ) && !current_user_can( 'administrator' ) )This means only those 3 user roles can use the plugin. Removing the line completely or adding your custom role to the list will fix it, however this is not permanent because a plugin update will nix this fix. I’m not sure what the proper fix would be.
EDIT: Scratch that, it’s a “roles” problem. I am using the “Members” plugin and it’s any *created* non-admin role (i.e. it works for the other default roles). Still, is there a fix?
UPDATE: Solved by replacing the youtube section in media.php with:
if ( $video_url['host'] == 'youtube.com' || $video_url['host'] == 'www.youtube.com' ) { $video_url = str_replace('&','&',$video_url); parse_str( $video_url['query'], $youtube ); if ($youtube['autoplay'] == '1') { $autoplay = '?autoplay=1'; } $id = uniqid( '', false ); $return = ' <iframe width="' . $width . '" height="' . $height . '" src="http://www.youtube.com/embed/' . $youtube['v'] . $autoplay . '" frameborder="0" allowfullscreen="true"></iframe> '; }
Viewing 4 replies - 1 through 4 (of 4 total)