Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
id: get-composer-cache-dir
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v2
- uses: actions/cache@v4
id: composer-cache
with:
path: ${{ steps.get-composer-cache-dir.outputs.dir }}
Expand Down
5 changes: 5 additions & 0 deletions src/resources/admin-notices.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@
const location = $notice.data(locationAttribute);

if (location === 'below_header') {
const $pageTitleAction = $('a.page-title-action');
if ($pageTitleAction.length) {
$notice.insertAfter($pageTitleAction);
} else {
$notice.insertAfter('h1');
}
} else if (location === 'above_header') {
$notice.insertBefore('h1');
} else if (location === 'inline') {
Expand Down
Loading