Changeset 2147705
- Timestamp:
- 08/29/2019 10:41:11 AM (7 years ago)
- Location:
- enable-wp-debug-from-admin-dashboard/trunk
- Files:
-
- 3 edited
-
_wp_config_addon.php (modified) (1 diff)
-
index.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
enable-wp-debug-from-admin-dashboard/trunk/_wp_config_addon.php
r2026819 r2147705 62 62 define("ewdfad_WP_DEBUG", ($vars==1 || $vars==2 || $vars==3)); 63 63 define("ewdfad_WP_DEBUG_DISPLAY", ($vars==2 || $vars==3) ); 64 define("ewdfad_WP_DEBUG_LOG S", ($vars==3) );64 define("ewdfad_WP_DEBUG_LOG", ($vars==3) ); 65 65 66 66 ?> -
enable-wp-debug-from-admin-dashboard/trunk/index.php
r2072634 r2147705 5 5 * Text Domain: enable-wp-debug-from-admin-dashboard 6 6 * Domain Path: /languages 7 * Version: 1. 707 * Version: 1.80 8 8 * WordPress URI: https://wordpress.org/plugins/enable-wp-debug-from-admin-dashboard/ 9 9 * Plugin URI: https://puvox.software/wordpress/ … … 93 93 "\r\n".' define("WP_DEBUG", ewdfad_WP_DEBUG);'. 94 94 "\r\n".' define("WP_DEBUG_DISPLAY", ewdfad_WP_DEBUG_DISPLAY);'. 95 "\r\n".' define("WP_DEBUG_LOG S", ewdfad_WP_DEBUG_LOGS);'.95 "\r\n".' define("WP_DEBUG_LOG", ewdfad_WP_DEBUG_LOG);'. 96 96 "\r\n".'}'. 97 97 "\r\n".$this->phrase_end. … … 104 104 $new_content= $wp_config_content; 105 105 $new_content= preg_replace($pattern('WP_DEBUG'), '//$0', $new_content); 106 $new_content= preg_replace($pattern('WP_DEBUG_LOG S'), '//$0', $new_content);106 $new_content= preg_replace($pattern('WP_DEBUG_LOG'), '//$0', $new_content); 107 107 $new_content= preg_replace($pattern('WP_DEBUG_DISPLAY'),'//$0', $new_content); 108 108 $new_content= preg_replace('/\/\* That\'s all, stop editing/i', $inserting_code_block.'$0', $new_content); … … 146 146 <script> 147 147 function redirect_to_ewdfad(el){ 148 window.location = el.href + '&ewdfad_debug_type='+( prompt('<?php _e('1 [enables: WP_DEBUG]\n2 [enables: WP_DEBUG + WP_DEBUG_DISPLAY]\n3 [enables: WP_DEBUG + WP_DEBUG_DISPLAY + WP_DEBUG_LOG S]','enable-wp-debug-from-dashboard');?>', 2) ) + '&ewdfad_ip_type='+( confirm('<?php _e('Click "OK" if it should be only enabled for your IP (otherwise, clicking the "cancel" will turn on wp-debug for everyone for 24 hours)\n','enable-wp-debug-from-dashboard');?>') ? 1 : 0) ;148 window.location = el.href + '&ewdfad_debug_type='+( prompt('<?php _e('1 [enables: WP_DEBUG]\n2 [enables: WP_DEBUG + WP_DEBUG_DISPLAY]\n3 [enables: WP_DEBUG + WP_DEBUG_DISPLAY + WP_DEBUG_LOG]','enable-wp-debug-from-dashboard');?>', 2) ) + '&ewdfad_ip_type='+( confirm('<?php _e('Click "OK" if it should be only enabled for your IP (otherwise, clicking the "cancel" will turn on wp-debug for everyone for 24 hours)\n','enable-wp-debug-from-dashboard');?>') ? 1 : 0) ; 149 149 } 150 150 </script> -
enable-wp-debug-from-admin-dashboard/trunk/readme.txt
r2147661 r2147705 2 2 3 3 Tags : enable,wp_debug,wp,debug,admin,dashboard, debug bar, 4 Stable tag : 1. 704 Stable tag : 1.80 5 5 WordPress URI : https://wordpress.org/plugins/enable-wp-debug-from-admin-dashboard/ 6 6 Plugin URI : https://puvox.software/wordpress/
Note: See TracChangeset
for help on using the changeset viewer.