Essential Script adds client-side script to individual areas of your Web site.
Screenshots
Essential Script admin dashboard
Essential Script does use of wp_enqueue_scripts
Essential Script widget
FAQ
Installation Instructions
This section describes how to install the plugin and get it working:
- Upload the
essential-script
folder to the /wp-content/plugins/
directory.
- Activate the plugin through the ‘Plugins’ screen in WordPress.
- Access the ‘Tools’ menu in WordPress to configure the plugin.
Or install the plugin through the WordPress plugins screen directly.
Will I lose all of my custom scripts if I uninstall the plugin?
No, you won’t. If you use the option File
to store the script then you can find it saved in the upload directory of WordPress.
Why does this plugin work for untrusted users?
WordPress includes the ability to create a network of sites. If you install a multisite network, then you can allow end users to use Essential Scripts. In this case they are able to post a limited set of HTML markup and even JavaScript code. See PageEssentialscript.php
for more info and settings.
ChangeLog
0.8.1
- Remove incorrect try-catch implementation
- Updated to re-use CodeMirror as bundled with WordPress core library
- Prevents uncaught error if class name is an invalid string
- Document
Options
, fix some inconsistencies
0.8
- Save properties with array object instead of array
- Untrusted users are allowed to post only a limited set of HTML markup
- Implement the Decorator pattern for enqueuing scripts to the front page
- Frontend: Refactoring the
Strategy
pattern to remove conditional statements
- Add FAQ section and tested up to WordPress 4.9.1
- Improve the documentation about the
Template Method
pattern
- Add Context class to separate a request from a concrete strategy
- Rename class name from
footer
to foot
for using variable functions
- Update minimum PHP version requirement
- Add
async
and defer
options to Settings page
- Fix improper use of wp_enqueue_scripts with Shortcode
0.7.1
- Upgrade CodeMirror from 5.31.0 to 5.32.0
- Fix problem with
wp_enqueue_scripts
option was enabled with XML mode
- Fix Syntax highlighter doesn’t match Essential Script option when run in Widget
0.7
- Widgets: start support for Code Editor API
- Move Codemirror code to a more suitable directory
- Introduce decorator for the new Code Editor API with WordPress 4.9
- Fix if statements causing
Undefined index
error in Main.php
- Add option for syntax higlighter
- Improve the
Queuing
code by implementing the Decorator Pattern
0.6.1
- Update i18n related po files
- Remove files and directories no longer necessary
0.6
- Upgrade CodeMirror from 5.30.0 to 5.31.0
- Move the CodeMirror API in its own namespace
- Improves the
Settings API
code by implementing the Factory Pattern
0.5.1
- Fix incorrect variable name
filter
in essential-script.php
0.5
- Add support for Shortcode API
- Introduce
File
class for file management
- Frontend: Restructure the code and implement Strategy pattern
- Add new checkbox to use with Shortcode
0.4.1
- Add Note for proper use of wp_enqueue_scripts option
- Checkbox switches off when WordPress DB is selected
0.4
- Add checkbox to allow the use of wp_enqueue_scripts where is possible
- Use array_key_exists instead of isset
- No longer it does exclude pages but includes
- Rename register_scripts to admin_register_scripts
0.3.1
- Fix Missing argument in
Page.php
on line 52 which prevented the editor from working
0.3
- Upgrade CodeMirror from 5.29.0 to 5.30.0
- Introduce separate javascript file in preparation for 0.3 version
- Initial support for Widgets API
- Fix deprecated non-static method called statically
0.2
- (tag: v0.2) First release of Essential Script