Skip to content

Commit 8ee0c5c

Browse files
authored
Merge pull request #326 from codesnippetspro/tag/v3.9.4
Release: v3.9.4
2 parents 6bac281 + d0e216c commit 8ee0c5c

File tree

12 files changed

+86
-55
lines changed

12 files changed

+86
-55
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
blank_issues_enabled: true
22
contact_links:
33
- name: ❓ Support Question
4-
url: https://help.codesnippets.pro/
4+
url: https://codesnippets.pro/support/
55
about: For Code Snippets users who need assistant and have general usage questions.
66
- name: 💎 Premium Support - For customers only
7-
url: https://help.codesnippets.pro/
7+
url: https://codesnippets.pro/support/
88
about: If you have an active license you are entitled to premium support.
99
- name: 🗨️ Code Snippets Facebook Community
1010
url: https://www.facebook.com/groups/codesnippetsplugin
1111
about: The main Facebook group where all kinds of users come together to help each other.
1212
- name: 📚 Code Snippets Documentation
13-
url: https://help.codesnippets.pro/
13+
url: https://codesnippets.pro/docs/
1414
about: Anything you need to know about Code Snippets and what to do if you may have an issue.

CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## [3.9.4] (2026-01-14)
4+
5+
### Added
6+
* New import functionality to migrate snippets from file uploads with drag-and-drop interface
7+
* Support for importing snippets from other popular plugins (Header Footer Code Manager, Insert Headers and Footers, Insert PHP Code Snippet)
8+
* Enhanced file based execution support with improved multisite mode compatibility
9+
10+
### Changed
11+
* Updated links to more recent documentation pages
12+
13+
### Fixed
14+
* Fixed multisite capability checks in Plugin class
15+
* Fixed snippet execution logic for multisite support by centralizing trashed snippet handling
16+
* Fixed multisite snippet handling to ensure local snippets use correct table and filter out trashed snippets
317

418
## [3.9.3] (2025-12-03)
519

@@ -378,7 +392,7 @@
378392

