Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plugin-template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Library
plugin-template
Commits
fff4e589
Commit
fff4e589
authored
7 years ago
by
Krzysiek
Browse files
Options
Downloads
Patches
Plain Diff
Requirements class adjusted to PHP <5.4
parent
b5d30c6a
No related branches found
No related tags found
1 merge request
!1
Devel 1.10 - Wymagana wersja PHP i Wordpress
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
classes/wpdesk/class-requirement-checker.php
+5
-5
5 additions, 5 deletions
classes/wpdesk/class-requirement-checker.php
with
5 additions
and
5 deletions
classes/wpdesk/class-requirement-checker.php
+
5
−
5
View file @
fff4e589
...
...
@@ -60,7 +60,7 @@ if ( ! class_exists( 'WPDesk_Requirement_Checker_1_10' ) ) {
* Should be used when you want to check if others plugin are loaded (WC for example)
*/
public
function
check_requirements_and_load_plugin_deferred
()
{
add_action
(
"plugins_loaded"
,
[
$this
,
"check_requirements_and_load_plugin"
]
);
add_action
(
"plugins_loaded"
,
array
(
$this
,
"check_requirements_and_load_plugin"
)
);
}
/**
...
...
@@ -157,9 +157,9 @@ if ( ! class_exists( 'WPDesk_Requirement_Checker_1_10' ) ) {
* @return string mixed
*/
private
function
extract_plugin_title_from_header
(
$file
)
{
$plugin_data
=
get_file_data
(
$file
,
[
$plugin_data
=
get_file_data
(
$file
,
array
(
'title'
=>
'Plugin Name'
]
);
)
);
return
$plugin_data
[
'title'
];
}
...
...
@@ -268,8 +268,8 @@ if ( ! class_exists( 'WPDesk_Requirement_Checker_1_10' ) ) {
* @return void
*/
public
function
disable_plugin_render_notice
()
{
add_action
(
'admin_notices'
,
[
$this
,
'deactivate_action'
]
);
add_action
(
'admin_notices'
,
[
$this
,
'render_notices_action'
]
);
add_action
(
'admin_notices'
,
array
(
$this
,
'deactivate_action'
)
);
add_action
(
'admin_notices'
,
array
(
$this
,
'render_notices_action'
)
);
}
/**
...
...
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