Skip to content

Commit 6a15f90

Browse files
doc: add descriptive comment
1 parent 9a6973c commit 6a15f90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/resources/admin-notices.js

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

7070
if (location === 'below_header') {
71+
// Place after the page action element (e.g., "Add Plugin" on Plugins page) if it exists, otherwise after <h1>.
7172
const $pageTitleAction = $('a.page-title-action');
7273
if ($pageTitleAction.length) {
7374
$notice.insertAfter($pageTitleAction);

0 commit comments

Comments
 (0)