| @@ -30,9 +30,9 @@ | ||
| 30 | 30 | // Load the main class |
| 31 | 31 | if (file_exists(GOOGLE_INDEX_DIRECT_PATH . '/class-google-index-direct.php')) { |
| 32 | 32 | require_once GOOGLE_INDEX_DIRECT_PATH . '/class-google-index-direct.php'; |
| 33 | 33 | } else { |
| 34 | - error_log('MetaSync Google Index: class-google-index-direct.php not found at ' . GOOGLE_INDEX_DIRECT_PATH . '/class-google-index-direct.php'); | |
| 34 | + error_log('MetaSync Google Index: class-google-index-direct.php not found at ' . GOOGLE_INDEX_DIRECT_PATH . '/class-google-index-direct.php'); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- genuine failure path, bounded, no secrets | |
| 35 | 35 | return; |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | // Load admin interface if in admin area |
| @@ -39,9 +39,9 @@ | ||
| 39 | 39 | if (is_admin()) { |
| 40 | 40 | if (file_exists(GOOGLE_INDEX_DIRECT_PATH . '/class-google-index-admin.php')) { |
| 41 | 41 | require_once GOOGLE_INDEX_DIRECT_PATH . '/class-google-index-admin.php'; |
| 42 | 42 | } else { |
| 43 | - error_log('MetaSync Google Index: class-google-index-admin.php not found at ' . GOOGLE_INDEX_DIRECT_PATH . '/class-google-index-admin.php'); | |
| 43 | + error_log('MetaSync Google Index: class-google-index-admin.php not found at ' . GOOGLE_INDEX_DIRECT_PATH . '/class-google-index-admin.php'); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- genuine failure path, bounded, no secrets | |
| 44 | 44 | } |
| 45 | 45 | } |
| 46 | 46 | } |
| 47 | 47 | |
| @@ -59,9 +59,9 @@ | ||
| 59 | 59 | static $instance = null; |
| 60 | 60 | |
| 61 | 61 | if ($instance === null) { |
| 62 | 62 | if (!class_exists('Google_Index_Direct')) { |
| 63 | - error_log('MetaSync Google Index: Google_Index_Direct class not available.'); | |
| 63 | + error_log('MetaSync Google Index: Google_Index_Direct class not available.'); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- genuine failure path, bounded, no secrets | |
| 64 | 64 | return null; |
| 65 | 65 | } |
| 66 | 66 | $instance = new Google_Index_Direct(); |
| 67 | 67 | } |