PluginProbe
Simple Revision Control / 2.2.4
Simple Revision Control v2.2.4
trunk 2.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5
simple-revision-control / simple-revision-control.php

simple-revision-control.php in Simple Revision Control 2.2.4, at simple-revision-control.php

100 lines 2.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Simple Revision Control
4 *
5 * @package simple-revision-control
6 * @author Marcin Pietrzak
7 * @copyright 2013-2025 Marcin Pietrzak (marcin@iworks.pl)
8 * @license GPL-3.0-or-later
9 *
10 * @wordpress-plugin
11 * Plugin Name: Simple Revision Control
12 * Plugin URI: http://iworks.pl/en/plugins/simple-revision-control/
13 * Description: Simple Revision Control is a plugin which gives the user simple control over the Revision functionality.
14 * Version: 2.2.4
15 * Requires at least: 6.0
16 * Requires PHP: 8.0
17 * Author: Marcin Pietrzak
18 * Author URI: http://iworks.pl/
19 * Text Domain: simple-revision-control
20 * License: GPLv3 or later
21 * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
22
23 this program is free software; you can redistribute it and/or modify
24 it under the terms of the GNU General Public License, version 2, as
25 published by the Free Software Foundation.
26
27 This program is distributed in the hope that it will be useful,
28 but WITHOUT ANY WARRANTY; without even the implied warranty of
29 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 GNU General Public License for more details.
31
32 You should have received a copy of the GNU General Public License
33 along with this program; if not, write to the Free Software
34 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
35
36 */
37 defined( 'ABSPATH' ) || exit; // Exit if accessed directly
38 /**
39 * static options
40 */
41 define( 'SIMPLE_REVISION_CONTROL_VERSION', '2.2.4' );
42 define( 'SIMPLE_REVISION_CONTROL_PREFIX', 'simple_revision_control_' );
43
44 // require_once dirname(__FILE__).'/includes/common.php';
45
46 /**
47 * static options
48 */
49 $base = dirname( __FILE__ );
50 $includes = $base . '/includes';
51
52 /**
53 * get plugin settings
54 *
55 * @since 1.0.1
56 */
57 include_once $base . '/etc/options.php';
58
59 /**
60 * @since 1.0.6
61 */
62 if ( ! class_exists( 'iworks_options' ) ) {
63 include_once $includes . '/iworks/options/options.php';
64 }
65
66 /**
67 * load
68 */
69 require_once $includes . '/iworks/simple-revision-control/class-simple-revision-control.php';
70
71 /**
72 * run
73 */
74 new iWorks_Simple_Revision_Control;
75
76
77 /**
78 * load options
79 *
80 * since 2.6.8
81 *
82 */
83 global $simple_revision_control_options;
84 $simple_revision_control_options = null;
85
86 function get_simple_revision_control_options() {
87 global $simple_revision_control_options;
88 if ( is_object( $simple_revision_control_options ) ) {
89 return $simple_revision_control_options;
90 }
91 $simple_revision_control_options = new iworks_options();
92 $simple_revision_control_options->set_option_function_name( 'simple_revision_control_options' );
93 $simple_revision_control_options->set_option_prefix( 'simple_revision_control_' );
94 if ( method_exists( $simple_revision_control_options, 'set_plugin' ) ) {
95 $simple_revision_control_options->set_plugin( basename( __FILE__ ) );
96 }
97 return $simple_revision_control_options;
98 }
99
100