Changeset 805653
- Timestamp:
- 11/17/2013 06:21:49 AM (12 years ago)
- File:
-
- 1 edited
-
photostream-sync/trunk/photostream-sync.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
photostream-sync/trunk/photostream-sync.php
r805652 r805653 5 5 Description: Synchronize your public iCloud photostreams to your WordPress installation. Import images, Import videos, create gellery posts, and more. 6 6 Author: Demitrious Kelly <apokalyptik@apokalyptik.com> 7 Version: 2.0. 07 Version: 2.0.1 8 8 Author URI: http://blog.apokalyptik.com/ 9 9 */ … … 233 233 234 234 <tr 235 help="<?php esc_attr_e( 'Choose a custom gallery shortcode for gallery posts. This is an advanced setting and is best left alone unless you have a specific reason to change it.' ); ?>"> 236 <td><?php esc_html_e( 'Gallery Shortcode' ); ?></td> 237 <td> 238 <input name="photostream[edit][<?php esc_attr_e( $key );?>][gallery_shortcode]" type="text" value="<?php esc_attr_e($stream->gallery_shortcode); ?>" placeholder="[gallery]"/> 239 </td> 240 </tr> 241 242 <tr 235 243 help="<?php esc_attr_e( 'Configure the filename to save imported images as. Click "show options" for formatting help.' ); ?>"> 236 244 <td><?php esc_html_e( 'Save Images As' ); ?></td> … … 335 343 </td> 336 344 </tr> 345 <tr 346 help="<?php esc_attr_e( 'Choose a custom gallery shortcode for gallery posts. This is an advanced setting and is best left alone unless you have a specific reason to change it.' ); ?>"> 347 <td><?php esc_html_e( 'Gallery Shortcode' ); ?></td> 348 <td> 349 <input name="photostream[add][gallery_shortcode]" type="text" placeholder="[gallery]"/> 350 </td> 351 </tr> 337 352 <tr help="<?php esc_attr_e( 'Configure the filename to save imported images as. Click "show options" for formatting help.' ); ?>"> 338 353 <td><?php esc_html_e( 'Save Images As' ); ?></td> … … 358 373 if ( !wp_verify_nonce( $_POST['ps-nonce'], 'ps-sync-add' ) ) 359 374 return; 360 $new_stream = $_POST['photostream']['add'];375 $new_stream = stripslashes_deep( $_POST['photostream']['add'] ); 361 376 $key = $this->parse_user_input_photostream_key( $_POST['photostream']['add']['stream'] ); 362 377 $new_stream['key'] = $key; … … 375 390 function process_admin_edit_post() { 376 391 foreach( $_POST['photostream']['edit'] as $key => $data ) { 392 $data = stripslashes_deep( $data ); 377 393 if ( !wp_verify_nonce( $_POST['photostream']['edit'][$key]['ps-nonce'], 'ps-sync-edit-' . $key ) ) 378 394 continue; … … 433 449 'tags_input' => empty( $stream->tags ) ? '' : implode( ', ', $stream->tags ), 434 450 ); 451 if ( !empty( $stream->gallery_shortcode ) ) 452 $post['post_content'] = $stream->gallery_shortcode; 435 453 if ( !empty( $images[0]->caption ) && $stream->use_caption ) { 436 454 if ( $stream->use_caption == 'above' )
Note: See TracChangeset
for help on using the changeset viewer.