PHP custom code is not loaded during AJAX requests
-
Hello,
Thank you for your plugin.
I noticed that PHP custom codes are not loaded during AJAX requests even when the custom code is set to load “Everywhere”.
I am a developer so I can help you fixing this issue. The problem comes from this file: lib/release-codes.php lines 263: https://plugins.trac.wordpress.org/browser/custom-codes/trunk/lib/release-codes.php#L263
if ( file_exists( $file_directory ) && 'default' === $editor_location && !defined( 'DOING_AJAX' ) ) {Can you please change this line to the following?
if ( file_exists( $file_directory ) && 'default' === $editor_location && ( ! defined( 'DOING_AJAX' ) || 'everywhere' === $location ) ) {This will allow PHP custom codes to be loaded during AJAX requests as well if it is set as “Everywhere”.
Thank you 🙂
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.