jQuery(“#fifu_image”).css(‘background-image’).includes(‘http’) error
-
Hello i’ve created a custom post only with body, title and custom fields, but no include fifu image metabox, and throw this error in js:
meta-box.js?ver=4.0.5:43 Uncaught TypeError: Cannot read properties of undefined (reading ‘includes’)
at meta-box.js?ver=4.0.5:43:138in this code:
jQuery(document).ready(function() {
setTimeout(function() {
if (jQuery(“#fifu_input_url”).val() || jQuery(“#fifu_image”).css(‘background-image’).includes(‘http’)) {
fifu_hide_regular_featured_image_field();
}
}, 100);
});
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘jQuery(“#fifu_image”).css(‘background-image’).includes(‘http’) error’ is closed to new replies.