From 1eed1269eb708f8054da69221411727764670b93 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 8 Nov 2023 11:04:14 +0000 Subject: [PATCH] Administration: Fix typos in `wp_admin_notice()` arguments in a few instances. Follow-up to [56570], [56599]. Props dlh, mukesh27, sumitbagthariya16. Fixes #59830. git-svn-id: https://develop.svn.wordpress.org/trunk@57084 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/template.php | 4 ++-- src/wp-admin/includes/update.php | 6 +++--- src/wp-admin/theme-editor.php | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index a7255bb7ee4e8..1d4a8e8da1f5c 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -1018,8 +1018,8 @@ function wp_import_upload_form( $action ) { wp_admin_notice( $upload_directory_error, array( - 'additonal_classes' => array( 'error' ), - 'paragraph_wrap' => false, + 'additional_classes' => array( 'error' ), + 'paragraph_wrap' => false, ) ); else : diff --git a/src/wp-admin/includes/update.php b/src/wp-admin/includes/update.php index 2d3ccfbbb3e0f..7e68440b8e833 100644 --- a/src/wp-admin/includes/update.php +++ b/src/wp-admin/includes/update.php @@ -345,9 +345,9 @@ function update_nag() { wp_admin_notice( $msg, array( - 'type' => 'warning', - 'additonal_classes' => array( 'update-nag', 'inline' ), - 'paragraph_wrap' => false, + 'type' => 'warning', + 'additional_classes' => array( 'update-nag', 'inline' ), + 'paragraph_wrap' => false, ) ); } diff --git a/src/wp-admin/theme-editor.php b/src/wp-admin/theme-editor.php index c9253f5badc93..bd932d8f949a8 100644 --- a/src/wp-admin/theme-editor.php +++ b/src/wp-admin/theme-editor.php @@ -195,7 +195,7 @@ __( 'File edited successfully.' ), array( 'id' => 'message', - 'is-dismissible' => true, + 'dismissible' => true, 'additional_classes' => array( 'updated' ), ) );