X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/61343b82c4f0da4c68e4c6373daafff4a81efdd1..888fa4ed68091f3314f711c5f6fe75858bf5410b:/wp-admin/includes/meta-boxes.php diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index cefa5a96..9f7f469a 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -42,11 +42,18 @@ if ( 'publish' == $post->post_status ) { $preview_button = __( 'Preview Changes' ); } else { $preview_link = set_url_scheme( get_permalink( $post->ID ) ); + /** + * Filter the URI of a post preview in the post submit box. + * + * @since 2.0.5 + * + * @param string $preview_link URI the user will be directed to for a post preview. + */ $preview_link = esc_url( apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', $preview_link ) ) ); $preview_button = __( 'Preview' ); } ?> - + @@ -55,7 +62,7 @@ if ( 'publish' == $post->post_status ) {
use in your theme.'); ?>
@@ -702,7 +751,7 @@ function link_submit_meta_box($link) {
@@ -962,11 +1021,11 @@ function link_advanced_meta_box($link) { |
- | + | |
---|---|---|
- | + | |
@@ -998,3 +1057,29 @@ function post_thumbnail_meta_box( $post ) { $thumbnail_id = get_post_meta( $post->ID, '_thumbnail_id', true ); echo _wp_post_thumbnail_html( $thumbnail_id, $post->ID ); } + +/** + * Display fields for ID3 data + * + * @since 3.9.0 + * + * @param WP_Post $post + */ +function attachment_id3_data_meta_box( $post ) { + $meta = array(); + if ( ! empty( $post->ID ) ) { + $meta = wp_get_attachment_metadata( $post->ID ); + } + + foreach ( wp_get_attachment_id3_keys( $post, 'edit' ) as $key => $label ) : ?> + |