Changeset 3454512 for code-snippets
- Timestamp:
- 02/05/2026 11:02:37 AM (4 weeks ago)
- Location:
- code-snippets/trunk
- Files:
-
- 6 edited
-
CHANGELOG.md (modified) (1 diff)
-
code-snippets.php (modified) (2 diffs)
-
php/cloud/class-cloud-search-list-table.php (modified) (1 diff)
-
php/cloud/list-table-shared-ops.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
code-snippets/trunk/CHANGELOG.md
r3441225 r3454512 1 1 # Changelog 2 3 4 5 6 7 8 9 2 10 3 11 ## [3.9.4] (2026-01-14) -
code-snippets/trunk/code-snippets.php
r3441225 r3454512 9 9 * License URI: license.txt 10 10 * Text Domain: code-snippets 11 * Version: 3.9. 411 * Version: 3.9. 12 12 * Requires PHP: 7.4 13 13 * Requires at least: 5.0 14 14 * 15 * @version 3.9. 415 * @version 3.9. 16 16 * @package Code_Snippets 17 17 * @author Shea Bunge <shea@codesnippets.pro> … … 38 38 * @const string 39 39 */ 40 define( 'CODE_SNIPPETS_VERSION', '3.9. 4' );40 define( 'CODE_SNIPPETS_VERSION', '3.9.' ); 41 41 42 42 /** -
code-snippets/trunk/php/cloud/class-cloud-search-list-table.php
r3397635 r3454512 102 102 103 103 // Check request is coming from the cloud search page. 104 if ( isset( $_REQUEST['type'] ) && 'cloud_search' === $_REQUEST['type'] ) { 105 if ( isset( $_REQUEST['action'], $_REQUEST['snippet'], $_REQUEST['source'] ) ) { 106 cloud_lts_process_download_action( 107 sanitize_key( wp_unslash( $_REQUEST['action'] ) ), 108 sanitize_key( wp_unslash( $_REQUEST['source'] ) ), 109 sanitize_key( wp_unslash( $_REQUEST['snippet'] ) ), 110 ); 111 } 112 } 104 if ( ! isset( $_REQUEST['type'] ) || 'cloud_search' !== sanitize_key( wp_unslash( $_REQUEST['type'] ) ) ) { 105 return; 106 } 107 108 if ( ! isset( $_REQUEST['action'], $_REQUEST['snippet'], $_REQUEST['source'] ) ) { 109 return; 110 } 111 112 $action = sanitize_key( wp_unslash( $_REQUEST['action'] ) ); 113 $source = sanitize_key( wp_unslash( $_REQUEST['source'] ) ); 114 $snippet_id = absint( wp_unslash( $_REQUEST['snippet'] ) ); 115 116 if ( ! in_array( $action, [ 'download', 'update' ], true ) ) { 117 return; 118 } 119 120 if ( ! $snippet_id ) { 121 return; 122 } 123 124 check_admin_referer( cloud_lts_get_snippet_action_nonce_action( $action, $snippet_id, $source ) ); 125 126 cloud_lts_process_download_action( 127 $action, 128 $source, 129 (string) $snippet_id, 130 ); 113 131 } 114 132 -
code-snippets/trunk/php/cloud/list-table-shared-ops.php
r3397635 r3454512 9 9 10 10 use function Code_Snippets\code_snippets; 11 12 13 14 15 16 17 18 19 20 21 22 23 11 24 12 25 /** … … 83 96 $is_licensed = code_snippets()->licensing->is_licensed(); 84 97 $download = $is_licensed || ! in_array( $lang, [ 'css', 'js' ], true ); 98 85 99 86 100 if ( $link ) { 87 101 if ( $is_licensed && $link->update_available ) { 88 $update_url = add_query_arg( 89 [ 90 'action' => 'update', 91 'snippet' => $cloud_snippet->id, 92 'source' => $source, 93 ] 102 $update_url = wp_nonce_url( 103 add_query_arg( 104 [ 105 'action' => 'update', 106 'snippet' => $snippet_id, 107 'source' => $source, 108 ] 109 ), 110 cloud_lts_get_snippet_action_nonce_action( 'update', $snippet_id, $source ) 94 111 ); 95 112 return sprintf( … … 110 127 $download_query = [ 111 128 'action' => 'download', 112 'snippet' => $ cloud_snippet->id,129 'snippet' => $id, 113 130 'source' => $source, 114 131 ]; … … 119 136 } 120 137 121 $download_url = add_query_arg( $download_query ); 138 $download_url = wp_nonce_url( 139 add_query_arg( $download_query ), 140 cloud_lts_get_snippet_action_nonce_action( 'download', $snippet_id, $source ) 141 ); 122 142 123 143 $download_button = sprintf( -
code-snippets/trunk/readme.txt
r3441225 r3454512 5 5 License: GPL-2.0-or-later 6 6 License URI: license.txt 7 Stable tag: 3.9. 48 Tested up to: 6. 87 Stable tag: 3.9. 8 Tested up to: 6. 9 9 10 10 An easy, clean and simple way to enhance your site with code snippets. … … 104 104 105 105 == Changelog == 106 107 108 109 110 111 112 113 114 115 106 116 107 117 = 3.9.4 (2026-01-14) = -
code-snippets/trunk/vendor/composer/installed.php
r3441225 r3454512 2 2 'root' => array( 3 3 'name' => 'codesnippetspro/code-snippets', 4 'pretty_version' => 'v3.9. 4',5 'version' => '3.9. 4.0',6 'reference' => ' 8ee0c5cd40988c6ddfdba4d8fb67523296d84d1e',4 'pretty_version' => 'v3.9.', 5 'version' => '3.9..0', 6 'reference' => 'e', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'codesnippetspro/code-snippets' => array( 14 'pretty_version' => 'v3.9. 4',15 'version' => '3.9. 4.0',16 'reference' => ' 8ee0c5cd40988c6ddfdba4d8fb67523296d84d1e',14 'pretty_version' => 'v3.9.', 15 'version' => '3.9..0', 16 'reference' => 'e', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.