providers as $matchmask => $data ) { list( $providerurl, $regex ) = $data; // Turn the asterisk-type provider URLs into regex if ( !$regex ) { $matchmask = '#' . str_replace( '___wildcard___', '(.+)', preg_quote( str_replace( '*', '___wildcard___', $matchmask ), '#' ) ) . '#i'; $matchmask = preg_replace( '|^#http\\\://|', '#https?\://', $matchmask ); } if ( preg_match( $matchmask, $url ) ) { $provider = str_replace( '{format}', 'json', $providerurl ); // JSON is easier to deal with than XML break; } } if ( !$provider && $args['discover'] ) $provider = $oembed->discover( $url ); if ( !$provider || false === $data = $oembed->fetch( $provider, $url, $args ) ) return false; return $data; } function dr_get_video( $url, $args = array('width' => 600 )) { global $wp_embed; $args = wp_parse_args( $args, array() ); echo $wp_embed->shortcode($args, $url); } ?> str_replace( $big, '%#%', get_pagenum_link( $big ) ) . $anchor, 'current' => max( 1, get_query_var( 'paged' ) ), 'total' => $wp_query->max_num_pages, 'mid_size' => 5, 'prev_next' => True, 'prev_text' => __( $prev ), 'next_text' => __( $next ), 'type' => 'list' ) ); $paginate_links = str_replace( "