From 95d850bfb126afc6c623b29dd832ebb8a249efa0 Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Fri, 2 Feb 2024 01:03:33 +1100 Subject: [PATCH 1/7] Update text in readme.txt. --- CREDITS.md | 82 ++++++++++++++++++++++++++++++++++++++ readme.txt | 114 ++++++++++++++++++++++++++--------------------------- 2 files changed, 138 insertions(+), 58 deletions(-) create mode 100644 CREDITS.md diff --git a/CREDITS.md b/CREDITS.md new file mode 100644 index 00000000..4920e14d --- /dev/null +++ b/CREDITS.md @@ -0,0 +1,82 @@ + +## Translators + +Code Snippets can be used in these different languages thanks to the following translators: + +* Belarusian + * [Hrank.com](https://www.hrank.com) +* Brazilian Portuguese + * [Bruno Borges](http://brunoborges.info) +* Chinese + * [Jincheng Shan](http://shanjincheng.com) + * [诗语](https://profiles.wordpress.org/f2010525/) +* Chinese (Taiwan) + * [Alex Lion](https://www.alexclassroom.com/) + * [Chun-Chih Cheng](https://profiles.wordpress.org/alex1114/) +* Croatian + * [Borisa Djuraskovic from Web Hosting Hub](https://www.webhostinghub.com/) +* Czech + * [Lukáš Tesař](mailto:lukastesar03@gmail.com) and [Jakub Humpolec](https://profiles.wordpress.org/jumphy/) +* Danish + * [Finn Sommer Jensen](https://profiles.wordpress.org/finnsommer/) +* Dutch + * [Sander Spies](https://github.com/sander1) + * [Peter Smits](https://psmits.com) + * [mother.of.code.a11n](https://profiles.wordpress.org/imazed/) +* English (New Zealand) and English (UK) + * [webaware](https://profiles.wordpress.org/webaware/) +* English (South Africa) + * [webaware](https://profiles.wordpress.org/webaware/) + * [Ian Barnes](https://profiles.wordpress.org/ianbarnes/) +* French + * [momo-fr](https://www.momofr.net/) + * [Didier Demory](https://www.wptrads.com/) + * [Cyrille Sanson](https://100son.net/) + * [Shea Bunge](https://sheabunge.com) +* French (Canada) + * [Dominic Desbiens](https://www.dominicdesbiens.com/) +* German + * [Mario Siegmann](https://web-alltag.de/) + * [Joerg Knoerchen](https://www.sensorgrafie.de/) + * [David Decker](https://deckerweb.de) + * [Andreas](https://profiles.wordpress.org/perryzelda/) +* Greek + * [Konstantinos Megas](https://profiles.wordpress.org/nextdoorpanda/) + * [Toni Bishop from Jrop](https://www.jrop.com/) +* Indonesian + * [Jordan Silaen from ChameleonJohn.com](https://www.chameleonjohn.com/) +* Italian + * [Usman Wagan](https://coupontoaster.com/) + * [Luisa Ravelli](https://profiles.wordpress.org/darkavenger/) + * [ElectricFeet](https://profiles.wordpress.org/electricfeet/) +* Japanese + * [mt8](https://mt8.biz/) + * [Takakazu Nagaya](https://profiles.wordpress.org/tanagaya/) + * [Naoko Takano](https://naoko.blog/) + * [melvas](https://profiles.wordpress.org/melvas/) +* Persian + * [Mohammad Novintanon](http://mnovintan.ir/) +* Russian + * [Alexander Samsonov](http://www.wordpressplugins.ru/administration/code-snippets.html) + * [Yui](https://profiles.wordpress.org/fierevere/) + * [Denis Yanchevskiy](https://denisco.pro/) + * [krioteh](https://profiles.wordpress.org/krioteh/) +* Slovak + * [Ján Fajčák](https://wp.sk) +* Spanish (Colombia) and Spanish (Ecuador) + * [Javier Esteban](https://javieresteban.org/) +* Spanish (Spain) + * [Ibidem Group](https://www.ibidemgroup.com) + * [Javier Esteban](https://javieresteban.org/) + * [Fernando Tellado](https://ayudawp.com/) + * [Juanma Aranda](https://juanmaaranda.com/) +* Spanish (Venezuela) + * [Yordan Soares](https://yordansoar.es/) +* Swedish + * [Argentum](https://profiles.wordpress.org/argentum/) + * [Fredrik](https://profiles.wordpress.org/elbogen/) + * [Tor-Bjorn Fjellner](https://profiles.wordpress.org/tobifjellner/) +* Urdu + * [Samuel Badree](https://mobilemall.pk/) +* Vietnamese + * [Tuan Phan](https://profiles.wordpress.org/khunglong/) diff --git a/readme.txt b/readme.txt index d190a0d4..50635fff 100644 --- a/readme.txt +++ b/readme.txt @@ -5,68 +5,49 @@ Tags: snippets, functions, multisite, code, php, html, css, javascript License: MIT License URI: license.txt Stable tag: 3.6.2 -Tested up to: 6.4 +Tested up to: 6.4.3 -An easy, clean and simple way to run code snippets on your site. +An easy, clean and simple way to enhance your site with code snippets. == Description == -Code Snippets is an easy, clean and simple way to run code snippets on your site. It removes the need to add custom snippets to your theme's `functions.php` file. +✂ Code Snippets provides an effortless way to enhance your WordPress site. Say goodbye to the hassle of tweaking your +theme's `functions.php` file and downloading endless plugins – Code Snippets simplifies the process! -[**Code Snippets Pro** is now available, with full CSS, JavaScript, Gutenberg and Elementor integrations.](https://codesnippets.pro/pricing/) +**🚀 Upgrade to Code Snippets Pro** for complete CSS, JavaScript, Gutenberg, and Elementor integrations. Elevate your +snippets experience now: [Check out our pricing](https://codesnippets.pro/pricing). -A snippet is a small chunk of PHP code that you can use to extend the functionality of a WordPress-powered website; essentially a mini-plugin with less load on your site. +A snippet is like a mini-plugin for your WordPress site, providing added functionality without the clutter. Unlike other +solutions that involve dump code into your `functions.php` file, Code Snippets offers a sleek GUI interface for seamless +integration and real-time execution. -Most snippet-hosting sites tell you to add snippet code to your active theme's `functions.php` file, which can get rather long and messy after a while. +**🎥 Watch a quick overview by Imran Siddiq:** [See Code Snippets in action](https://youtu.be/EMjIWjcYONk). -Code Snippets changes that by providing a GUI interface for adding snippets and **actually running them on your site** just as if they were in your theme's `functions.php` file. +https://youtu.be/EMjIWjcYONk -**Quick overview of Code Snippets by Imran Siddiq** +Managing snippets is a breeze with our graphical interface, similar to the Plugins menu. Activate and deactivate +snippets effortlessly, just like plugins. -https://youtu.be/EMjIWjcYONk +**📚 Learn from Ferdy Korpershoek's tutorial:** [Get hands-on with Code Snippets](https://youtu.be/29jD2BcBX5w). -Code Snippets provides graphical interface, similar to the Plugins menu, for managing snippets. Snippets can be activated and deactivated, just like plugins. +https://youtu.be/29jD2BcBX5w -The snippet editor includes fields for a name, a visual editor-enabled description, tags to allow you to categorize snippets, and a full-featured code editor. Snippets can be exported for transfer to another site, either in JSON for later importing by the Code Snippets plugin, or in PHP for creating your own plugin or theme. +The snippet editor lets you add a name, a visually appealing description, and tags for easy categorization. Export +snippets in JSON or PHP for seamless transfer between sites. -**Comprehensive Code Snippets tutorial with practical examples by Ferdy Korpershoek** +**🌐 Connect with us:** -https://youtu.be/29jD2BcBX5w +* [Support Forum](https://wordpress.org/support/plugin/code-snippets) +* [Facebook Community](https://facebook.com/groups/codesnippetsplugin) +* [GitHub Repository](https://github.com/codesnippetspro/code-snippets) + +Like our plugin? Find it useful? Share your experience by leaving a review +on [WordPress.org](https://wordpress.org/support/view/plugin-reviews/code-snippets). Your feedback is instrumental to +shaping our future growth! -If you have any feedback, issues, or suggestions for improvements please leave a topic in the [Support Forum](https://wordpress.org/support/plugin/code-snippets), [join the community on Facebook](https://facebook.com/groups/codesnippetsplugin), or [check us out on GitHub](https://github.com/codesnippetspro/code-snippets). - -If you like this plugin, or it is useful to you in some way, please consider reviewing it on [WordPress.org](https://wordpress.org/support/view/plugin-reviews/code-snippets). - -== Translations == - -Code Snippets can be used in these different languages thanks to the following translators: - -* Belarusian – [Hrank.com](https://www.hrank.com) -* Brazilian Portuguese – [Bruno Borges](http://brunoborges.info) -* Chinese – [Jincheng Shan](http://shanjincheng.com) and [诗语](https://profiles.wordpress.org/f2010525/) -* Chinese (Taiwan) – [Alex Lion](https://www.alexclassroom.com/) and [Chun-Chih Cheng](https://profiles.wordpress.org/alex1114/) -* Croatian – [Borisa Djuraskovic from Web Hosting Hub](https://www.webhostinghub.com/) -* Czech – [Lukáš Tesař](mailto:lukastesar03@gmail.com) and [Jakub Humpolec](https://profiles.wordpress.org/jumphy/) -* Danish – [Finn Sommer Jensen](https://profiles.wordpress.org/finnsommer/) -* Dutch – [Sander Spies](https://github.com/sander1), [Peter Smits](https://psmits.com) and [mother.of.code.a11n](https://profiles.wordpress.org/imazed/) -* English (New Zealand) and English (UK) – [webaware](https://profiles.wordpress.org/webaware/) -* English (South Africa) – [webaware](https://profiles.wordpress.org/webaware/) and [Ian Barnes](https://profiles.wordpress.org/ianbarnes/) -* French – [momo-fr](https://www.momofr.net/), [Didier Demory](https://www.wptrads.com/), [Cyrille Sanson](https://100son.net/) and [Shea Bunge](https://sheabunge.com) -* French (Canada) – [Dominic Desbiens](https://www.dominicdesbiens.com/) -* German – [Mario Siegmann](https://web-alltag.de/), [Joerg Knoerchen](https://www.sensorgrafie.de/), [David Decker](https://deckerweb.de) and [Andreas](https://profiles.wordpress.org/perryzelda/) -* Greek – [Konstantinos Megas](https://profiles.wordpress.org/nextdoorpanda/) and [Toni Bishop from Jrop](https://www.jrop.com/) -* Indonesian – [Jordan Silaen from ChameleonJohn.com](https://www.chameleonjohn.com/) -* Italian – [Usman Wagan](https://coupontoaster.com/), [Luisa Ravelli](https://profiles.wordpress.org/darkavenger/) and [ElectricFeet](https://profiles.wordpress.org/electricfeet/) -* Japanese – [mt8](https://mt8.biz/), [Takakazu Nagaya](https://profiles.wordpress.org/tanagaya/), [Naoko Takano](https://naoko.blog/) and [melvas](https://profiles.wordpress.org/melvas/) -* Persian – [Mohammad Novintanon](http://mnovintan.ir/) -* Russian – [Alexander Samsonov](http://www.wordpressplugins.ru/administration/code-snippets.html), [Yui](https://profiles.wordpress.org/fierevere/), [Denis Yanchevskiy](https://denisco.pro/) and [krioteh](https://profiles.wordpress.org/krioteh/) -* Slovak – [Ján Fajčák](https://wp.sk) -* Spanish (Colombia) and Spanish (Ecuador) – [Javier Esteban](https://javieresteban.org/) -* Spanish (Spain) – [Ibidem Group](https://www.ibidemgroup.com), [Javier Esteban](https://javieresteban.org/), [Fernando Tellado](https://ayudawp.com/) and [Juanma Aranda](https://juanmaaranda.com/) -* Spanish (Venezuela) – [Yordan Soares](https://yordansoar.es/) -* Swedish – [Argentum](https://profiles.wordpress.org/argentum/), [Fredrik](https://profiles.wordpress.org/elbogen/) and [Tor-Bjorn Fjellner](https://profiles.wordpress.org/tobifjellner/) -* Urdu – [Samuel Badree](https://mobilemall.pk/) -* Vietnamese – [Tuan Phan](https://profiles.wordpress.org/khunglong/) +We'd like to thank the wonderful people who have helped contribute translations to allow Code Snippets to be used in +different languages. +[You can find a full list here](https://github.com/codesnippetspro/code-snippets/blob/core/CREDITS.md#translators). == Installation == @@ -86,41 +67,58 @@ Code Snippets can be used in these different languages thanks to the following t 3. Upload the contents of the zip file to the `wp-content/plugins/` folder of your WordPress installation 4. Activate the Code Snippets plugin from 'Plugins' page. -Network Activating Code Snippets through the Network Dashboard will enable a special interface for running snippets across the entire network. +Network Activating Code Snippets through the Network Dashboard will enable a special interface for running snippets +across the entire network. == Frequently Asked Questions == -A full list of our Frequently Asked Questions can be found at [help.codesnippets.pro](https://help.codesnippets.pro/collection/3-faq). +A full list of our Frequently Asked Questions can be found +at [help.codesnippets.pro](https://help.codesnippets.pro/collection/3-faq). = How can I recover my site if it is crashed by a buggy snippet? = -You can recover your site by enabling the Code Snippets safe mode feature. Instructions for how to turn it on are available here: . +You can recover your site by enabling the Code Snippets safe mode feature. Instructions for how to turn it on are +available here: . = Will I lose my snippets if I change the theme or upgrade WordPress? = No, the snippets are stored in the WordPress database, independent of the theme and unaffected by WordPress upgrades. = Can the plugin be completely uninstalled? = -If you enable the 'Complete Uninstall' option on the plugin settings page, Code Snippets will clean up all of its data when deleted through the WordPress 'Plugins' menu. This includes all stored snippets. If you would like to preserve the snippets, ensure they are exported first. +If you enable the 'Complete Uninstall' option on the plugin settings page, Code Snippets will clean up all of its data +when deleted through the WordPress 'Plugins' menu. This includes all stored snippets. If you would like to preserve the +snippets, ensure they are exported first. = Can I copy snippets that I have created to another WordPress site? = -Yes! You can individually export a single snippet using the link below the snippet name on the 'Manage Snippets' page or bulk export multiple snippets using the 'Bulk Actions' feature. Snippets can later be imported using the 'Import Snippets' page by uploading the export file. +Yes! You can individually export a single snippet using the link below the snippet name on the 'Manage Snippets' page or +bulk export multiple snippets using the 'Bulk Actions' feature. Snippets can later be imported using the 'Import +Snippets' page by uploading the export file. = Can I export my snippets to PHP for a site where I'm not using the Code Snippets plugin? = -Yes. Click the checkboxes next to the snippets you want to export, and then choose **Export to PHP** from the Bulk Actions menu and click Apply. The generated PHP file will contain the exported snippets' code, as well as their name and description in comments. +Yes. Click the checkboxes next to the snippets you want to export, and then choose **Export to PHP** from the Bulk +Actions menu and click Apply. The generated PHP file will contain the exported snippets' code, as well as their name and +description in comments. = Can I run network-wide snippets on a multisite installation? = -You can run snippets across an entire multisite network by **Network Activating** Code Snippets through the Network Dashboard. You can also activate Code Snippets just on the main site, and then individually on other sites of your choice. +You can run snippets across an entire multisite network by **Network Activating** Code Snippets through the Network +Dashboard. You can also activate Code Snippets just on the main site, and then individually on other sites of your +choice. = Where are the snippets stored in my WordPress database? = -Snippets are stored in the `wp_snippets` table in the WordPress database. The table name may differ depending on what your table prefix is set to. +Snippets are stored in the `wp_snippets` table in the WordPress database. The table name may differ depending on what +your table prefix is set to. = Where can I go for help or suggest new features? = -You can get help with Code Snippets, report bugs or errors, and suggest new features and improvements either on the [WordPress Support Forums](https://wordpress.org/support/plugin/code-snippets) or on [GitHub](https://github.com/codesnippetspro/code-snippets) +You can get help with Code Snippets, report bugs or errors, and suggest new features and improvements either on +the [WordPress Support Forums](https://wordpress.org/support/plugin/code-snippets) or +on [GitHub](https://github.com/codesnippetspro/code-snippets) = How can I help contribute to the development of the Code Snippets plugin? = -The best way to do this is to fork the [repository on GitHub](https://github.com/codesnippetspro/code-snippets) and send a pull request. +The best way to do this is to fork the [repository on GitHub](https://github.com/codesnippetspro/code-snippets) and send +a pull request. = How can I report security bugs found in this plugin? = -You can report security bugs found in the source code of this plugin through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/code-snippets). The Patchstack team will assist with verification, triage, and notification of security vulnerabilities. +You can report security bugs found in the source code of this plugin through +the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/code-snippets). The Patchstack +team will assist with verification, triage, and notification of security vulnerabilities. == Screenshots == From f067bcb2b31153b79659834aef7abca30e3d1a96 Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Fri, 2 Feb 2024 05:02:44 +1100 Subject: [PATCH 2/7] Fix linebreaks in readme. --- readme.txt | 70 +++++++++++++++++++----------------------------------- 1 file changed, 25 insertions(+), 45 deletions(-) diff --git a/readme.txt b/readme.txt index 50635fff..84d70cc9 100644 --- a/readme.txt +++ b/readme.txt @@ -11,29 +11,24 @@ An easy, clean and simple way to enhance your site with code snippets. == Description == -✂ Code Snippets provides an effortless way to enhance your WordPress site. Say goodbye to the hassle of tweaking your -theme's `functions.php` file and downloading endless plugins – Code Snippets simplifies the process! +✂ Code Snippets provides an effortless way to enhance your WordPress site. Say goodbye to the hassle of tweaking your theme's `functions.php` file and downloading endless plugins – Code Snippets simplifies the process! -**🚀 Upgrade to Code Snippets Pro** for complete CSS, JavaScript, Gutenberg, and Elementor integrations. Elevate your -snippets experience now: [Check out our pricing](https://codesnippets.pro/pricing). +**🚀 Upgrade to Code Snippets Pro** for complete CSS, JavaScript, Gutenberg, and Elementor integrations. Elevate your snippets experience now: [Check out our pricing](https://codesnippets.pro/pricing). -A snippet is like a mini-plugin for your WordPress site, providing added functionality without the clutter. Unlike other -solutions that involve dump code into your `functions.php` file, Code Snippets offers a sleek GUI interface for seamless -integration and real-time execution. +A snippet is like a mini-plugin for your WordPress site, providing added functionality without the clutter. Unlike other solutions that involve dump code into your `functions.php` file, Code Snippets offers a sleek GUI interface for seamless integration and real-time execution. -**🎥 Watch a quick overview by Imran Siddiq:** [See Code Snippets in action](https://youtu.be/EMjIWjcYONk). +**🎥 Watch a quick overview by Imran Siddiq:** https://youtu.be/EMjIWjcYONk -Managing snippets is a breeze with our graphical interface, similar to the Plugins menu. Activate and deactivate -snippets effortlessly, just like plugins. +Managing snippets is a breeze with our graphical interface, similar to the Plugins menu. Activate and deactivate snippets effortlessly, just like plugins. -**📚 Learn from Ferdy Korpershoek's tutorial:** [Get hands-on with Code Snippets](https://youtu.be/29jD2BcBX5w). +The snippet editor lets you add a name, a visually appealing description, and tags for easy categorization. Export snippets in JSON or PHP for seamless transfer between sites. -https://youtu.be/29jD2BcBX5w -The snippet editor lets you add a name, a visually appealing description, and tags for easy categorization. Export -snippets in JSON or PHP for seamless transfer between sites. +**📚 Learn from Ferdy Korpershoek's tutorial:** + +https://youtu.be/29jD2BcBX5w **🌐 Connect with us:** @@ -41,13 +36,9 @@ snippets in JSON or PHP for seamless transfer between sites. * [Facebook Community](https://facebook.com/groups/codesnippetsplugin) * [GitHub Repository](https://github.com/codesnippetspro/code-snippets) -Like our plugin? Find it useful? Share your experience by leaving a review -on [WordPress.org](https://wordpress.org/support/view/plugin-reviews/code-snippets). Your feedback is instrumental to -shaping our future growth! +Like our plugin? Find it useful? Share your experience by leaving a review on [WordPress.org](https://wordpress.org/support/view/plugin-reviews/code-snippets). Your feedback is instrumental to shaping our future growth! -We'd like to thank the wonderful people who have helped contribute translations to allow Code Snippets to be used in -different languages. -[You can find a full list here](https://github.com/codesnippetspro/code-snippets/blob/core/CREDITS.md#translators). +We'd like to thank the wonderful people who have helped contribute translations to allow Code Snippets to be used in different languages. [You can find a full list here](https://github.com/codesnippetspro/code-snippets/blob/core/CREDITS.md#translators). == Installation == @@ -67,53 +58,42 @@ different languages. 3. Upload the contents of the zip file to the `wp-content/plugins/` folder of your WordPress installation 4. Activate the Code Snippets plugin from 'Plugins' page. -Network Activating Code Snippets through the Network Dashboard will enable a special interface for running snippets -across the entire network. +Network Activating Code Snippets through the Network Dashboard will enable a special interface for running snippets across the entire network. == Frequently Asked Questions == -A full list of our Frequently Asked Questions can be found -at [help.codesnippets.pro](https://help.codesnippets.pro/collection/3-faq). +A full list of our Frequently Asked Questions can be found at [help.codesnippets.pro](https://help.codesnippets.pro/collection/3-faq). = How can I recover my site if it is crashed by a buggy snippet? = -You can recover your site by enabling the Code Snippets safe mode feature. Instructions for how to turn it on are -available here: . +You can recover your site by enabling the Code Snippets safe mode feature. Instructions for how to turn it on are available here: . = Will I lose my snippets if I change the theme or upgrade WordPress? = No, the snippets are stored in the WordPress database, independent of the theme and unaffected by WordPress upgrades. = Can the plugin be completely uninstalled? = -If you enable the 'Complete Uninstall' option on the plugin settings page, Code Snippets will clean up all of its data -when deleted through the WordPress 'Plugins' menu. This includes all stored snippets. If you would like to preserve the -snippets, ensure they are exported first. +If you enable the 'Complete Uninstall' option on the plugin settings page, Code Snippets will clean up all of its data when deleted through the WordPress 'Plugins' menu. +This includes all stored snippets. If you would like to preserve the snippets, ensure they are exported first. = Can I copy snippets that I have created to another WordPress site? = -Yes! You can individually export a single snippet using the link below the snippet name on the 'Manage Snippets' page or -bulk export multiple snippets using the 'Bulk Actions' feature. Snippets can later be imported using the 'Import -Snippets' page by uploading the export file. +Yes! You can individually export a single snippet using the link below the snippet name on the 'Manage Snippets' page or bulk export multiple snippets using the 'Bulk Actions' feature. +Snippets can later be imported using the 'Import Snippets' page by uploading the export file. = Can I export my snippets to PHP for a site where I'm not using the Code Snippets plugin? = -Yes. Click the checkboxes next to the snippets you want to export, and then choose **Export to PHP** from the Bulk -Actions menu and click Apply. The generated PHP file will contain the exported snippets' code, as well as their name and -description in comments. +Yes. Click the checkboxes next to the snippets you want to export, and then choose **Export to PHP** from the Bulk Actions menu and click Apply. +The generated PHP file will contain the exported snippets' code, as well as their name and description in comments. = Can I run network-wide snippets on a multisite installation? = -You can run snippets across an entire multisite network by **Network Activating** Code Snippets through the Network -Dashboard. You can also activate Code Snippets just on the main site, and then individually on other sites of your -choice. +You can run snippets across an entire multisite network by **Network Activating** Code Snippets through the Network Dashboard. +You can also activate Code Snippets just on the main site, and then individually on other sites of your choice. = Where are the snippets stored in my WordPress database? = -Snippets are stored in the `wp_snippets` table in the WordPress database. The table name may differ depending on what -your table prefix is set to. +Snippets are stored in the `wp_snippets` table in the WordPress database. The table name may differ depending on what your table prefix is set to. = Where can I go for help or suggest new features? = -You can get help with Code Snippets, report bugs or errors, and suggest new features and improvements either on -the [WordPress Support Forums](https://wordpress.org/support/plugin/code-snippets) or -on [GitHub](https://github.com/codesnippetspro/code-snippets) +You can get help with Code Snippets, report bugs or errors, and suggest new features and improvements either on the [WordPress Support Forums](https://wordpress.org/support/plugin/code-snippets) or on [GitHub](https://github.com/codesnippetspro/code-snippets) = How can I help contribute to the development of the Code Snippets plugin? = -The best way to do this is to fork the [repository on GitHub](https://github.com/codesnippetspro/code-snippets) and send -a pull request. +The best way to do this is to fork the [repository on GitHub](https://github.com/codesnippetspro/code-snippets) and send a pull request. = How can I report security bugs found in this plugin? = You can report security bugs found in the source code of this plugin through From 36561c342896e861efb831b7427c263cf8f99753 Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Fri, 2 Feb 2024 16:01:13 +1100 Subject: [PATCH 3/7] Update readme. --- readme.txt | 39 +++++++++++++++++---------------------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/readme.txt b/readme.txt index 84d70cc9..a18530e9 100644 --- a/readme.txt +++ b/readme.txt @@ -1,7 +1,7 @@ === Code Snippets === Contributors: bungeshea, ver3, lightbulbman, 0aksmith, codesnippetspro Donate link: https://codesnippets.pro -Tags: snippets, functions, multisite, code, php, html, css, javascript +Tags: snippets, functions, multisite, code, php, html, css, javascript, js, content, scripts, styles, cloud, shortcode License: MIT License URI: license.txt Stable tag: 3.6.2 @@ -11,20 +11,21 @@ An easy, clean and simple way to enhance your site with code snippets. == Description == -✂ Code Snippets provides an effortless way to enhance your WordPress site. Say goodbye to the hassle of tweaking your theme's `functions.php` file and downloading endless plugins – Code Snippets simplifies the process! +**✂ Code Snippets** provides an effortless way to enhance your WordPress site. -**🚀 Upgrade to Code Snippets Pro** for complete CSS, JavaScript, Gutenberg, and Elementor integrations. Elevate your snippets experience now: [Check out our pricing](https://codesnippets.pro/pricing). +**🚀 Upgrade to Code Snippets Pro** for complete CSS, JavaScript, Gutenberg, Elementor and cloud synchronisation integrations. **[Elevate your snippets experience now!](https://codesnippets.pro/pricing)** -A snippet is like a mini-plugin for your WordPress site, providing added functionality without the clutter. Unlike other solutions that involve dump code into your `functions.php` file, Code Snippets offers a sleek GUI interface for seamless integration and real-time execution. +Say goodbye to the hassle of tweaking your theme's `functions.php` file and downloading endless plugins – Code Snippets simplifies the process! -**🎥 Watch a quick overview by Imran Siddiq:** +A snippet is like a mini-plugin for your WordPress site, providing added functionality without the clutter. -https://youtu.be/EMjIWjcYONk +Unlike other solutions that involve dumping code into your `functions.php` file, Code Snippets offers an intuitive graphical interface for seamless integration and real-time execution. Managing snippets is as easy as activating and deactivating plugins, only without the bloat and overhead. -Managing snippets is a breeze with our graphical interface, similar to the Plugins menu. Activate and deactivate snippets effortlessly, just like plugins. +**🎥 Watch a quick overview by Imran Siddiq:** -The snippet editor lets you add a name, a visually appealing description, and tags for easy categorization. Export snippets in JSON or PHP for seamless transfer between sites. +https://youtu.be/EMjIWjcYONk +☁️ Each copy of Code Snippets includes full integration with the community-powered [Code Snippets Cloud](https://codesnippets.cloud/) platform, providing easy access to hundreds of tweaks and enhancements ready to power-up any WordPress site. **📚 Learn from Ferdy Korpershoek's tutorial:** @@ -36,9 +37,9 @@ https://youtu.be/29jD2BcBX5w * [Facebook Community](https://facebook.com/groups/codesnippetsplugin) * [GitHub Repository](https://github.com/codesnippetspro/code-snippets) -Like our plugin? Find it useful? Share your experience by leaving a review on [WordPress.org](https://wordpress.org/support/view/plugin-reviews/code-snippets). Your feedback is instrumental to shaping our future growth! +🌟 Like our plugin? Find it useful? Please consider sharing your experience by [leaving a review on WordPress.org](https://wordpress.org/support/view/plugin-reviews/code-snippets). Your feedback is instrumental to shaping our future growth! -We'd like to thank the wonderful people who have helped contribute translations to allow Code Snippets to be used in different languages. [You can find a full list here](https://github.com/codesnippetspro/code-snippets/blob/core/CREDITS.md#translators). +🌍 We'd like to thank the wonderful people who have helped contribute translations to allow Code Snippets to be used in different languages. [You can find a full list here](https://github.com/codesnippetspro/code-snippets/blob/core/CREDITS.md#translators). == Installation == @@ -71,34 +72,28 @@ You can recover your site by enabling the Code Snippets safe mode feature. Instr No, the snippets are stored in the WordPress database, independent of the theme and unaffected by WordPress upgrades. = Can the plugin be completely uninstalled? = -If you enable the 'Complete Uninstall' option on the plugin settings page, Code Snippets will clean up all of its data when deleted through the WordPress 'Plugins' menu. -This includes all stored snippets. If you would like to preserve the snippets, ensure they are exported first. +If you enable the 'Complete Uninstall' option on the plugin settings page, Code Snippets will clean up all of its data when deleted through the WordPress 'Plugins' menu. This includes all stored snippets. If you would like to preserve the snippets, ensure they are exported first. = Can I copy snippets that I have created to another WordPress site? = -Yes! You can individually export a single snippet using the link below the snippet name on the 'Manage Snippets' page or bulk export multiple snippets using the 'Bulk Actions' feature. -Snippets can later be imported using the 'Import Snippets' page by uploading the export file. +Yes! You can individually export a single snippet using the link below the snippet name on the 'Manage Snippets' page or bulk export multiple snippets using the 'Bulk Actions' feature. Snippets can later be imported using the 'Import Snippets' page by uploading the export file. = Can I export my snippets to PHP for a site where I'm not using the Code Snippets plugin? = -Yes. Click the checkboxes next to the snippets you want to export, and then choose **Export to PHP** from the Bulk Actions menu and click Apply. -The generated PHP file will contain the exported snippets' code, as well as their name and description in comments. +Yes. Click the checkboxes next to the snippets you want to export, and then choose **Export to PHP** from the Bulk Actions menu and click Apply. The generated PHP file will contain the exported snippets' code, as well as their name and description in comments. = Can I run network-wide snippets on a multisite installation? = -You can run snippets across an entire multisite network by **Network Activating** Code Snippets through the Network Dashboard. -You can also activate Code Snippets just on the main site, and then individually on other sites of your choice. +You can run snippets across an entire multisite network by **Network Activating** Code Snippets through the Network Dashboard. You can also activate Code Snippets just on the main site, and then individually on other sites of your choice. = Where are the snippets stored in my WordPress database? = Snippets are stored in the `wp_snippets` table in the WordPress database. The table name may differ depending on what your table prefix is set to. = Where can I go for help or suggest new features? = -You can get help with Code Snippets, report bugs or errors, and suggest new features and improvements either on the [WordPress Support Forums](https://wordpress.org/support/plugin/code-snippets) or on [GitHub](https://github.com/codesnippetspro/code-snippets) +You can get help with Code Snippets, report bugs or errors, and suggest new features and improvements either on the [WordPress Support Forums](https://wordpress.org/support/plugin/code-snippets) or on [GitHub](https://github.com/codesnippetspro/code-snippets). = How can I help contribute to the development of the Code Snippets plugin? = The best way to do this is to fork the [repository on GitHub](https://github.com/codesnippetspro/code-snippets) and send a pull request. = How can I report security bugs found in this plugin? = -You can report security bugs found in the source code of this plugin through -the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/code-snippets). The Patchstack -team will assist with verification, triage, and notification of security vulnerabilities. +You can report security bugs found in the source code of this plugin through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/code-snippets). The Patchstack team will assist with verification, triage, and notification of security vulnerabilities. == Screenshots == From 260e423f60ff93f03d57a088717dd0afbeab9614 Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Wed, 14 Feb 2024 14:49:02 +1100 Subject: [PATCH 4/7] Fix translations not loading for JavaScript files. --- php/admin-menus/class-edit-menu.php | 34 +++++++++++++-------------- php/admin-menus/class-manage-menu.php | 2 ++ php/settings/editor-preview.php | 2 ++ 3 files changed, 20 insertions(+), 18 deletions(-) diff --git a/php/admin-menus/class-edit-menu.php b/php/admin-menus/class-edit-menu.php index 0253d0ad..9cf9e6c3 100644 --- a/php/admin-menus/class-edit-menu.php +++ b/php/admin-menus/class-edit-menu.php @@ -149,37 +149,35 @@ public function enqueue_assets() { enqueue_code_editor( $this->snippet->type ); - $css_deps = [ - 'code-editor', - 'wp-components', - ]; - - $js_deps = [ - 'code-snippets-code-editor', - 'react', - 'react-dom', - 'wp-url', - 'wp-i18n', - 'wp-api-fetch', - 'wp-components', - 'wp-block-editor', - ]; - wp_enqueue_style( self::CSS_HANDLE, plugins_url( "dist/edit$rtl.css", $plugin->file ), - $css_deps, + [ + 'code-editor', + 'wp-components', + ], $plugin->version ); wp_enqueue_script( self::JS_HANDLE, plugins_url( 'dist/edit.js', $plugin->file ), - $js_deps, + [ + 'code-snippets-code-editor', + 'react', + 'react-dom', + 'wp-url', + 'wp-i18n', + 'wp-api-fetch', + 'wp-components', + 'wp-block-editor', + ], $plugin->version, true ); + wp_set_script_translations( self::JS_HANDLE, 'code-snippets' ); + if ( $desc_enabled ) { remove_editor_styles(); wp_enqueue_editor(); diff --git a/php/admin-menus/class-manage-menu.php b/php/admin-menus/class-manage-menu.php index 303bc510..8c700661 100644 --- a/php/admin-menus/class-manage-menu.php +++ b/php/admin-menus/class-manage-menu.php @@ -208,6 +208,8 @@ public function enqueue_assets() { true ); + wp_set_script_translations( 'code-snippets-manage-js', 'code-snippets' ); + if ( 'cloud_search' === $this->get_current_type() ) { Frontend::enqueue_all_prism_themes(); } diff --git a/php/settings/editor-preview.php b/php/settings/editor-preview.php index 04a05ffa..ff9f0892 100644 --- a/php/settings/editor-preview.php +++ b/php/settings/editor-preview.php @@ -41,6 +41,8 @@ function enqueue_editor_preview_assets() { true ); + wp_set_script_translations( 'code-snippets-settings-menu', 'code-snippets' ); + // Extract the CodeMirror-specific editor settings. $setting_fields = get_settings_fields(); $editor_fields = array(); From 54228df341d7efdd1ef9735be50201e07a9e85e8 Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Fri, 23 Feb 2024 18:22:41 +1030 Subject: [PATCH 5/7] Update changelog for 3.6.4. --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19c44fdb..4d609780 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 3.6.4 (unreleased) +* Fixed: Minor type compatability issue with newer versions of PHP. +* Improvement: Increment the revision number of CSS and JS snippet when using the 'Reset Caches' debug action. (PRO) +* Fixed: Undefined array key issue when initiating cloud sync. (PRO) +* Fixed: Bug preventing downloading a single snippet from a bundle. (PRO) +* Added: AI generation for all snippet types: HTML, CSS, JS. (PRO) +* Fixed: Translations not loading for strings in JavaScript files. +* Improved: UX in generate dialog, such as allowing 'Enter' to submit the form. (PRO) +* Added: Button to create a cloud connection directly from the Snippets menu when disconnected. (PRO) + ## 3.6.3 (13 Nov 2023) * Fixed: Import error when initialising cloud sync configuration. (PRO) * Improved: Added debug action for resetting snippets caches. From ecfad99a311d9f6ad7bb69e64d477c0621c87467 Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Sat, 24 Feb 2024 03:10:10 +1030 Subject: [PATCH 6/7] Update version number to 3.6.4-beta.1. --- CHANGELOG.md | 2 +- code-snippets.php | 6 +++--- package-lock.json | 4 ++-- package.json | 2 +- readme.txt | 32 ++++++++++++-------------------- 5 files changed, 19 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d609780..086054d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## 3.6.4 (unreleased) +## 3.6.4 (beta release) * Fixed: Minor type compatability issue with newer versions of PHP. * Improvement: Increment the revision number of CSS and JS snippet when using the 'Reset Caches' debug action. (PRO) * Fixed: Undefined array key issue when initiating cloud sync. (PRO) diff --git a/code-snippets.php b/code-snippets.php index 5df0a4aa..1f0493d5 100644 --- a/code-snippets.php +++ b/code-snippets.php @@ -8,11 +8,11 @@ * License: GPL-2.0-or-later * License URI: license.txt * Text Domain: code-snippets - * Version: 3.6.3 + * Version: 3.6.4-beta.1 * Requires PHP: 7.4 * Requires at least: 5.0 * - * @version 3.6.3 + * @version 3.6.4-beta.1 * @package Code_Snippets * @author Shea Bunge * @copyright 2012-2023 Code Snippets Pro @@ -37,7 +37,7 @@ * * @const string */ - define( 'CODE_SNIPPETS_VERSION', '3.6.3' ); + define( 'CODE_SNIPPETS_VERSION', '3.6.4-beta.1' ); /** * The full path to the main file of this plugin. diff --git a/package-lock.json b/package-lock.json index 8bc7e7d2..a4cff4ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "code-snippets", - "version": "3.6.3", + "version": "3.6.4-beta.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "code-snippets", - "version": "3.6.3", + "version": "3.6.4-beta.1", "license": "GPL-2.0-or-later", "dependencies": { "@codemirror/fold": "^0.19.3", diff --git a/package.json b/package.json index 0fb5de2a..2647cdd9 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "Manage code snippets running on a WordPress-powered site through a graphical interface.", "homepage": "https://wordpress.org/plugins/code-snippets", "main": "gulpfile.babel.ts", - "version": "3.6.3", + "version": "3.6.4-beta.1", "directories": { "test": "tests" }, diff --git a/readme.txt b/readme.txt index a18530e9..aec93fc7 100644 --- a/readme.txt +++ b/readme.txt @@ -4,8 +4,8 @@ Donate link: https://codesnippets.pro Tags: snippets, functions, multisite, code, php, html, css, javascript, js, content, scripts, styles, cloud, shortcode License: MIT License URI: license.txt -Stable tag: 3.6.2 -Tested up to: 6.4.3 +Stable tag: 3.6.4-beta.1 +Tested up to: 6.5-beta2 An easy, clean and simple way to enhance your site with code snippets. @@ -104,6 +104,16 @@ You can report security bugs found in the source code of this plugin through the == Changelog == += 3.6.4 (beta release) = +* Fixed: Minor type compatability issue with newer versions of PHP. +* Improvement: Increment the revision number of CSS and JS snippet when using the 'Reset Caches' debug action. (PRO) +* Fixed: Undefined array key issue when initiating cloud sync. (PRO) +* Fixed: Bug preventing downloading a single snippet from a bundle. (PRO) +* Added: AI generation for all snippet types: HTML, CSS, JS. (PRO) +* Fixed: Translations not loading for strings in JavaScript files. +* Improved: UX in generate dialog, such as allowing 'Enter' to submit the form. (PRO) +* Added: Button to create a cloud connection directly from the Snippets menu when disconnected. (PRO) + = 3.6.3 (13 Nov 2023) = * Fixed: Import error when initialising cloud sync configuration. (PRO) * Improved: Added debug action for resetting snippets caches. @@ -230,22 +240,4 @@ thanks to contributions made by [Amaral Krichman](https://github.com/karmaral). * Improved: Compatibility of Elementor widgets with the latest version of Elementor. (PRO) * Improved: Replace icon font menu icon with embedded SVG icon. -= 3.1.2 (03 Jul 2022) = -* Updated external links and branding for Code Snippets Pro. -* Improved: Add link URLs to settings pages, as an alternative to in-page navigation. -* Fixed: Various fixes to block editor scripts. (PRO) -* Fixed: Improved visual style of Gutenberg editor blocks. (PRO) - -= 3.1.1 (13 Jun 2022) = -* Fixed: Download snippets feature not including snippet content. -* Fixed: Alignment of 'opens externally' dashicon. -* Improved: Added additional parameters to `code_snippets/export/filename` filter. - -= 3.1.0 (17 May 2022) = -* Fixed: Caching inconsistencies preventing snippets and settings from refreshing on sites with persistent object caching. -* Improved: Simplified database queries. -* Added: More comprehensive cache coverage, including for active snippets. -* Added: Icon to 'Go Pro' button indicating it opens an external tab. -* Improved: Allow display styles in snippet descriptions. - **[The full changelog is available on GitHub](https://github.com/codesnippetspro/code-snippets/blob/master/CHANGELOG.md)** From 86cc03f2ffd5646d4b0cebc5dd6e1928415371d0 Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Fri, 15 Mar 2024 13:28:58 +1100 Subject: [PATCH 7/7] Update stable tag to 3.6.4. --- CHANGELOG.md | 2 +- code-snippets.php | 6 +++--- package-lock.json | 4 ++-- package.json | 2 +- readme.txt | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 086054d3..6b2cfae2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## 3.6.4 (beta release) +## 3.6.4 (15 Mar 2024) * Fixed: Minor type compatability issue with newer versions of PHP. * Improvement: Increment the revision number of CSS and JS snippet when using the 'Reset Caches' debug action. (PRO) * Fixed: Undefined array key issue when initiating cloud sync. (PRO) diff --git a/code-snippets.php b/code-snippets.php index 1f0493d5..7d553430 100644 --- a/code-snippets.php +++ b/code-snippets.php @@ -8,11 +8,11 @@ * License: GPL-2.0-or-later * License URI: license.txt * Text Domain: code-snippets - * Version: 3.6.4-beta.1 + * Version: 3.6.4 * Requires PHP: 7.4 * Requires at least: 5.0 * - * @version 3.6.4-beta.1 + * @version 3.6.4 * @package Code_Snippets * @author Shea Bunge * @copyright 2012-2023 Code Snippets Pro @@ -37,7 +37,7 @@ * * @const string */ - define( 'CODE_SNIPPETS_VERSION', '3.6.4-beta.1' ); + define( 'CODE_SNIPPETS_VERSION', '3.6.4' ); /** * The full path to the main file of this plugin. diff --git a/package-lock.json b/package-lock.json index a4cff4ab..51efb0b6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "code-snippets", - "version": "3.6.4-beta.1", + "version": "3.6.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "code-snippets", - "version": "3.6.4-beta.1", + "version": "3.6.4", "license": "GPL-2.0-or-later", "dependencies": { "@codemirror/fold": "^0.19.3", diff --git a/package.json b/package.json index 2647cdd9..d337c2bd 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "Manage code snippets running on a WordPress-powered site through a graphical interface.", "homepage": "https://wordpress.org/plugins/code-snippets", "main": "gulpfile.babel.ts", - "version": "3.6.4-beta.1", + "version": "3.6.4", "directories": { "test": "tests" }, diff --git a/readme.txt b/readme.txt index aec93fc7..29ec55de 100644 --- a/readme.txt +++ b/readme.txt @@ -4,8 +4,8 @@ Donate link: https://codesnippets.pro Tags: snippets, functions, multisite, code, php, html, css, javascript, js, content, scripts, styles, cloud, shortcode License: MIT License URI: license.txt -Stable tag: 3.6.4-beta.1 -Tested up to: 6.5-beta2 +Stable tag: 3.6.4 +Tested up to: 6.5-RC2 An easy, clean and simple way to enhance your site with code snippets. @@ -104,7 +104,7 @@ You can report security bugs found in the source code of this plugin through the == Changelog == -= 3.6.4 (beta release) = += 3.6.4 (15 Mar 2024) = * Fixed: Minor type compatability issue with newer versions of PHP. * Improvement: Increment the revision number of CSS and JS snippet when using the 'Reset Caches' debug action. (PRO) * Fixed: Undefined array key issue when initiating cloud sync. (PRO)