diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php
index 363b7c9..381d3d0 100755
|
a
|
b
|
class WP_oEmbed { |
| 277 | 277 | * @return bool|object False on failure, otherwise the result in the form of an object. |
| 278 | 278 | */ |
| 279 | 279 | public function fetch( $provider, $url, $args = '' ) { |
| 280 | | $args = wp_parse_args( $args, wp_embed_defaults() ); |
| | 280 | $args = wp_parse_args( $args, wp_embed_defaults( $url ) ); |
| 281 | 281 | |
| 282 | 282 | $provider = add_query_arg( 'maxwidth', (int) $args['width'], $provider ); |
| 283 | 283 | $provider = add_query_arg( 'maxheight', (int) $args['height'], $provider ); |
diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php
index b3b1e2e..5ea4d5a 100755
|
a
|
b
|
function comment_form( $args = array(), $post_id = null ) { |
| 2100 | 2100 | 'cancel_reply_link' => __( 'Cancel reply' ), |
| 2101 | 2101 | 'label_submit' => __( 'Post Comment' ), |
| 2102 | 2102 | 'format' => 'xhtml', |
| | 2103 | 'tabindex' => '', |
| 2103 | 2104 | ); |
| 2104 | 2105 | |
| 2105 | 2106 | /** |
| … |
… |
function comment_form( $args = array(), $post_id = null ) { |
| 2215 | 2216 | ?> |
| 2216 | 2217 | <?php echo $args['comment_notes_after']; ?> |
| 2217 | 2218 | <p class="form-submit"> |
| 2218 | | <input name="<?php echo esc_attr( $args['name_submit'] ); ?>" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" /> |
| | 2219 | <input name="<?php echo esc_attr( $args['name_submit'] ); ?>" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" tabindex="<?php echo esc_attr( $args['tabindex'] ); ?>" /> |
| 2219 | 2220 | <?php comment_id_fields( $post_id ); ?> |
| 2220 | 2221 | </p> |
| 2221 | 2222 | <?php |
diff --git a/wp-includes/media.php b/wp-includes/media.php
index 2edfc1a..533560b 100755
|
a
|
b
|
function wp_embed_unregister_handler( $id, $priority = 10 ) { |
| 2061 | 2061 | * |
| 2062 | 2062 | * @return array Default embed parameters. |
| 2063 | 2063 | */ |
| 2064 | | function wp_embed_defaults() { |
| | 2064 | function wp_embed_defaults( $url = '' ) { |
| 2065 | 2065 | if ( ! empty( $GLOBALS['content_width'] ) ) |
| 2066 | 2066 | $width = (int) $GLOBALS['content_width']; |
| 2067 | 2067 | |
| … |
… |
function wp_embed_defaults() { |
| 2077 | 2077 | * |
| 2078 | 2078 | * @param int $width Width of the embed in pixels. |
| 2079 | 2079 | * @param int $height Height of the embed in pixels. |
| | 2080 | * @param string $url URL of embed content. |
| 2080 | 2081 | */ |
| 2081 | | return apply_filters( 'embed_defaults', compact( 'width', 'height' ) ); |
| | 2082 | return apply_filters( 'embed_defaults', compact( 'width', 'height' ), $url ); |
| 2082 | 2083 | } |
| 2083 | 2084 | |
| 2084 | 2085 | /** |