379393
### Added
380394
* Added additional editor shortcuts to list in tooltip.
381-
* Filter for changing Snippets admin menu position. [See this help article for more information.](https://help.codesnippets.pro/article/61-how-can-i-change-the-location-of-the-snippets-admin-menu)
395+
* Filter for changing Snippets admin menu position. [See this help article for more information.](https://codesnippets.pro/doc/snippets-menu-location/)
382396
* Ability to filter shortcode output. Thanks to contributions from [Jack Szwergold](https://github.com/JackSzwergold).
383397

384398
### Fixed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ WordPress plugin for managing executable code snippets through a graphical inter
44

55
- [Read more on WordPress.org](https://wordpress.org/plugins/code-snippets)
66
- [Download the latest stable version](https://downloads.wordpress.org/plugin/code-snippets.latest-stable.zip)
7-
- [Read the help documentation](https://help.codesnippets.pro)
7+
- [Read the help documentation](https://codesnippets.pro/docs/)
88
- [Leave a review](https://wordpress.org/support/plugin/code-snippets/reviews/#new-post)
99
- [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/code-snippets/)

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "code-snippets",
33
"description": "Manage code snippets running on a WordPress-powered site through a graphical interface.",
44
"homepage": "https://codesnippets.pro",
5-
"version": "3.9.3",
5+
"version": "3.9.4",
66
"main": "src/dist/edit.js",
77
"directories": {
88
"test": "tests"

src/code-snippets.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
* License: GPL-2.0-or-later
99
* License URI: license.txt
1010
* Text Domain: code-snippets
11-
* Version: 3.9.3
11+
* Version: 3.9.4
1212
* Requires PHP: 7.4
1313
* Requires at least: 5.0
1414
*
15-
* @version 3.9.3
15+
* @version 3.9.4
1616
* @package Code_Snippets
1717
* @author Shea Bunge <[email protected]>
1818
* @copyright 2012-2024 Code Snippets Pro
@@ -37,7 +37,7 @@
3737
*
3838
* @const string
3939
*/
40-
define( 'CODE_SNIPPETS_VERSION', '3.9.3' );
40+
define( 'CODE_SNIPPETS_VERSION', '3.9.4' );
4141

4242
/**
4343
* The full path to the main file of this plugin.

src/php/admin-menus/class-welcome-menu.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function get_header_links(): array {
5959
'label' => __( 'Cloud', 'code-snippets' ),
6060
],
6161
'resources' => [
62-
'url' => 'https://help.codesnippets.pro/',
62+
'url' => 'https://codesnippets.pro/support/',
6363
'icon' => 'sos',
6464
'label' => __( 'Support', 'code-snippets' ),
6565
],

src/php/class-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public function plugin_row_meta( array $plugin_meta, string $plugin_file ): arra
179179
array(
180180
sprintf(
181181
$format,
182-
'https://help.codesnippets.pro/',
182+
'https://codesnippets.pro/support/',
183183
esc_attr__( 'Find out how to get support with Code Snippets', 'code-snippets' ),
184184
esc_html__( 'Docs and Support', 'code-snippets' )
185185
),

src/php/class-contextual-help.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ public function load() {
6767
private function load_help_sidebar() {
6868
$sidebar_links = [
6969
'https://wordpress.org/plugins/code-snippets' => __( 'About Plugin', 'code-snippets' ),
70-
'https://help.codesnippets.pro/collection/3-faq' => __( 'FAQ', 'code-snippets' ),
70+
'https://codesnippets.pro/docs/faq/' => __( 'FAQ', 'code-snippets' ),
7171
'https://wordpress.org/support/plugin/code-snippets' => __( 'Support Forum', 'code-snippets' ),
7272
'https://codesnippets.pro' => __( 'Plugin Website', 'code-snippets' ),
7373
];
7474

7575
$kses = [
76-
'p' => [],
76+
'p' => [],
7777
'strong' => [],
78-
'a' => [ 'href' => [] ],
78+
'a' => [ 'href' => [] ],
7979
];
8080

8181
$contents = sprintf( "<p><strong>%s</strong></p>\n", esc_html__( 'For more information:', 'code-snippets' ) );
@@ -143,7 +143,7 @@ private function load_manage_help() {
143143
__( 'Be sure to check your snippets for errors before you activate them, as a faulty snippet could bring your whole blog down. If your site starts doing strange things, deactivate all your snippets and activate them one at a time.', 'code-snippets' ),
144144
__( "If something goes wrong with a snippet, and you can't use WordPress, you can cause all snippets to stop executing by turning on <strong>safe mode</strong>.", 'code-snippets' ),
145145
/* translators: %s: URL to Code Snippets Pro Docs */
146-
sprintf( __( 'You can find out how to enable safe mode in the <a href="%s">Code Snippets Pro Docs</a>.', 'code-snippets' ), 'https://help.codesnippets.pro/article/12-safe-mode' )
146+
sprintf( __( 'You can find out how to enable safe mode in the <a href="%s">Code Snippets Pro Docs</a>.', 'code-snippets' ), 'https://codesnippets.pro/doc/safe-mode/' ),
147147
]
148148
);
149149
}
@@ -159,7 +159,7 @@ private function load_edit_help() {
159159
$this->get_intro_text() .
160160
__( 'Here you can add a new snippet, or edit an existing one.', 'code-snippets' ),
161161
/* translators: %s: URL to Code Snippets Pro Docs */
162-
sprintf( __( "If you're not sure about the types of snippets you can add, take a look at the <a href=\"%s\">Code Snippets Pro Docs</a> for inspiration.", 'code-snippets' ), 'https://help.codesnippets.pro/collection/2-adding-snippets' ),
162+
sprintf( __( "If you're not sure about the types of snippets you can add, take a look at the <a href=\"%s\">Code Snippets Pro Docs</a> for inspiration.", 'code-snippets' ), 'https://codesnippets.pro/docs/adding-snippets/' ),
163163
]
164164
);
165165

src/php/migration/importers/files/file-upload-importer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ private function parse_json_file( string $file_path, string $file_name ) {
280280
'id' => $snippet_data['id'] ?? uniqid(),
281281
'title' => $snippet_data['name'] ?? __( 'Untitled Snippet', 'code-snippets' ),
282282
'scope' => $snippet_data['scope'] ?? 'global',
283-
'tags' => is_array( $snippet_data['tags'] ?? [] ) ? implode( ', ', $snippet_data['tags'] ) : '',
283+
'tags' => is_array( $snippet_data['tags'] ?? null ) ? implode( ', ', $snippet_data['tags'] ) : '',
284284
'description' => $snippet_data['desc'] ?? $snippet_data['description'] ?? '',
285285
'type' => Snippet::get_type_from_scope( $snippet_data['scope'] ?? 'global' )
286286
];

0 commit comments

Comments
 (0)