Skip to content

Commit 7ce0bf1

Browse files
committed
Remove duplicate Disable srcset function
1 parent 6d72bf2 commit 7ce0bf1

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

CleanBuild/functions/wordpress/wordpress-custom.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,6 @@ function yoasttobottom() {
7070
}
7171
add_filter( 'wpseo_metabox_prio', 'yoasttobottom');
7272

73-
74-
// DISABLE SRCSET ON EMBEDDED IMAGES
75-
function cb_disable_srcset( $sources ) {
76-
return false;
77-
}
78-
add_filter( 'wp_calculate_image_srcset', 'cb_disable_srcset' );
79-
80-
8173
// HAS CHILDREN FUNCTION
8274
function has_children() {
8375
global $post;
@@ -89,4 +81,4 @@ function has_children() {
8981
}
9082
}
9183

92-
?>
84+
?>

index.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?php
2+
// Silence is golden.

0 commit comments

Comments
 (0)