PluginProbe
Polylang / 2.4
Polylang v2.4
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/pointer.php +2 -5 2.8.42.4 View file →
@@ -1,8 +1,5 @@
1 1 <?php
2 -/**
3 - * @package Polylang
4 - */
5 2
6 3 /**
7 4 * A class to manage WP pointers
8 5 * offers the possibility to have customized buttons
@@ -35,9 +32,9 @@
35 32 *
36 33 * @param array $args
37 34 */
38 35 public function __construct( $args ) {
39 - trigger_error( 'The class PLL_Pointer has been deprecated since Polylang 2.3.9 and will be removed in a future version.', E_USER_ERROR ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions
36 + trigger_error( 'The class PLL_Pointer has been deprecated since Polylang 2.3.9 and will be removed in a future version.', E_USER_ERROR );
40 37
41 38 $this->args = $args;
42 39 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
43 40 }
@@ -110,7 +107,7 @@
110 107 empty( $this->args['position'] ) ? '' : sprintf( 'position: {edge: "%s", align: "%s",},', $this->args['position']['edge'], $this->args['position']['align'] ),
111 108 empty( $this->args['width'] ) ? '' : sprintf( 'pointerWidth: %d,', $this->args['width'] ),
112 109 empty( $b ) ? '' : $b
113 110 );
114 - echo '<script type="text/javascript">' . $js . '</script>'; // phpcs:ignore WordPress.Security.EscapeOutput
111 + echo '<script type="text/javascript">' . $js . '</script>';
115 112 }
116 113 }