PluginProbe
Polylang / 2.6.3
Polylang v2.6.3
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 | include/base.php +2 -7 2.72.6.3 View file →
@@ -43,13 +43,8 @@
43 43 $this->rest_api = new PLL_REST_API( $this );
44 44 }
45 45
46 46 if ( $this->model->get_languages_list() ) {
47 - // Used by content duplicate and post synchronization
48 - if ( class_exists( 'PLL_Sync_Content' ) ) {
49 - $this->sync_content = new PLL_Sync_Content( $this );
50 - }
51 -
52 47 // Active languages
53 48 if ( class_exists( 'PLL_Active_Languages' ) ) {
54 49 $this->active_languages = new PLL_Active_Languages( $this );
55 50 }
@@ -138,9 +133,9 @@
138 133 public function __call( $func, $args ) {
139 134 foreach ( $this as $prop => &$obj ) {
140 135 if ( is_object( $obj ) && method_exists( $obj, $func ) ) {
141 136 if ( WP_DEBUG ) {
142 - $debug = debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions
137 + $debug = debug_backtrace(); // phpcs:ignore WordPress.PHP.DevelopmentFunctions
143 138 $i = 1 + empty( $debug[1]['line'] ); // The file and line are in $debug[2] if the function was called using call_user_func
144 139 trigger_error( // phpcs:ignore WordPress.PHP.DevelopmentFunctions
145 140 sprintf(
146 141 '%1$s was called incorrectly in %3$s on line %4$s: the call to $polylang->%1$s() has been deprecated in Polylang 1.2, use PLL()->%2$s->%1$s() instead.' . "\nError handler",
@@ -154,9 +149,9 @@
154 149 return call_user_func_array( array( $obj, $func ), $args );
155 150 }
156 151 }
157 152
158 - $debug = debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions
153 + $debug = debug_backtrace(); // phpcs:ignore WordPress.PHP.DevelopmentFunctions
159 154 trigger_error( // phpcs:ignore WordPress.PHP.DevelopmentFunctions
160 155 sprintf(
161 156 'Call to undefined function PLL()->%1$s() in %2$s on line %3$s' . "\nError handler",
162 157 esc_html( $func ),