-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.php
40 lines (38 loc) · 1.38 KB
/
plugin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* Plugin Name: Limit Revision Publishing
* Description: Limit Revision Publishing restricts edits made by users without the publish_{post_type} capability.
* Author: Paul Ryan
* Author URI: https://dcdc.coe.hawaii.edu
* Plugin URI: https://wordpress.org/plugins/limit-revision-publishing
* Text Domain: limit-revision-publishing
* Domain Path: /languages
* Requires at least: 3.9
* Version: 1.1.10
* License: GPL2+
*/
/**
* Include plugin classes.
*/
if ( ! class_exists( 'LRP_Controller' ) ) {
require_once dirname( __FILE__ ) . '/lib/class-lrp-controller.php';
}
if ( ! class_exists( 'LRP_Sortable_Column_Controller' ) ) {
require_once dirname( __FILE__ ) . '/lib/class-lrp-sortable-column-controller.php';
}
if ( ! class_exists( 'LRP_Filter_All_Posts_Controller' ) ) {
require_once dirname( __FILE__ ) . '/lib/class-lrp-filter-all-posts-controller.php';
}
if ( ! class_exists( 'LRP_Edit_Form_Controller' ) ) {
require_once dirname( __FILE__ ) . '/lib/class-lrp-edit-form-controller.php';
}
if ( ! class_exists( 'LRP_Revisions_Form_Controller' ) ) {
require_once dirname( __FILE__ ) . '/lib/class-lrp-revisions-form-controller.php';
}
if ( ! class_exists( 'LRP_Options_Controller' ) ) {
require_once dirname( __FILE__ ) . '/lib/class-lrp-options-controller.php';
}
// Instantiate plugin.
if ( class_exists( 'LRP_Controller' ) ) {
$limit_revision_publishing = new LRP_Controller();
}