| @@ -1,8 +1,5 @@ | ||
| 1 | 1 | <?php |
| 2 | -/** | |
| 3 | - * @package Polylang | |
| 4 | - */ | |
| 5 | 2 | |
| 6 | 3 | /** |
| 7 | 4 | * Manages copy and synchronization of terms and post metas |
| 8 | 5 | * |
| @@ -191,9 +188,9 @@ | ||
| 191 | 188 | $obj = substr( $func, 5 ); |
| 192 | 189 | |
| 193 | 190 | if ( is_object( $this->$obj ) && method_exists( $this->$obj, 'copy' ) ) { |
| 194 | 191 | if ( WP_DEBUG ) { |
| 195 | - $debug = debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions | |
| 192 | + $debug = debug_backtrace(); // phpcs:ignore WordPress.PHP.DevelopmentFunctions | |
| 196 | 193 | $i = 1 + empty( $debug[1]['line'] ); // The file and line are in $debug[2] if the function was called using call_user_func |
| 197 | 194 | |
| 198 | 195 | trigger_error( // phpcs:ignore WordPress.PHP.DevelopmentFunctions |
| 199 | 196 | sprintf( |
| @@ -207,9 +204,9 @@ | ||
| 207 | 204 | } |
| 208 | 205 | return call_user_func_array( array( $this->$obj, 'copy' ), $args ); |
| 209 | 206 | } |
| 210 | 207 | |
| 211 | - $debug = debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions | |
| 208 | + $debug = debug_backtrace(); // phpcs:ignore WordPress.PHP.DevelopmentFunctions | |
| 212 | 209 | trigger_error( // phpcs:ignore WordPress.PHP.DevelopmentFunctions |
| 213 | 210 | sprintf( |
| 214 | 211 | 'Call to undefined function PLL()->sync->%1$s() in %2$s on line %3$s' . "\nError handler", |
| 215 | 212 | esc_html( $func ), |