Ticket #31467: 31467-3.patch
File 31467-3.patch, 1.9 KB (added by , 10 years ago) |
---|
-
wp-admin/includes/schema.php
461 461 // 2.7 462 462 'large_size_w' => 1024, 463 463 'large_size_h' => 1024, 464 'image_default_link_type' => ' file',464 'image_default_link_type' => 'none', 465 465 'image_default_size' => '', 466 466 'image_default_align' => '', 467 467 'close_comments_for_old_posts' => 0, -
wp-includes/media-template.php
648 648 </option> 649 649 <option value="file"> 650 650 <# } else { #> 651 <option value="file" selected> 651 <option value="none" selected> 652 <?php esc_attr_e('None'); ?> 653 </option> 654 <option value="file"> 652 655 <# } #> 653 656 <# if ( data.model.canEmbed ) { #> 654 657 <?php esc_attr_e('Link to Media File'); ?> … … 667 670 <option value="custom"> 668 671 <?php esc_attr_e('Custom URL'); ?> 669 672 </option> 670 <option value="none">671 <?php esc_attr_e('None'); ?>672 </option>673 673 <# } #> 674 674 </select> 675 675 </label> -
wp-includes/media.php
2901 2901 unset( $tabs['type'], $tabs['type_url'], $tabs['gallery'], $tabs['library'] ); 2902 2902 2903 2903 $props = array( 2904 'link' => get_option( 'image_default_link_type' ), // db default is 'file'2904 'link' => apply_filters( 'image_default_link_type' , 'none' ), // 'none' by default ( possible options : none, file, post, custom ) 2905 2905 'align' => get_option( 'image_default_align' ), // empty default 2906 2906 'size' => get_option( 'image_default_size' ), // empty default 2907 2907 );