Bird
0
0

Given this snippet in wp-config.php:

medium📝 Predict Output Q13 of 15
Wordpress - WordPress Settings and Configuration
Given this snippet in wp-config.php:
define('WP_DEBUG', true);
if (WP_DEBUG) {
  error_reporting(E_ALL);
  ini_set('display_errors', 1);
}
What will happen when you visit the WordPress site?
AAll PHP errors and warnings will be shown on the site.
BNo errors will be shown, site runs silently.
COnly fatal errors will be logged but not displayed.
DThe site will automatically fix errors.
Step-by-Step Solution
Solution:
  1. Step 1: Understand WP_DEBUG setting

    Setting WP_DEBUG to true enables debugging mode in WordPress.
  2. Step 2: Analyze error reporting code

    The code sets PHP to report all errors and display them on the site.
  3. Final Answer:

    All PHP errors and warnings will be shown on the site. -> Option A
  4. Quick Check:

    WP_DEBUG = true shows all errors [OK]
Quick Trick: true WP_DEBUG shows all errors on site [OK]
Common Mistakes:
  • Thinking errors are hidden when WP_DEBUG is true
  • Assuming errors are fixed automatically
  • Confusing error logging with error displaying

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes