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
1
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-notice
Commits
bc68bd49
Commit
bc68bd49
authored
6 years ago
by
Grzegorz Rola
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix - notice not shows
parent
0b52dd45
No related branches found
No related tags found
No related merge requests found
Pipeline
#9407
passed with stages
in 1 minute and 46 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/WPDesk/Notice/Factory.php
+0
-1
0 additions, 1 deletion
src/WPDesk/Notice/Factory.php
src/WPDesk/Notice/Notice.php
+0
-4
0 additions, 4 deletions
src/WPDesk/Notice/Notice.php
src/WPDesk/notice-functions.php
+0
-2
0 additions, 2 deletions
src/WPDesk/notice-functions.php
with
0 additions
and
7 deletions
src/WPDesk/Notice/Factory.php
+
0
−
1
View file @
bc68bd49
...
@@ -23,7 +23,6 @@ class Factory
...
@@ -23,7 +23,6 @@ class Factory
*/
*/
public
static
function
notice
(
$noticeContent
=
''
,
$noticeType
=
'info'
,
$isDismissible
=
false
,
$priority
=
10
)
public
static
function
notice
(
$noticeContent
=
''
,
$noticeType
=
'info'
,
$isDismissible
=
false
,
$priority
=
10
)
{
{
error_log
(
14
);
return
new
Notice
(
$noticeContent
,
$noticeType
,
$isDismissible
,
$priority
);
return
new
Notice
(
$noticeContent
,
$noticeType
,
$isDismissible
,
$priority
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/WPDesk/Notice/Notice.php
+
0
−
4
View file @
bc68bd49
...
@@ -75,7 +75,6 @@ class Notice
...
@@ -75,7 +75,6 @@ class Notice
$priority
=
10
,
$priority
=
10
,
$attributes
=
array
()
$attributes
=
array
()
)
{
)
{
error_log
(
15
);
$this
->
noticeContent
=
$noticeContent
;
$this
->
noticeContent
=
$noticeContent
;
$this
->
noticeType
=
$noticeType
;
$this
->
noticeType
=
$noticeType
;
$this
->
dismissible
=
$dismissible
;
$this
->
dismissible
=
$dismissible
;
...
@@ -157,9 +156,7 @@ error_log(15);
...
@@ -157,9 +156,7 @@ error_log(15);
*/
*/
protected
function
addAction
()
protected
function
addAction
()
{
{
error_log
(
16
);
if
(
!
$this
->
actionAdded
)
{
if
(
!
$this
->
actionAdded
)
{
error_log
(
17
);
add_action
(
'admin_notices'
,
[
$this
,
'showNotice'
],
$this
->
priority
);
add_action
(
'admin_notices'
,
[
$this
,
'showNotice'
],
$this
->
priority
);
add_action
(
add_action
(
'admin_footer'
,
'admin_footer'
,
...
@@ -250,7 +247,6 @@ error_log(17);
...
@@ -250,7 +247,6 @@ error_log(17);
*/
*/
public
function
showNotice
()
public
function
showNotice
()
{
{
error_log
(
51
);
$this
->
removeAction
();
$this
->
removeAction
();
$noticeFormat
=
'<div %1$s>%2$s</div>'
;
$noticeFormat
=
'<div %1$s>%2$s</div>'
;
if
(
$this
->
addParagraphToContent
())
{
if
(
$this
->
addParagraphToContent
())
{
...
...
This diff is collapsed.
Click to expand it.
src/WPDesk/notice-functions.php
+
0
−
2
View file @
bc68bd49
...
@@ -13,7 +13,6 @@ if (!function_exists('WPDeskNotice')) {
...
@@ -13,7 +13,6 @@ if (!function_exists('WPDeskNotice')) {
*/
*/
function
WPDeskNotice
(
$noticeContent
,
$noticeType
=
'info'
,
$dismissible
=
false
,
$priority
=
10
)
function
WPDeskNotice
(
$noticeContent
,
$noticeType
=
'info'
,
$dismissible
=
false
,
$priority
=
10
)
{
{
error_log
(
12
);
return
\WPDesk\Notice\Factory
::
notice
(
$noticeContent
,
$noticeType
,
$dismissible
,
$priority
);
return
\WPDesk\Notice\Factory
::
notice
(
$noticeContent
,
$noticeType
,
$dismissible
,
$priority
);
}
}
}
}
...
@@ -33,7 +32,6 @@ if (!function_exists('wpdesk_notice')) {
...
@@ -33,7 +32,6 @@ if (!function_exists('wpdesk_notice')) {
*/
*/
function
wpdesk_notice
(
$noticeContent
,
$noticeType
=
'info'
,
$dismissible
=
false
,
$priority
=
10
)
function
wpdesk_notice
(
$noticeContent
,
$noticeType
=
'info'
,
$dismissible
=
false
,
$priority
=
10
)
{
{
error_log
(
11
);
return
WPDeskNotice
(
$noticeContent
,
$noticeType
,
$dismissible
,
$priority
);
return
WPDeskNotice
(
$noticeContent
,
$noticeType
,
$dismissible
,
$priority
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment