Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
WP Revisions Control
Commits
207f5a47
Commit
207f5a47
authored
Jul 02, 2013
by
Erick Hitter
Browse files
Allow other to change the priority this plugin runs at.
parent
42673468
Changes
1
Hide whitespace changes
Inline
Side-by-side
wp-revisions-control.php
View file @
207f5a47
...
...
@@ -72,13 +72,15 @@ class WP_Revisions_Control {
* Register actions and filters
*
* @uses add_action
* @uses apply_filters
* @uses add_filter
* @return null
*/
public
function
action_init
()
{
add_action
(
'admin_init'
,
array
(
$this
,
'action_admin_init'
)
);
add_filter
(
'wp_revisions_to_keep'
,
array
(
$this
,
'filter_wp_revisions_to_keep'
),
50
,
2
);
$plugin_priority
=
apply_filters
(
'wp_revisions_control_priority'
,
50
);
add_filter
(
'wp_revisions_to_keep'
,
array
(
$this
,
'filter_wp_revisions_to_keep'
),
$plugin_priority
,
2
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment