Ticket #15924: 15924.diff
| File 15924.diff, 1.2 KB (added by , 15 years ago) |
|---|
-
wp-admin/includes/media.php
1056 1056 1057 1057 $edit_post = sanitize_post($post, 'edit'); 1058 1058 1059 if ( substr($post->post_mime_type, 0, 5) == 'image' ) $default_link = get_option('image_default_link_type'); 1060 else $default_link = get_option('media_default_link_type'); 1059 1061 1060 1061 1062 $form_fields = array( 1062 1063 'post_title' => array( 1063 1064 'label' => __('Title'), … … 1076 1077 'url' => array( 1077 1078 'label' => __('Link URL'), 1078 1079 'input' => 'html', 1079 'html' => image_link_input_fields($post, get_option('image_default_link_type')),1080 'html' => image_link_input_fields($post, $default_link), 1080 1081 'helps' => __('Enter a link URL or click above for presets.') 1081 1082 ), 1082 1083 'menu_order' => array( -
wp-admin/includes/schema.php
321 321 322 322 // 3.1 323 323 'default_post_format' => 0, 324 'media_default_link_type' => 'file', 324 325 ); 325 326 326 327 // 3.0 multisite