I need to display the language used and the button to copy the code, if it’s possible then how to do it?
]]>Hi there, thanks for the awesome plugin.
Sadly, upgrading to PHP8 broke the site. Can’t edit posts/pages.
Logs show this error.
2023/02/08 01:04:47 [error] 22978#22978: *499221 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: join(): Argument #2 ($array) must be of type ?array, string given in /www/name/public/wp-content/plugins/aph-prism-highlighter/includes/aphph-admin-editor.php:78
Stack trace:
#0 /www/name/public/wp-content/plugins/aph-prism-highlighter/includes/aphph-admin-editor.php(78): join(Array, ‘ / ‘)
#1 /www/name/public/wp-includes/class-wp-hook.php(308): Aphph_Admin_Editor->add_modal_dialog(”)
#2 /www/name/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)
#3 /www/name/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /www/name/public/wp-admin/admin.php(385): do_action(‘load-post.php’)
#5 /www/name/public/wp-admin/post.php(12): require_once(‘/www/name…’)
#6 {main}
thrown in /www/name/public/wp-content/plugins/aph-prism-highlighter/includes/aphph-admin-editor.php on line 78″ while reading response header from upstream, client: 23.16.80.170, server: name.com, request: “GET /wp-admin/post.php?post=7600&action=edit HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php8.0-fpm-name.sock:”, host: “name.com:23961”, referrer: “https://name.com/wp-admin/edit.php?s=hiring&post_status=all&post_type=post&action=-1&m=0&cat=0&seo_filter&readability_filter&paged=1&action2=-1”
]]>Hello. How do I change the block at the beginning of the COY theme code? Color and size? Can’t find the CSS I’m looking for? https://ibb.co/m41hPk2
]]>The additional CSS classes doesn’t appear from the Block setting. From classic editor it does.
]]>It would be great if we could use this with Elementor. Right now we can only use it with the default WordPress Editor. Thanks
]]>Hi,
I’m really liking this plugin, though I’ve found a tiny issue on the settings page when WP_PLUGIN_URL
is defined as root relative. For instance I have in wp-config
define( 'WP_PLUGIN_URL', '/addons' );
So in the admin where file_get_contents is called it is looking in the file system not at an absolute web URL.
Changing line 77 to:
$prism_js_file_contents = file_get_contents( plugin_dir_path( __FILE__ ) . 'js/prism.js' );
Should resolve it and still work for more traditional installs.
Thanks
Phil
Hi,
that’s very nice plugin. However, it breaks custom post types that does not support editor ( content ). It throws an JavaScript error:
QTags is not defined aphph-admin-editor.js line 26
It needs at least check before that line:
if(typeof variable !== 'undefined')
to work.
Would love to get it fixed in a patch.
]]>Hey,
Kudos. This is a nice modern, lightweight syntax highlighter. However, I did noticed a bunch of PHP notices on your settings page:
Notice: Undefined variable: lang_key in /srv/www/gpdf-internal/htdocs/web/app/plugins/aph-prism-highlighter/includes/aphph-admin.php on line 388
Notice: Undefined index: options in /srv/www/gpdf-internal/htdocs/web/app/plugins/aph-prism-highlighter/includes/aphph-admin.php on line 464
Would love to get them cleaned up in a patch.
]]>I am trying to apply this filter to a custom field but am not having any luck. Right now it will only filter”the_content”. Is there a function I can use to filter my custom fields and add the markup? I am using Advanced Custom Fields to build them.
]]>