PluginProbe
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts / 2.7.1
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts v2.7.1
2.7.7 2.7.6 2.7.5 2.7.4 trunk 1.3 2.0.4 2.0.6 2.1.91 2.2.4 2.2.7 2.2.9 2.3.1 2.3.10 2.4.10 2.4.2 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.6.0 2.6.1 2.7.0 All 28 releases
← All changes | insert_php.php +3 -8 trunk2.7.1 View file →
@@ -3,9 +3,9 @@
3 3 * Plugin Name: Woody Code Snippets
4 4 * Plugin URI: https://woodysnippet.com/
5 5 * Description: Executes PHP code, uses conditional logic to insert ads, text, media content and external service's code. Ensures no content duplication.
6 6 * Author: Themeisle
7 - * Version: 2.7.7
7 + * Version: 2.7.1
8 8 * WordPress Available: yes
9 9 * Requires License: no
10 10 * Text Domain: insert-php
11 11 * Domain Path: /languages/
@@ -40,9 +40,9 @@
40 40
41 41 // Set the constant that the plugin is activated.
42 42 define( 'WINP_PLUGIN_ACTIVE', true );
43 43
44 -define( 'WINP_PLUGIN_VERSION', '2.7.7' );
44 +define( 'WINP_PLUGIN_VERSION', '2.6.1' );
45 45
46 46 // Root directory of the plugin.
47 47 define( 'WINP_PLUGIN_DIR', __DIR__ );
48 48
@@ -167,16 +167,10 @@
167 167
168 168 require_once WINP_PLUGIN_DIR . '/includes/class.insertion.locations.php';
169 169 require_once WINP_PLUGIN_DIR . '/includes/class.http.php';
170 170 require_once WINP_PLUGIN_DIR . '/includes/class.helpers.php';
171 -require_once WINP_PLUGIN_DIR . '/includes/class.code-validator.php';
172 -require_once WINP_PLUGIN_DIR . '/includes/class.error-handler.php';
173 171 require_once WINP_PLUGIN_DIR . '/includes/class.plugin.php';
174 172
175 -if ( file_exists( WINP_PLUGIN_DIR . '/vendor/autoload.php' ) ) {
176 - require_once WINP_PLUGIN_DIR . '/vendor/autoload.php';
177 -}
178 -
179 173 /**
180 174 * Adds a hint and button to the fatal error message.
181 175 *
182 176 * Since WordPress 5.2, we have access to a special mode for catching PHP errors.
@@ -300,8 +294,9 @@
300 294 global $winp_snippets_locations;
301 295 $winp_snippets_locations = new WINP_Insertion_Locations();
302 296
303 297 try {
298 + require_once WINP_PLUGIN_DIR . '/vendor/autoload.php';
304 299 new WINP_Plugin();
305 300 } catch ( Exception $exception ) {
306 301 // Plugin wasn't initialized due to an error
307 302 define( 'WINP_PLUGIN_THROW_ERROR', true );