PluginProbe
Polylang / 2.6.2
Polylang v2.6.2
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
← All changes | modules/sync/admin-sync.php +2 -5 2.82.6.2 View file →
@@ -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 ),