[Plugin: Prism Syntax Highlighter (detached)] Bug with handler.php
-
There is a bug in handler.php at least with my version of php
Fatal error: Cannot access self:: when no class scope is active in /wp-content/plugins/prism-detached/lib/Prism/Detached/Shortcode/Handler.php on line 125
I changed self to Prism_Detached_Shortcode_Handler and it seems to work ok.
I’m running PHP Version 5.3.2-1ubuntu4.18public static function register () { add_shortcode('prism', function ($attributes) { //$shortCode = new self($attributes); $shortCode = new Prism_Detached_Shortcode_Handler($attributes); return $shortCode->handle(); } ); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Prism Syntax Highlighter (detached)] Bug with handler.php’ is closed to new replies.