PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.6 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 All 130 releases
← All changes | inc/class-post-type.php +3 -1 18.4 → trunk View file →
@@ -50,9 +50,11 @@
50 50 *
51 51 * @return array The filtered array.
52 52 */
53 53 public static function filter_attachment_post_type( array $post_types ) {
54 - unset( $post_types['attachment'] );
54 + if ( WPSEO_Options::get( 'disable-attachment' ) === true ) {
55 + unset( $post_types['attachment'] );
56 + }
55 57
56 58 return $post_types;
57 59 }
58 60