Skip to content

Commit c58d538

Browse files
committed
Update readme.txt to enhance plugin information and compatibility
- Updated plugin requirements: Requires at least 6.3, tested up to 6.7, and requires PHP 8.2. - Expanded description to clarify functionality and usage of the plugin. - Added detailed features list highlighting secure implementation and live preview. - Included security information regarding user capabilities for JavaScript editing. - Provided installation and usage instructions for better user guidance. - Added FAQ section addressing common concerns about performance and user permissions. - Introduced changelog and upgrade notice for version 1.1.0, detailing compatibility updates and security enhancements.
1 parent 1be408e commit c58d538

File tree

1 file changed

+64
-6
lines changed

1 file changed

+64
-6
lines changed

readme.txt

Lines changed: 64 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,69 @@
11
=== Additional JavaScript ===
22
Contributors: PerS
3-
Tags: javascript, customizer
4-
Donate link: https://soderlind.no/donate/
5-
Requires at least: 4.9
6-
Tested up to: 4.9
7-
Requires PHP: 5.6
3+
Tags: javascript, customizer, code, custom code, js
4+
Donate link: https://paypal.me/PerSoderlind
5+
Requires at least: 6.3
6+
Tested up to: 6.7
7+
Stable tag: 1.1.0
8+
Requires PHP: 8.2
89
License: GPL-2.0+
910
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
1011

11-
Add additional JavaScript with WordPress Customizer
12+
Add additional JavaScript to your WordPress site using the WordPress Customizer - safely and with live preview.
13+
14+
== Description ==
15+
16+
Additional JavaScript allows you to add custom JavaScript to your WordPress site directly from the WordPress Customizer. With live preview functionality, you can see your JavaScript changes in real-time before publishing them to your site.
17+
18+
= Features =
19+
* Add custom JavaScript through the familiar WordPress Customizer interface
20+
* Live preview of JavaScript changes
21+
* Secure implementation - only users with the 'unfiltered_html' capability (administrators) can edit JavaScript
22+
* Revision history for your JavaScript code (uses WordPress post revisions)
23+
* Clean, minimal interface focused on code editing
24+
25+
= Security =
26+
This plugin restricts JavaScript editing to users with the 'unfiltered_html' capability, which by default is only granted to administrators on single site installations and super administrators on multisite installations.
27+
28+
== Installation ==
29+
30+
1. Upload the 'additional-javascript' folder to the `/wp-content/plugins/` directory
31+
2. Activate the plugin through the 'Plugins' menu in WordPress
32+
3. Go to Customizer → Additional JavaScript to add your custom JavaScript
33+
34+
== Usage ==
35+
36+
1. Navigate to Appearance → Customize in your WordPress admin area
37+
2. Click on the "Additional JavaScript" section at the bottom of the customizer menu
38+
3. Add your JavaScript code in the editor
39+
4. See the live preview of your changes
40+
5. Click "Publish" to apply your JavaScript to the site
41+
42+
== Frequently Asked Questions ==
43+
44+
= Who can add JavaScript using this plugin? =
45+
46+
Only users with the 'unfiltered_html' capability can add JavaScript using this plugin. By default, this is limited to administrators on single site installations and super administrators on multisite installations.
47+
48+
= Will this slow down my site? =
49+
50+
No, the plugin is designed to be lightweight and only loads the necessary scripts and styles when needed.
51+
52+
= Where is the JavaScript added on my site? =
53+
54+
The JavaScript is added at the end of the `<head>` section of your site with a priority of 110.
55+
56+
== Changelog ==
57+
58+
= 1.1.0 =
59+
* Updated compatibility with WordPress 6.5
60+
* Code improvements and optimization
61+
* Enhanced security measures
62+
63+
= 1.0.0 =
64+
* Initial release
65+
66+
== Upgrade Notice ==
67+
68+
= 1.1.0 =
69+
This version includes compatibility updates for WordPress 6.5 and security enhancements.

0 commit comments

Comments
 (0)