Skip to content

Commit

Permalink
Administration: Fix typos in wp_admin_notice() arguments in a few i…
Browse files Browse the repository at this point in the history
…nstances.

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
  • Loading branch information
SergeyBiryukov committed Nov 8, 2023
1 parent 74e0604 commit 1eed126
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/wp-admin/includes/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 :
Expand Down
6 changes: 3 additions & 3 deletions src/wp-admin/includes/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/theme-editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
__( 'File edited successfully.' ),
array(
'id' => 'message',
'is-dismissible' => true,
'dismissible' => true,
'additional_classes' => array( 'updated' ),
)
);
Expand Down

0 comments on commit 1eed126

Please sign in to comment.