PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 18.2
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v18.2
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / admin / views / tabs / metas / media.php

media.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 18.2, at admin/views/tabs/metas/media.php

31 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * WPSEO plugin file.
4 *
5 * @package WPSEO\Admin\Views
6 */
7
8 if ( ! defined( 'WPSEO_VERSION' ) ) {
9 header( 'Status: 403 Forbidden' );
10 header( 'HTTP/1.1 403 Forbidden' );
11 exit();
12 }
13
14 $wpseo_media_presenter = new WPSEO_Paper_Presenter(
15 esc_html__( 'Media & attachment URLs', 'wordpress-seo' ),
16 __DIR__ . '/paper-content/media-content.php',
17 [
18 'help_text' => new WPSEO_Admin_Help_Panel(
19 'search-appearance-media',
20 __( 'Learn more about the Media and attachment URLs setting', 'wordpress-seo' ),
21 __( 'When you upload media (an image or video for example) to WordPress, it doesn\'t just save the media, it creates an attachment URL for it. These attachment pages are quite empty: they contain the media item and maybe a title if you entered one. Because of that, if you never use these attachment URLs, it\'s better to disable them, and redirect them to the media item itself.', 'wordpress-seo' ),
22 'has-wrapper'
23 ),
24 'paper_id' => 'settings-media-attachment-url',
25 'class' => 'search-appearance',
26 ]
27 );
28
29 // phpcs:ignore WordPress.Security.EscapeOutput -- get_output() output is properly escaped.
30 echo $wpseo_media_presenter->get_output();
31