PluginProbe
Code Embed / 2.4
Code Embed v2.4
2.6.4 2.6.3 2.6.2 2.6.1 trunk 1.0 1.1 1.2 1.3 1.4.1 1.5.1 1.6.1 2.0.2 2.1.2 2.2.2 2.3.9 2.4 2.5.1 2.5.2 2.6
← All changes | simple-code-embed.php +14 -22 2.62.4 View file →
@@ -1,18 +1,16 @@
1 1 <?php
2 2 /**
3 3 * Code Embed
4 4 *
5 - * @package simple-embed-code
5 + * @package Code-Embed
6 6 * @author David Artiss
7 7 * @license GPL-2.0-or-later
8 - * @since 1.0
9 - * @version 2.6
10 8 *
11 9 * Plugin Name: Code Embed
12 10 * Plugin URI: https://wordpress.org/plugins/simple-embed-code/
13 - * Description: Code Embed provides a very easy and efficient way to embed code (JavaScript, CSS and HTML) in your posts and pages.
14 - * Version: 2.6
11 + * Description: Code Embed provides a very easy and efficient way to embed code (JavaScript and HTML) in your posts and pages.
12 + * Version: 2.4
15 13 * Requires at least: 4.6
16 14 * Requires PHP: 7.4
17 15 * Author: David Artiss
18 16 * Author URI: https://artiss.blog
@@ -17,9 +15,9 @@
17 15 * Author: David Artiss
18 16 * Author URI: https://artiss.blog
19 17 * Text Domain: simple-embed-code
20 18 * License: GPL v2 or later
21 - * License URI: https://www.gnu.org/licenses/gpl-2.0.html
19 + * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
22 20 *
23 21 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
24 22 * General Public License version 2, as published by the Free Software Foundation. You may NOT assume
25 23 * that you can use any other version of the GPL.
@@ -27,20 +25,12 @@
27 25 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
28 26 * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
29 27 */
30 28
31 -// Exit if accessed directly.
29 +define( 'CODE_EMBED_VERSION', '2.4' );
32 30
33 -if ( ! defined( 'ABSPATH' ) ) {
34 - exit;
35 -}
31 +// Define global to hold the plugin base file name.
36 32
37 -// Define globals.
38 -
39 -if ( ! defined( 'CODE_EMBED_VERSION' ) ) {
40 - define( 'CODE_EMBED_VERSION', '2.6' );
41 -}
42 -
43 33 if ( ! defined( 'CODE_EMBED_PLUGIN_BASE' ) ) {
44 34 define( 'CODE_EMBED_PLUGIN_BASE', plugin_basename( __FILE__ ) );
45 35 }
46 36
@@ -45,15 +35,17 @@
45 35 }
46 36
47 37 // Include all the various functions.
48 38
49 -require_once plugin_dir_path( __FILE__ ) . 'includes/initialise.php'; // Initialization scripts.
39 +$functions_dir = plugin_dir_path( __FILE__ ) . 'includes/';
50 40
51 -require_once plugin_dir_path( __FILE__ ) . 'includes/add-css-scripts.php'; // Add scripts to the main theme.
41 +require_once $functions_dir . 'initialise.php'; // Initialisation scripts.
52 42
53 -require_once plugin_dir_path( __FILE__ ) . 'includes/add-embeds.php'; // Filter to apply code embeds.
43 +require_once $functions_dir . 'add-scripts.php'; // Add scripts to the main theme.
54 44
55 -require_once plugin_dir_path( __FILE__ ) . 'includes/shared.php'; // Functions shared across all my plugins.
45 +require_once $functions_dir . 'add-embeds.php'; // Filter to apply code embeds.
56 46
57 -require_once plugin_dir_path( __FILE__ ) . 'includes/screens.php'; // Add settings and tools screens.
47 +require_once $functions_dir . 'shared.php'; // Functions shared across all my plugins.
58 48
59 -require_once plugin_dir_path( __FILE__ ) . 'includes/secure.php'; // Security functionality.
49 +require_once $functions_dir . 'screens.php'; // Add settings and tools screens.
50 +
51 +require_once $functions_dir . 'meta-box.php'; // Suppress meta-boxes.