if ( typeof setPostThumbnailL10n != 'object' ) { setPostThumbnailL10n = {"setThumbnail":"Use as featured image","saving":"Saving...","error":"Could not set that as the thumbnail image. Try a different attachment.","done":"Done"}; } function kdMuFeaImgSetBoxContent( content, featuredImageID, post_type ) { //jQuery( '.inside', '#kd_' + featuredImageID ).html( content ); jQuery( '#' + featuredImageID + '_' + post_type + ' .inside' ).html( content ); } function kdMuFeaImgSetMetaValue( id, featuredImageID, post_type ) { var field = jQuery('input[value=kd_' + featuredImageID + '_' + post_type + '_id]', '#list-table'); if ( field.size() > 0 ) { jQuery('#meta\\[' + field.attr('id').match(/[0-9]+/) + '\\]\\[value\\]').text( id ); } } function kdMuFeaImgRemove ( featuredImageID, post_type, nonce ) { jQuery.post( ajaxurl, { action: 'set-MuFeaImg-' + featuredImageID + '-' + post_type, post_id: jQuery('#post_ID').val(), thumbnail_id: -1, _ajax_nonce: nonce, cookie: encodeURIComponent(document.cookie) }, function( str ) { if( str == '0' ) { alert( setPostThumbnailL10n.error ); } else { kdMuFeaImgSetBoxContent( str, featuredImageID, post_type ); } }); } function kdMuFeaImgSet( id, featuredImageID, post_type, nonce ) { var $link = jQuery( 'a#' + featuredImageID + '-featuredimage' ); $link.text( setPostThumbnailL10n.saving ); if( typeof post_id == 'undefined' ) { post_id = jQuery('#post_ID').val(); } jQuery.post( ajaxurl, { action: 'set-MuFeaImg-' + featuredImageID + '-' + post_type, post_id: post_id, thumbnail_id: id, _ajax_nonce: nonce, cookie: encodeURIComponent(document.cookie) }, function( str ) { if( str == '0' || str == '-1' ) { alert( setPostThumbnailL10n.error ); } else { var win = window.dialogArguments || opener || parent || top; $link.show().text( setPostThumbnailL10n.done ); $link.fadeOut( 'slow', function() { jQuery('tr.MuFeaImg-' + featuredImageID + '-' + post_type ).hide(); }); win.kdMuFeaImgSetBoxContent( str, featuredImageID, post_type ); win.kdMuFeaImgSetMetaValue( id, featuredImageID, post_type ); } }); }
Fatal error: Uncaught Error: Class 'Avada_AvadaRedux_Migration' not found in /home/opsia/opsia2014.com/public_html/wp-content/themes/Avada/includes/class-avada-upgrade.php:325 Stack trace: #0 /home/opsia/opsia2014.com/public_html/wp-content/themes/Avada/includes/class-avada-upgrade.php(17): Avada_Upgrade->pre_400() #1 /home/opsia/opsia2014.com/public_html/wp-content/themes/Avada/functions.php(52): Avada_Upgrade->__construct() #2 /home/opsia/opsia2014.com/public_html/wp-settings.php(424): include('/home/opsia/ops...') #3 /home/opsia/opsia2014.com/public_html/wp-config.php(93): require_once('/home/opsia/ops...') #4 /home/opsia/opsia2014.com/public_html/wp-load.php(37): require_once('/home/opsia/ops...') #5 /home/opsia/opsia2014.com/public_html/wp-blog-header.php(13): require_once('/home/opsia/ops...') #6 /home/opsia/opsia2014.com/public_html/index.php(17): require('/home/opsia/ops...') #7 {main} thrown in /home/opsia/opsia2014.com/public_html/wp-content/themes/Avada/includes/class-avada-upgrade.php on line 325