Changeset 3113637
- Timestamp:
- 07/06/2024 10:09:56 PM (21 months ago)
- Location:
- image-editor-by-pixo
- Files:
-
- 2 edited
- 8 copied
-
tags/2.3.3 (copied) (copied from image-editor-by-pixo/trunk)
-
tags/2.3.3/admin.css (copied) (copied from image-editor-by-pixo/trunk/admin.css)
-
tags/2.3.3/admin.js (copied) (copied from image-editor-by-pixo/trunk/admin.js)
-
tags/2.3.3/frontend.php (copied) (copied from image-editor-by-pixo/trunk/frontend.php)
-
tags/2.3.3/get-custom-stickers.php (copied) (copied from image-editor-by-pixo/trunk/get-custom-stickers.php)
-
tags/2.3.3/pixo.php (copied) (copied from image-editor-by-pixo/trunk/pixo.php) (6 diffs)
-
tags/2.3.3/post-types.php (copied) (copied from image-editor-by-pixo/trunk/post-types.php)
-
tags/2.3.3/readme.txt (copied) (copied from image-editor-by-pixo/trunk/readme.txt) (2 diffs)
-
trunk/pixo.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
image-editor-by-pixo/tags/2.3.3/pixo.php
r3086913 r3113637 4 4 Plugin URI: https://pixoeditor.com 5 5 Description: Provides Pixo as a replacement of the default image editor in your WordPress installation, as well as integrates to your website front-end 6 Version: 2.3. 26 Version: 2.3.3 7 7 */ 8 8 … … 130 130 Pixo.LOCALE = '" . str_replace( '_', '-', get_locale() ) . "'; 131 131 Pixo.OPTIONS_URL = '" . PIXOEDITOR_OPTIONS_URL . "'; 132 Pixo.PARAM_BATCH = '" . PIXOEDITOR_PARAM_BATCH . "';133 Pixo.PARAM_MULTI = '" . PIXOEDITOR_PARAM_MULTI . "';134 132 Pixo.ACTIONS = Pixo.ACTIONS || {}; 135 133 Pixo.ACTIONS." . PIXOEDITOR_ACTION_SAVE_NEW . " = '" . PIXOEDITOR_ACTION_SAVE_NEW . "'; … … 149 147 ); 150 148 151 (function () { 152 const params = Pixo.getSearchParams(); 153 const batch_queue = params[ Pixo.PARAM_BATCH ]; 154 const multi_queue = params[ Pixo.PARAM_MULTI ]; 155 if (batch_queue) { 156 Pixo.batchEdit( JSON.parse( decodeURIComponent( batch_queue ) ), function () { 157 delete params[ Pixo.PARAM_BATCH ]; 149 " . pixoeditor__printBatchEditScript(PIXOEDITOR_PARAM_BATCH) . pixoeditor__printBatchEditScript(PIXOEDITOR_PARAM_MULTI) . " 150 </script>"; 151 } 152 153 function pixoeditor__printBatchEditScript($param) { 154 if (!isset($_GET[ $param ]) || !$_GET[ $param ]) { 155 return ''; 156 } 157 158 $args = json_encode(array_map('pixoeditor__resolveImageSrc', explode(',', $_GET[$param]))); 159 $method = $param === PIXOEDITOR_PARAM_BATCH ? 'batchEdit' : 'editMultiple'; 160 161 return " 162 Pixo.$method( $args, function () { 163 const params = Pixo.getSearchParams(); 164 delete params[ '$param' ]; 158 165 location.search = Pixo.buildSearchParams( params ); 159 166 }); 160 } 161 if (multi_queue) { 162 Pixo.editMultiple( JSON.parse( decodeURIComponent( multi_queue ) ), function () { 163 delete params[ Pixo.PARAM_MULTI ]; 164 location.search = Pixo.buildSearchParams( params ); 165 }); 166 } 167 })(); 168 </script>"; 167 "; 169 168 } 170 169 … … 209 208 return add_query_arg( 210 209 PIXOEDITOR_PARAM_BATCH, 211 rawurlencode( json_encode( array_map( 'pixoeditor__resolveImageSrc', $post_ids ) )),210 implode( ',', $post_ids ), 212 211 $redirect_to 213 212 ); … … 216 215 return add_query_arg( 217 216 PIXOEDITOR_PARAM_MULTI, 218 rawurlencode( json_encode( array_map( 'pixoeditor__resolveImageSrc', $post_ids ) )),217 implode( ',', $post_ids ), 219 218 $redirect_to 220 219 ); … … 422 421 423 422 <?php 424 $active_tab = $_GET[ PIXOEDITOR_QUERY_VAR_TAB ]? $_GET[ PIXOEDITOR_QUERY_VAR_TAB ] : PIXOEDITOR_TAB_ADMIN;423 $active_tab = isset( $_GET[ PIXOEDITOR_QUERY_VAR_TAB ] ) ? $_GET[ PIXOEDITOR_QUERY_VAR_TAB ] : PIXOEDITOR_TAB_ADMIN; 425 424 ?> 426 425 -
image-editor-by-pixo/tags/2.3.3/readme.txt
r3086913 r3113637 5 5 Requires at least: 3.5 6 6 Tested up to: 6.5 7 Stable tag: 2.3. 27 Stable tag: 2.3.3 8 8 Requires PHP: 5.2 9 9 License: GPLv2 or later … … 104 104 105 105 == Changelog == 106 = 2.3.3 = 107 * Fixed inability to batch/multiple edit more than ~20 media files 108 106 109 = 2.3.2 = 107 110 * Fixed issue when editing older (uploaded long time ago) files -
image-editor-by-pixo/trunk/pixo.php
r3086913 r3113637 4 4 Plugin URI: https://pixoeditor.com 5 5 Description: Provides Pixo as a replacement of the default image editor in your WordPress installation, as well as integrates to your website front-end 6 Version: 2.3. 26 Version: 2.3.3 7 7 */ 8 8 … … 130 130 Pixo.LOCALE = '" . str_replace( '_', '-', get_locale() ) . "'; 131 131 Pixo.OPTIONS_URL = '" . PIXOEDITOR_OPTIONS_URL . "'; 132 Pixo.PARAM_BATCH = '" . PIXOEDITOR_PARAM_BATCH . "';133 Pixo.PARAM_MULTI = '" . PIXOEDITOR_PARAM_MULTI . "';134 132 Pixo.ACTIONS = Pixo.ACTIONS || {}; 135 133 Pixo.ACTIONS." . PIXOEDITOR_ACTION_SAVE_NEW . " = '" . PIXOEDITOR_ACTION_SAVE_NEW . "'; … … 149 147 ); 150 148 151 (function () { 152 const params = Pixo.getSearchParams(); 153 const batch_queue = params[ Pixo.PARAM_BATCH ]; 154 const multi_queue = params[ Pixo.PARAM_MULTI ]; 155 if (batch_queue) { 156 Pixo.batchEdit( JSON.parse( decodeURIComponent( batch_queue ) ), function () { 157 delete params[ Pixo.PARAM_BATCH ]; 149 " . pixoeditor__printBatchEditScript(PIXOEDITOR_PARAM_BATCH) . pixoeditor__printBatchEditScript(PIXOEDITOR_PARAM_MULTI) . " 150 </script>"; 151 } 152 153 function pixoeditor__printBatchEditScript($param) { 154 if (!isset($_GET[ $param ]) || !$_GET[ $param ]) { 155 return ''; 156 } 157 158 $args = json_encode(array_map('pixoeditor__resolveImageSrc', explode(',', $_GET[$param]))); 159 $method = $param === PIXOEDITOR_PARAM_BATCH ? 'batchEdit' : 'editMultiple'; 160 161 return " 162 Pixo.$method( $args, function () { 163 const params = Pixo.getSearchParams(); 164 delete params[ '$param' ]; 158 165 location.search = Pixo.buildSearchParams( params ); 159 166 }); 160 } 161 if (multi_queue) { 162 Pixo.editMultiple( JSON.parse( decodeURIComponent( multi_queue ) ), function () { 163 delete params[ Pixo.PARAM_MULTI ]; 164 location.search = Pixo.buildSearchParams( params ); 165 }); 166 } 167 })(); 168 </script>"; 167 "; 169 168 } 170 169 … … 209 208 return add_query_arg( 210 209 PIXOEDITOR_PARAM_BATCH, 211 rawurlencode( json_encode( array_map( 'pixoeditor__resolveImageSrc', $post_ids ) )),210 implode( ',', $post_ids ), 212 211 $redirect_to 213 212 ); … … 216 215 return add_query_arg( 217 216 PIXOEDITOR_PARAM_MULTI, 218 rawurlencode( json_encode( array_map( 'pixoeditor__resolveImageSrc', $post_ids ) )),217 implode( ',', $post_ids ), 219 218 $redirect_to 220 219 ); … … 422 421 423 422 <?php 424 $active_tab = $_GET[ PIXOEDITOR_QUERY_VAR_TAB ]? $_GET[ PIXOEDITOR_QUERY_VAR_TAB ] : PIXOEDITOR_TAB_ADMIN;423 $active_tab = isset( $_GET[ PIXOEDITOR_QUERY_VAR_TAB ] ) ? $_GET[ PIXOEDITOR_QUERY_VAR_TAB ] : PIXOEDITOR_TAB_ADMIN; 425 424 ?> 426 425 -
image-editor-by-pixo/trunk/readme.txt
r3086913 r3113637 5 5 Requires at least: 3.5 6 6 Tested up to: 6.5 7 Stable tag: 2.3. 27 Stable tag: 2.3.3 8 8 Requires PHP: 5.2 9 9 License: GPLv2 or later … … 104 104 105 105 == Changelog == 106 = 2.3.3 = 107 * Fixed inability to batch/multiple edit more than ~20 media files 108 106 109 = 2.3.2 = 107 110 * Fixed issue when editing older (uploaded long time ago) files
Note: See TracChangeset
for help on using the changeset viewer.