Skip to content

Commit 4191624

Browse files
committed
Fix notices
1 parent d6018da commit 4191624

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

includes/general.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3428,6 +3428,11 @@ function pods_register_type( $type, $name, $object = null ) {
34283428
$debug_info = debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS, 3 );
34293429

34303430
foreach ( $debug_info as $debug ) {
3431+
// Skip if info is not there.
3432+
if ( ! isset( $debug['file'], $debug['line'] ) ) {
3433+
continue;
3434+
}
3435+
34313436
// Skip Pods-related and WP-related hook registrations.
34323437
if ( 0 === strpos( $debug['file'], PODS_DIR ) || 0 === strpos( $debug['file'], WPINC ) ) {
34333438
continue;

0 commit comments

Comments
 (0)