Я тут отлаживаю свою версию плагина Crayon Syntax Highlighter, который я форкнул в этом году. Выяснил, что для отладки плагинов в WordPress, нужно в “wp-config.php” прописать следующее:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
/** * For developers: WordPress debugging mode. * * Change this to true to enable the display of notices during development. * It is strongly recommended that plugin and theme developers use WP_DEBUG * in their development environments. */ define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); // Disable display of errors and warnings define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 ); // Use dev versions of core JS and CSS files (only needed if you are modifying these core files) define( 'SCRIPT_DEBUG', true ); |
Тогда вы сможете видеть все сообщения об ошибках.