equal
deleted
inserted
replaced
10 /** |
10 /** |
11 * Core class used to implement an internal admin pointers API. |
11 * Core class used to implement an internal admin pointers API. |
12 * |
12 * |
13 * @since 3.3.0 |
13 * @since 3.3.0 |
14 */ |
14 */ |
|
15 #[AllowDynamicProperties] |
15 final class WP_Internal_Pointers { |
16 final class WP_Internal_Pointers { |
16 /** |
17 /** |
17 * Initializes the new feature pointers. |
18 * Initializes the new feature pointers. |
18 * |
19 * |
19 * @since 3.3.0 |
20 * @since 3.3.0 |
101 wp_enqueue_style( 'wp-pointer' ); |
102 wp_enqueue_style( 'wp-pointer' ); |
102 wp_enqueue_script( 'wp-pointer' ); |
103 wp_enqueue_script( 'wp-pointer' ); |
103 } |
104 } |
104 |
105 |
105 /** |
106 /** |
106 * Print the pointer JavaScript data. |
107 * Prints the pointer JavaScript data. |
107 * |
108 * |
108 * @since 3.3.0 |
109 * @since 3.3.0 |
109 * |
110 * |
110 * @param string $pointer_id The pointer ID. |
111 * @param string $pointer_id The pointer ID. |
111 * @param string $selector The HTML elements, on which the pointer should be attached. |
112 * @param string $selector The HTML elements, on which the pointer should be attached. |