-
Notifications
You must be signed in to change notification settings - Fork 8
/
string-locator.php
76 lines (67 loc) · 2.36 KB
/
string-locator.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
/**
* Plugin Name: String Locator
* Plugin URI: https://wordpress.org/plugins/string-locator/
* Description: Scan through theme and plugin files looking for text strings
* Version: 2.6.6
* Author: InstaWP
* Author URI: https://instawp.com/
* Text Domain: string-locator
* License: GPL2
*
* Copyright 2013 Marius Jensen (email : marius@clorith.net)
* 2022 InstaWP (https://instawp.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2, as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
namespace StringLocator;
if ( ! defined( 'ABSPATH' ) ) {
die();
}
define( 'STRING_LOCATOR_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'STRING_LOCATOR_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'STRING_LOCATOR_PLUGIN_FILE', __FILE__ );
/**
* Base classes that other classes may extend.
*/
require_once __DIR__ . '/includes/Base/class-search.php';
require_once __DIR__ . '/includes/Base/class-rest.php';
/**
* Search handlers
*/
require_once __DIR__ . '/includes/Extension/SQL/sql.php';
require_once __DIR__ . '/includes/Extension/SearchReplace/search-replace.php';
/**
* Plugin test runners
*/
require_once __DIR__ . '/includes/Tests/class-loopback.php';
require_once __DIR__ . '/includes/Tests/class-smart-scan.php';
/**
* Plugin action classes.
*/
require_once __DIR__ . '/includes/class-save.php';
require_once __DIR__ . '/includes/class-search.php';
require_once __DIR__ . '/includes/class-directory-iterator.php';
/**
* Prepare REST endpoints.
*/
require_once __DIR__ . '/includes/REST/class-save.php';
require_once __DIR__ . '/includes/REST/class-clean.php';
require_once __DIR__ . '/includes/REST/class-search.php';
require_once __DIR__ . '/includes/REST/class-directory-structure.php';
/**
* Instantiate the plugin
*/
require_once __DIR__ . '/includes/class-string-locator.php';
new String_Locator();