IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
252 | 252 | } |
253 | 253 | } |
254 | 254 | |
| 255 | |
| 256 | /** |
| 257 | * Filter the array of admin messages for editing comments before display. |
| 258 | * |
| 259 | * @since 4.4.0 |
| 260 | * |
| 261 | * @param string[] $messages Array of messages to display, each containing HTML formatting. |
| 262 | */ |
| 263 | $messages = apply_filters( 'edit_comments_admin_messages', $messages ); |
| 264 | |
255 | 265 | echo '<div id="moderated" class="updated notice is-dismissible"><p>' . implode( "<br/>\n", $messages ) . '</p></div>'; |
| 266 | |
256 | 267 | } |
257 | 268 | } |
258 | 269 | ?> |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
311 | 311 | printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( wp_unslash($_REQUEST['s']) ) ); ?> |
312 | 312 | </h1> |
313 | 313 | |
314 | | <?php if ( $message ) : ?> |
| 314 | <?php |
| 315 | /** |
| 316 | * Filter the admin message for edit-tags.php before display. |
| 317 | * |
| 318 | * @since 4.4.0 |
| 319 | * |
| 320 | * @param string $message Messages to display containing HTML formatting. |
| 321 | */ |
| 322 | $message = apply_filters( 'edit_tag_admin_message', $message ); |
| 323 | |
| 324 | if ( $message ) : ?> |
315 | 325 | <div id="message" class="<?php echo $class; ?> notice is-dismissible"><p><?php echo $message; ?></p></div> |
316 | 326 | <?php $_SERVER['REQUEST_URI'] = remove_query_arg( array( 'message', 'error' ), $_SERVER['REQUEST_URI'] ); |
317 | 327 | endif; ?> |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
460 | 460 | </div> |
461 | 461 | <?php endif; |
462 | 462 | |
| 463 | /** |
| 464 | * Filter the array of user admin messages before display. |
| 465 | * |
| 466 | * @since 4.4.0 |
| 467 | * |
| 468 | * @param string[] $messages Array of messages to display, each containing HTML formatting. |
| 469 | */ |
| 470 | $messages = apply_filters( 'users_admin_messages', $messages ); |
| 471 | |
463 | 472 | if ( ! empty($messages) ) { |
464 | 473 | foreach ( $messages as $msg ) |
465 | 474 | echo $msg; |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
110 | 110 | ?> |
111 | 111 | </h2> |
112 | 112 | <?php |
| 113 | |
| 114 | /** |
| 115 | * Filter the array of site settings admin messages before display. |
| 116 | * |
| 117 | * @since 4.4.0 |
| 118 | * |
| 119 | * @param string[] $messages Array of messages to display, each containing HTML formatting. |
| 120 | */ |
| 121 | $messages = apply_filters( 'site_settings_admin_messages', $messages ); |
| 122 | |
113 | 123 | if ( ! empty( $messages ) ) { |
114 | 124 | foreach ( $messages as $msg ) |
115 | 125 | echo '<div id="message" class="updated notice is-dismissible"><p>' . $msg . '</p></div>'; |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
155 | 155 | |
156 | 156 | /** |
157 | 157 | * Fires immediately after a widget has been marked for deletion. |
158 | | * |
| 158 | * |
159 | 159 | * @since 4.4.0 |
160 | 160 | * |
161 | 161 | * @param string $widget_id ID of the widget marked for deletion. |
… |
… |
|
341 | 341 | ?> |
342 | 342 | </h1> |
343 | 343 | |
344 | | <?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) { ?> |
345 | | <div id="message" class="updated notice is-dismissible"><p><?php echo $messages[$_GET['message']]; ?></p></div> |
346 | | <?php } ?> |
347 | | <?php if ( isset($_GET['error']) && isset($errors[$_GET['error']]) ) { ?> |
348 | | <div id="message" class="error"><p><?php echo $errors[$_GET['error']]; ?></p></div> |
349 | | <?php } ?> |
| 344 | <?php |
| 345 | $message = isset( $_GET['message'] ) && isset( $messages[ $_GET['message'] ] ) ? $messages[ $_GET['message'] ] : ''; |
350 | 346 | |
| 347 | /** |
| 348 | * Filter the admin message for Widgets before display. |
| 349 | * |
| 350 | * @since 4.4.0 |
| 351 | * |
| 352 | * @param string $message Messages to display containing HTML formatting. |
| 353 | */ |
| 354 | $message = apply_filters( 'widget_admin_message', $message ); |
| 355 | |
| 356 | if ( $message ): |
| 357 | ?> |
| 358 | <div id="message" class="updated notice is-dismissible"><p><?php echo $message; ?></p></div> |
351 | 359 | <?php |
| 360 | endif; ?> |
| 361 | |
| 362 | <?php |
| 363 | $error = isset( $_GET['error'] ) && isset( $errors[ $_GET['error'] ] ) ? $errors[ $_GET['error'] ] : ''; |
| 364 | |
| 365 | /** |
| 366 | * Filter the admin error for Widgets before display. |
| 367 | * |
| 368 | * @since 4.4.0 |
| 369 | * |
| 370 | * @param string $error Messages to display containing HTML formatting. |
| 371 | */ |
| 372 | $error = apply_filters( 'widget_admin_error', $error ); |
| 373 | |
| 374 | if ( $error ): |
| 375 | ?> |
| 376 | <div id="message" class="error"><p><?php echo $error; ?></p></div> |
| 377 | <?php |
| 378 | endif; |
| 379 | |
352 | 380 | /** |
353 | 381 | * Fires before the Widgets administration page content loads. |
354 | 382 | * |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
160 | 160 | <div class="wrap"> |
161 | 161 | <h1 id="add-new-site"><?php _e( 'Add New Site' ); ?></h1> |
162 | 162 | <?php |
| 163 | |
| 164 | /** |
| 165 | * Filter the array of new site admin messages before display. |
| 166 | * |
| 167 | * @since 4.4.0 |
| 168 | * |
| 169 | * @param string[] $messages Array of messages to display, each containing HTML formatting. |
| 170 | */ |
| 171 | $messages = apply_filters( 'new_site_admin_messages', $messages ); |
| 172 | |
163 | 173 | if ( ! empty( $messages ) ) { |
164 | 174 | foreach ( $messages as $msg ) |
165 | 175 | echo '<div id="message" class="updated notice is-dismissible"><p>' . $msg . '</p></div>'; |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
257 | 257 | echo _x( 'Add Existing User', 'user' ); |
258 | 258 | } ?> |
259 | 259 | </h1> |
| 260 | <?php |
260 | 261 | |
261 | | <?php if ( isset($errors) && is_wp_error( $errors ) ) : ?> |
| 262 | /** |
| 263 | * Filter the array of error messages for new users before display. |
| 264 | * |
| 265 | * @since 4.4.0 |
| 266 | * |
| 267 | * @param string[] $messages Array of messages to display, each containing HTML formatting. |
| 268 | */ |
| 269 | $errors = apply_filters( 'new_user_admin_errors', $errors ); |
| 270 | |
| 271 | if ( isset($errors) && is_wp_error( $errors ) ) : ?> |
262 | 272 | <div class="error"> |
263 | 273 | <ul> |
264 | 274 | <?php |
… |
… |
|
268 | 278 | </ul> |
269 | 279 | </div> |
270 | 280 | <?php endif; |
| 281 | |
| 282 | /** |
| 283 | * Filter the array of user admin messages for new users before display. |
| 284 | * |
| 285 | * @since 4.4.0 |
| 286 | * |
| 287 | * @param string[] $messages Array of messages to display, each containing HTML formatting. |
| 288 | */ |
| 289 | $messages = apply_filters( 'new_user_admin_messages', $messages ); |
271 | 290 | |
272 | 291 | if ( ! empty( $messages ) ) { |
273 | 292 | foreach ( $messages as $msg ) |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
153 | 153 | ?> |
154 | 154 | </h2> |
155 | 155 | <?php |
| 156 | |
| 157 | /** |
| 158 | * Filter the array of site info admin messages before display. |
| 159 | * |
| 160 | * @since 4.4.0 |
| 161 | * |
| 162 | * @param string[] $messages Array of messages to display, each containing HTML formatting. |
| 163 | */ |
| 164 | $messages = apply_filters( 'site_info_admin_messages', $messages ); |
| 165 | |
156 | 166 | if ( ! empty( $messages ) ) { |
157 | 167 | foreach ( $messages as $msg ) { |
158 | 168 | echo '<div id="message" class="updated notice is-dismissible"><p>' . $msg . '</p></div>'; |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
593 | 593 | ?> |
594 | 594 | </h2> |
595 | 595 | <?php |
| 596 | |
| 597 | /** |
| 598 | * Filter the array of admin messages for nav menus before display. |
| 599 | * |
| 600 | * @since 4.4.0 |
| 601 | * |
| 602 | * @param string[] $messages Array of messages to display, each containing HTML formatting. |
| 603 | */ |
| 604 | $messages = apply_filters( 'nav_menu_admin_messages', $messages ); |
| 605 | |
596 | 606 | foreach ( $messages as $message ) : |
597 | 607 | echo $message . "\n"; |
598 | 608 | endforeach; |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
283 | 283 | $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']); |
284 | 284 | } |
285 | 285 | |
| 286 | /** |
| 287 | * Filter the admin message for upload.php before display. |
| 288 | * |
| 289 | * @since 4.4.0 |
| 290 | * |
| 291 | * @param string $message Messages to display containing HTML formatting. |
| 292 | */ |
| 293 | $message = apply_filters( 'upload_admin_message', $message ); |
| 294 | |
286 | 295 | if ( !empty($message) ) { ?> |
287 | 296 | <div id="message" class="updated notice is-dismissible"><p><?php echo $message; ?></p></div> |
288 | 297 | <?php } ?> |