- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 line
2.7 KiB
JavaScript
Executable File
1 line
2.7 KiB
JavaScript
Executable File
(()=>{var t={22507:(t,e,o)=>{const n=o(79152);t.exports=class extends n{init(){this.content="",this.hooks(),this.fetchContent()}hooks(){window.wp&&wp.hooks&&wp.hooks.addFilter("rank_math_content","rank-math",t=>this.content?this.content:t,11)}sendContent(t){this.isEditedWithTar||(this.content=t),void 0!==window.rankMathEditor&&rankMathEditor.refresh("content")}afterFetch(t){this.sendContent(t)}}},42071:(t,e,o)=>{(e=>{const n=o(79152);t.exports=class extends n{init(){YoastSEO.app.registerPlugin("tcbYoastPlugin",{status:"loading"}),this.fetchContent()}sendContent(t){YoastSEO.app.pluginReady("tcbYoastPlugin"),YoastSEO.app.registerModification("content",e=>this.parseTCBContent(e,t),"tcbYoastPlugin",5)}parseTCBContent(t,o){if(o){const t=".tcb-style-wrap",n=e(`<div>${o}</div>`).find(t);n.find("*:empty:not(img,input,br)").remove(),o=n.html()}return o||t}afterFetch(t){this.sendContent(t)}}})(jQuery)},79152:t=>{var e;e=jQuery,t.exports=class{fetchContent(){e.ajax({url:ajaxurl,type:"post",dataType:"json",data:{post_id:TCB_Post_Edit_Data.post_id,action:"tve_get_seo_content"}}).done(t=>{const o=e(`<div>${t.content}</div>`);o.find("header#thrive-header, footer#thrive-footer, aside#theme-sidebar-section").remove(),this.isEditedWithTar=t.is_edited_with_tar,this.afterFetch(o[0].outerHTML)})}afterFetch(){throw Error("Class should implement the afterFetch function")}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,o),a.exports}(t=>{const e=o(42071),n=new(o(22507)),i=new e;window.TCBYoastPlugin=e,t(window).on("YoastSEO:ready",()=>{i.init()}),t(document).ready(function(){void 0!==window.rankMath&&n.init()}),t(function(){const e=t(document);e.on("click.tcb","#tcb2-migrate-post",(e,o)=>{t("#tcb-admin-page-loader").show(),t.ajax({type:"post",url:ajaxurl,dataType:"json",data:{_nonce:TCB_Post_Edit_Data.admin_nonce,post_id:TCB_Post_Edit_Data.post_id,action:"tcb_admin_ajax_controller",route:"migrate_post_content"}}).done(function(){location.href=o.getAttribute("data-edit")}).fail(function(t){alert("ERROR: "+t.responseText)})}).on("click","#tcb2-show-wp-editor",function(){const o=e.find(".tcb-enable-editor"),n=o.closest(".postbox");n.next(".tcb-flags").find("input").prop("disabled",!1),n.before(o),n.remove(),t("body").removeClass("tcb-hide-wp-editor")}).on("click",".tcb-enable-editor",function(){t("body").addClass("tcb-hide-wp-editor"),t.ajax({type:"post",url:ajaxurl,dataType:"json",data:{_nonce:TCB_Post_Edit_Data.admin_nonce,post_id:this.getAttribute("data-id"),action:"tcb_admin_ajax_controller",route:"enable_tcb"}}).done(function(){t(window).off("beforeunload.edit-post"),t("input#save-post").trigger("click")})})})})(jQuery)})(); |