Skip to content

Commit c6eb91f

Browse files
fix: render notices after page actions when available
1 parent 5c1302f commit c6eb91f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/resources/admin-notices.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@
6868
const location = $notice.data(locationAttribute);
6969

7070
if (location === 'below_header') {
71+
const $pageTitleAction = $('a.page-title-action');
72+
if ($pageTitleAction.length) {
73+
$notice.insertAfter($pageTitleAction);
74+
} else {
7175
$notice.insertAfter('h1');
76+
}
7277
} else if (location === 'above_header') {
7378
$notice.insertBefore('h1');
7479
} else if (location === 'inline') {

0 commit comments

Comments
 (0)