Ticket #25313: 25313.2.patch
| File 25313.2.patch, 2.8 KB (added by , 13 years ago) |
|---|
-
src/wp-includes/default-filters.php
245 245 add_action( 'admin_print_footer_scripts', '_wp_footer_scripts' ); 246 246 add_action( 'admin_print_styles', 'print_admin_styles', 20 ); 247 247 add_action( 'init', 'smilies_init', 5 ); 248 add_action( 'init', 'wp_add_initial_shortcodes', 0 ); 248 249 add_action( 'plugins_loaded', 'wp_maybe_load_widgets', 0 ); 249 250 add_action( 'plugins_loaded', 'wp_maybe_load_embeds', 0 ); 250 251 add_action( 'shutdown', 'wp_ob_end_flush_all', 1 ); -
src/wp-includes/media.php
607 607 remove_filter( 'wp_get_attachment_image_attributes', '_wp_post_thumbnail_class_filter' ); 608 608 } 609 609 610 add_shortcode('wp_caption', 'img_caption_shortcode');611 add_shortcode('caption', 'img_caption_shortcode');612 613 610 /** 614 611 * The Caption shortcode. 615 612 * … … 656 653 . do_shortcode( $content ) . '<p class="wp-caption-text">' . $caption . '</p></div>'; 657 654 } 658 655 659 add_shortcode('gallery', 'gallery_shortcode');660 661 656 /** 662 657 * The Gallery shortcode. 663 658 * … … 946 941 947 942 return apply_filters( 'wp_audio_shortcode', $html, $atts, $audio, $post_id, $library ); 948 943 } 949 add_shortcode( 'audio', apply_filters( 'wp_audio_shortcode_handler', 'wp_audio_shortcode' ) );950 944 951 945 /** 952 946 * Return a filtered list of WP-supported video formats … … 1090 1084 $html = sprintf( '<div style="width: %dpx; max-width: 100%%;">%s</div>', $width, $html ); 1091 1085 return apply_filters( 'wp_video_shortcode', $html, $atts, $video, $post_id, $library ); 1092 1086 } 1093 add_shortcode( 'video', apply_filters( 'wp_video_shortcode_handler', 'wp_video_shortcode' ) );1094 1087 1095 1088 /** 1096 1089 * Display previous image link that has the same post parent. … … 2027 2020 $gallery = get_post_gallery( $post, false ); 2028 2021 return empty( $gallery['src'] ) ? array() : $gallery['src']; 2029 2022 } 2023 2024 /** 2025 * Add default shortcodes. 2026 * 2027 * @since 3.7.0 2028 */ 2029 function wp_add_initial_shortcodes() { 2030 add_shortcode( 'wp_caption', 'img_caption_shortcode' ); 2031 add_shortcode( 'caption', 'img_caption_shortcode' ); 2032 add_shortcode( 'gallery', 'gallery_shortcode' ); 2033 add_shortcode( 'audio', apply_filters( 'wp_audio_shortcode_handler', 'wp_audio_shortcode' ) ); 2034 add_shortcode( 'video', apply_filters( 'wp_video_shortcode_handler', 'wp_video_shortcode' ) ); 2035 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)