PluginProbe
Lasso Lite – Affiliate Link Manager & Product Displays / 104
Lasso Lite – Affiliate Link Manager & Product Displays v104
158 157 155 156 154 153 152 151 150 149 148 trunk 0.9.9 104 105 106 107 108 109 110 111 112 113 114 115 All 57 releases
← All changes | simple-urls.php +4 -24 158104 View file →
@@ -1,28 +1,8 @@
1 1 <?php
2 2
3 -use LassoLite\Classes\Init;
4 -
5 -if ( ! defined( 'ABSPATH' ) ) {
6 - exit;
7 -}
8 -define( 'SIMPLE_URLS_SLUG', 'surl' );
3 +define( "SIMPLE_URLS_SLUG", "surl" );
9 4 define( 'SIMPLE_URLS_DIR', plugin_dir_path( __FILE__ ) );
10 5 define( 'SIMPLE_URLS_URL', plugins_url( '', __FILE__ ) );
11 -define( 'SIMPLE_URLS_PLUGIN_PATH', __DIR__ );
12 -
13 -require_once SIMPLE_URLS_DIR . '/admin/constant.php';
14 -require_once SIMPLE_URLS_DIR . DIRECTORY_SEPARATOR . 'autoload.php';
15 -require_once SIMPLE_URLS_DIR . '/vendor-prefix/vendor/autoload.php';
16 -
17 -// ? Sentry declaration
18 -require_once SIMPLE_URLS_DIR . '/libs/lasso-lite/lasso-lite-sentry.php';
19 -
20 -require_once SIMPLE_URLS_DIR . '/includes/class-simple-urls.php';
21 -new Simple_Urls();
22 -
23 -if ( is_admin() ) {
24 - require_once SIMPLE_URLS_DIR . '/includes/class-simple-urls-admin.php';
25 - new Simple_Urls_Admin();
26 -}
27 -
28 -new Init();
6 +define( 'SIMPLE_URLS_DOMAIN', "simple-urls" );
7 +require_once __DIR__ . '/includes/class-simple-urls.php';
8 +require_once __DIR__ . '/includes/class-simple-urls-admin.php';