Skip to content

Commit

Permalink
Update the WordPress embeds url references
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Aug 24, 2019
1 parent 7ef5442 commit 97a65fd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example-functions.php
Expand Up @@ -447,7 +447,7 @@ function yourprefix_register_demo_metabox() {
'desc' => sprintf(
/* translators: %s: link to codex.wordpress.org/Embeds */
esc_html__( 'Enter a youtube, twitter, or instagram URL. Supports services listed at %s.', 'cmb2' ),
'<a href="https://codex.wordpress.org/Embeds">codex.wordpress.org/Embeds</a>'
'<a href="https://wordpress.org/support/article/embeds/">codex.wordpress.org/Embeds</a>'
),
'id' => 'yourprefix_demo_embed',
'type' => 'oembed',
Expand Down
2 changes: 1 addition & 1 deletion includes/CMB2_Ajax.php
Expand Up @@ -188,7 +188,7 @@ public function get_oembed( $args ) {
/* translators: 1: results for. 2: link to codex.wordpress.org/Embeds */
esc_html__( 'No oEmbed Results Found for %1$s. View more info at %2$s.', 'cmb2' ),
$oembed['fallback'],
'<a href="https://codex.wordpress.org/Embeds" target="_blank">codex.wordpress.org/Embeds</a>'
'<a href="https://wordpress.org/support/article/embeds/" target="_blank">codex.wordpress.org/Embeds</a>'
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion includes/helper-functions.php
Expand Up @@ -106,7 +106,7 @@ function cmb2_get_oembed( $args = array() ) {
/* translators: 1: results for. 2: link to codex.wordpress.org/Embeds */
esc_html__( 'No oEmbed Results Found for %1$s. View more info at %2$s.', 'cmb2' ),
$oembed['fallback'],
'<a href="https://codex.wordpress.org/Embeds" target="_blank">codex.wordpress.org/Embeds</a>'
'<a href="https://wordpress.org/support/article/embeds/" target="_blank">codex.wordpress.org/Embeds</a>'
);

if ( isset( $args['wp_error'] ) && $args['wp_error'] ) {
Expand Down
2 changes: 1 addition & 1 deletion tests/cmb-tests-base.php
Expand Up @@ -67,7 +67,7 @@ protected function oembed_no_connection_result( $url ) {
/* translators: 1: results for. 2: link to codex.wordpress.org/Embeds */
esc_html__( 'No oEmbed Results Found for %1$s. View more info at %2$s.', 'cmb2' ),
$wp_embed->maybe_make_link( $url ),
'<a href="https://codex.wordpress.org/Embeds" target="_blank">codex.wordpress.org/Embeds</a>'
'<a href="https://wordpress.org/support/article/embeds/" target="_blank">codex.wordpress.org/Embeds</a>'
)
);
}
Expand Down

0 comments on commit 97a65fd

Please sign in to comment.