Linux 软件免费装
Banner图

Effortless Shortcode Insertion

开发者 domclic
更新时间 2025年5月30日 13:51
PHP版本: 7.0 及以上
WordPress版本: 6.8
版权: GPLv2 or later
版权网址: 版权信息

标签

shortcodes content management custom shortcodes wordpress shortcodes

下载

1.0.19

详情介绍:

Effortless Shortcode Insertion is a lightweight WordPress plugin that allows you to create, manage, and insert custom shortcodes with ease. It includes a set of built-in shortcodes for common dynamic content and provides an intuitive interface to add your own. Features: Built-in shortcodes for current URL, page title, site info, user data, and more. Add custom shortcodes via an admin interface. Import/export shortcodes for easy migration. Secure and sanitized inputs to ensure safety. Translation-ready with support for multiple languages.

安装:

Upload the effortless-shortcode-insertion folder to the /wp-content/plugins/ directory. Activate the plugin through the 'Plugins' menu in WordPress. Navigate to Settings > Effortless Shortcodes to manage your shortcodes.

升级注意事项:

1.0.19 Removed wrong links 1.0.18 This update includes PHPCS compliance fixes: renamed main file, removed trailing whitespace, fixed alignment, and replaced short ternary. Update for improved code quality and compliance. 0.1.17 This update resolves the security warning for non-sanitized $_POST['shortcodes']. Update for enhanced security. 0.1.16 This update resolves the security warning for non-sanitized $_POST['shortcodes'] at line 316, ensuring no warnings at line 318 or elsewhere. Update immediately for full PHPCS compliance. 0.1.15 This update resolves the security warning for non-sanitized $_POST['shortcodes'] by using isset for safe validation, ensuring full PHPCS compliance. Update immediately for enhanced security. 0.1.14 This update resolves the security warning for non-sanitized shortcode inputs by restructuring validation logic, ensuring full PHPCS compliance. Update immediately for enhanced security. 0.1.13 This update resolves security warnings for non-validated and non-sanitized shortcode inputs, adding proper validation to prevent undefined index issues. Update immediately for enhanced security. 0.1.12 This update resolves a security warning for non-sanitized shortcode inputs before the empty check, ensuring full compliance with WordPress standards. Update immediately for enhanced security. 0.1.11 This update resolves a remaining security warning for non-sanitized shortcode inputs, ensuring full compliance with WordPress standards. Update immediately for enhanced security. 0.1.10 This update resolves security warnings for non-sanitized shortcode inputs, enhancing plugin security. Update immediately to ensure compliance with WordPress standards. 0.1.9 This update addresses security warnings for non-sanitized inputs, improving the plugin's security. Update immediately to ensure safe operation. 0.1.8 This update fixes a critical bug that caused the site to break and addresses security warnings. Update immediately to restore functionality and improve security.

常见问题:

How do I use a shortcode?

Simply add the shortcode (e.g., [site_title]) to your posts, pages, or widgets where you want the content to appear.

Can I create my own shortcodes?

Yes! Go to Settings > Effortless Shortcodes and use the "Add New Shortcode" form to create custom shortcodes.

Are the shortcodes secure?

All inputs are sanitized and validated to ensure security and compatibility with WordPress standards.

Can I import/export shortcodes?

Yes, the plugin supports importing and exporting shortcodes in JSON format via the admin interface.

更新日志:

1.0.19 Removed wrong links 1.0.18 Renamed main plugin file to class-effortless-shortcode-insertion.php for PHPCS compliance. Removed trailing whitespace in HTML form section. Fixed equals sign alignment in save_shortcode method. Replaced short ternary with full if-else in handle_shortcode method. 0.1.17 Fixed security warning for non-sanitized $_POST['shortcodes']. 0.1.16 Fixed security warning for non-sanitized $_POST['shortcodes'] by restructuring condition to avoid direct access before sanitization. Ensured no sanitization warnings at line 316 or 318 for full PHPCS compliance. 0.1.15 Fixed security warning for non-sanitized $_POST['shortcodes'] by using isset for validation before access. Ensured no direct superglobal access before sanitization for full PHPCS compliance. 0.1.14 Fixed security warning for non-sanitized $_POST['shortcodes'] by avoiding direct access in condition checks. Improved input validation for submit_update to ensure PHPCS compliance. 0.1.13 Fixed security warnings for non-validated and non-sanitized $_POST['shortcodes'] input in save_shortcode method. Added isset check for $_POST['shortcodes'] to prevent undefined index notices. 0.1.12 Fixed security warning for non-sanitized $_POST['shortcodes'] input before ! empty check in save_shortcode method. 0.1.11 Fixed security warning for non-sanitized $_POST['shortcodes'] input before is_array check in save_shortcode method. Ensured early sanitization of shortcode data for full PHPCS compliance. 0.1.10 Fixed security warnings for non-sanitized $_POST['shortcodes'] input in save_shortcode method. Improved early sanitization of shortcode data for better security compliance. 0.1.9 Fixed security warnings for non-sanitized inputs ($_POST['append_value'], $_POST['shortcodes'], $_FILES['import_file']). Improved sanitization of form inputs for better security. 0.1.8 Fixed fatal error in handle_shortcode method causing site to break. Resolved security warnings for non-sanitized and non-validated inputs ($_POST['shortcodes'], $_POST['elsci_nonce']). Improved input validation and sanitization for better security. 0.1.5 Fixed security issues with input sanitization and validation. Replaced parse_url with wp_parse_url for consistency. Used gmdate instead of date for timezone-safe year display. 0.1.0 Initial release.