Changeset 8321
- Timestamp:
- 07/12/2008 06:02:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r8313 r8321 68 68 function image_add_caption( $html, $id, $alt, $title, $align, $url, $size ) { 69 69 70 // CAPTIONS_OFF is temporary. Do not use it. 70 71 if ( empty($alt) || ( defined('CAPTIONS_OFF') && true == CAPTIONS_OFF ) ) return $html; 71 72 $id = ( 0 < (int) $id ) ? 'attachment_' . $id : ''; … … 510 511 $form_fields['post_title']['required'] = true; 511 512 513 // CAPTIONS_OFF is temporary. Do not use it. 512 514 if ( defined('CAPTIONS_OFF') && true == CAPTIONS_OFF ) { 513 515 $form_fields['post_excerpt']['label'] = __('Alternate Text'); … … 605 607 $link = get_attachment_link($post->ID); 606 608 609 // CAPTIONS_OFF is temporary. Do not use it. 607 610 if ( defined('CAPTIONS_OFF') && true == CAPTIONS_OFF ) 608 611 $alt = __('Alternate Text'); … … 1019 1022 if ( f.alt.value ) { 1020 1023 alt = f.alt.value.replace(/['"<>]+/g, ''); 1021 <?php if ( ! defined('CAPTIONS_OFF') || true != CAPTIONS_OFF ) { ?>1024 <?php if ( ! defined('CAPTIONS_OFF') || true != CAPTIONS_OFF ) { // CAPTIONS_OFF is temporary. Do not use it. ?> 1022 1025 caption = f.alt.value.replace(/'/g, ''').replace(/"/g, '"').replace(/</g, '<').replace(/>/g, '>'); 1023 1026 <?php } ?> … … 1294 1297 </tr> 1295 1298 '; 1299 // CAPTIONS_OFF is temporary. Do not use it. 1296 1300 if ( defined('CAPTIONS_OFF') && true == CAPTIONS_OFF ) { 1297 1301 $form .= '
Note: See TracChangeset
for help on using the changeset viewer.