Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-notice
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-notice
Merge requests
!26
feature(ajax): added nonce
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
feature(ajax): added nonce
feature/dismiss-nonce
into
master
Overview
12
Commits
14
Pipelines
15
Changes
27
Merged
Grzegorz Rola
requested to merge
feature/dismiss-nonce
into
master
2 years ago
Overview
12
Commits
14
Pipelines
15
Changes
27
0
0
Merge request reports
Compare
master
version 13
29378c46
2 years ago
version 12
705c70a7
2 years ago
version 11
8f45787c
2 years ago
version 10
9aa5afc2
2 years ago
version 9
89330e07
2 years ago
version 8
e90452b9
2 years ago
version 7
2262bdcc
2 years ago
version 6
c0b65c65
2 years ago
version 5
ff3b8d7b
2 years ago
version 4
69cbd1f0
2 years ago
version 3
e29bda49
2 years ago
version 2
1fc35183
2 years ago
version 1
c18ea4cf
2 years ago
master (base)
and
latest version
latest version
79f0f46d
14 commits,
2 years ago
version 13
29378c46
13 commits,
2 years ago
version 12
705c70a7
12 commits,
2 years ago
version 11
8f45787c
11 commits,
2 years ago
version 10
9aa5afc2
10 commits,
2 years ago
version 9
89330e07
9 commits,
2 years ago
version 8
e90452b9
8 commits,
2 years ago
version 7
2262bdcc
7 commits,
2 years ago
version 6
c0b65c65
6 commits,
2 years ago
version 5
ff3b8d7b
5 commits,
2 years ago
version 4
69cbd1f0
4 commits,
2 years ago
version 3
e29bda49
3 commits,
2 years ago
version 2
1fc35183
2 commits,
2 years ago
version 1
c18ea4cf
1 commit,
2 years ago
27 files
+
614
−
449
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
27
assets/js/notice.js
+
5
−
2
View file @ 79f0f46d
Edit in single-file editor
Open in Web IDE
Show full file
jQuery
(
document
).
on
(
'
click
'
,
'
.notice-dismiss
'
,
function
()
{
var
notice_name
=
jQuery
(
this
).
closest
(
'
div.notice
'
).
data
(
'
notice-name
'
);
var
source
=
jQuery
(
this
).
closest
(
'
div.notice
'
).
data
(
'
source
'
);
const
$notice_div
=
jQuery
(
this
).
closest
(
'
div.notice
'
);
const
notice_name
=
$notice_div
.
data
(
'
notice-name
'
);
const
source
=
$notice_div
.
data
(
'
source
'
);
const
security
=
$notice_div
.
data
(
'
security
'
);
if
(
''
!==
notice_name
)
{
jQuery
.
ajax
({
url
:
ajaxurl
,
type
:
'
post
'
,
data
:
{
security
:
security
,
action
:
'
wpdesk_notice_dismiss
'
,
notice_name
:
notice_name
,
source
:
source
,
Loading