Changeset 1044 for sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/plugins/wordpresstv-anon-upload/anon-upload.php
- Timestamp:
- 12/15/2014 09:32:58 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/plugins/wordpresstv-anon-upload/anon-upload.php
r1030 r1044 51 51 'wptv_speakers', 52 52 'wptv_event', 53 'wptv_slides_url' 53 54 ); 54 55 … … 275 276 $description = $this->sanitize_text( $_posted['wptv_video_description'], false ); 276 277 $language = $this->sanitize_text( $_posted['wptv_language'] ); 278 $slides = $this->sanitize_text( $_posted['wptv_slides_url'] ); 277 279 $ip = $_SERVER['REMOTE_ADDR']; 278 280 … … 298 300 'categories' => $categories, 299 301 'description' => $description, 302 'slides' => $slides, 300 303 'ip' => $ip, 301 304 ); … … 332 335 $embed_args['blog_id'] = get_current_blog_id(); 333 336 $embed_args['post_id'] = $meta['attachment_id']; 337 338 // Add slides index to meta (necessary for posts that were uploaded before the field was added) 339 if ( ! array_key_exists( 'slides', $meta ) ) { 340 $meta['slides'] = ''; 341 } 334 342 335 343 ?> … … 488 496 489 497 <div class="row"> 498 <p class="label">Slides:</p> 499 <p class="data"> 500 <input type="text" value="<?php echo esc_attr( $meta['slides'] ); ?>"/> 501 <a class="button-secondary anon-approve" href="#wptv-slides-url">Approve</a> 502 </p> 503 </div> 504 505 <div class="row"> 490 506 <p class="label">Edit attachment:</p> 491 507 <p class="data"> … … 524 540 el.val(target.siblings('input[type="text"]').val()); 525 541 el.siblings('.tagadd').click(); 526 } else if ( id == '#title') {542 } else if ('#title' == id || '#wptv-slides-url' == id) { 527 543 el.val(target.siblings('input[type="text"]').val()); 528 544 } else if (id == '#excerpt') {
Note: See TracChangeset
for help on using the changeset viewer.