Changeset 8321

Show
Ignore:
Timestamp:
07/12/08 18:02:29 (2 months ago)
Author:
ryan
Message:

Denote CAPTIONS_OFF as temporary. see #6812

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/includes/media.php

    r8313 r8321  
    6868function image_add_caption( $html, $id, $alt, $title, $align, $url, $size ) { 
    6969 
     70    // CAPTIONS_OFF is temporary. Do not use it. 
    7071    if ( empty($alt) || ( defined('CAPTIONS_OFF') && true == CAPTIONS_OFF ) ) return $html; 
    7172    $id = ( 0 < (int) $id ) ? 'attachment_' . $id : ''; 
     
    510511        $form_fields['post_title']['required'] = true; 
    511512 
     513        // CAPTIONS_OFF is temporary. Do not use it. 
    512514        if ( defined('CAPTIONS_OFF') && true == CAPTIONS_OFF ) { 
    513515            $form_fields['post_excerpt']['label'] = __('Alternate Text'); 
     
    605607    $link = get_attachment_link($post->ID); 
    606608 
     609    // CAPTIONS_OFF is temporary. Do not use it. 
    607610    if ( defined('CAPTIONS_OFF') && true == CAPTIONS_OFF ) 
    608611        $alt = __('Alternate Text'); 
     
    10191022        if ( f.alt.value ) { 
    10201023            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. ?> 
    10221025            caption = f.alt.value.replace(/'/g, '&#39;').replace(/"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;'); 
    10231026<?php } ?> 
     
    12941297        </tr> 
    12951298'; 
     1299    // CAPTIONS_OFF is temporary. Do not use it. 
    12961300    if ( defined('CAPTIONS_OFF') && true == CAPTIONS_OFF ) { 
    12971301        $form .= '