| Server IP : 68.178.247.200 / Your IP : 216.73.216.110 Web Server : Apache System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.126.2.lve.el8.x86_64 #1 SMP Thu May 28 14:12:30 UTC 2026 x86_64 User : x9dppmxs4rgd ( 8559391) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /proc/self/cwd/wp-content/plugins/publishpress/modules/custom-status/lib/ |
Upload File : |
!function(e){var t={};function s(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,s),r.l=!0,r.exports}s.m=e,s.c=t,s.d=function(e,t,a){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(s.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)s.d(a,r,function(t){return e[t]}.bind(null,r));return a},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=2)}({2:function(e,t){var s=wp.i18n.__,a=wp.editPost.PluginPostStatusInfo,r=wp.plugins.registerPlugin,u=wp.data,n=u.withSelect,i=u.withDispatch,o=(u.subscribe,wp.compose.compose),l=wp.components.SelectControl,c=["publish","future","private"],p=function(e){var t=window.PPCustomStatuses.find((function(t){return t.slug===e}));return t?t.name:window.PPCustomStatuses.find((function(e){return"draft"===e.slug})).name},d=function(e){setTimeout((function(){var t=document.querySelector(".editor-post-save-draft, .editor-post-switch-to-draft");if(t){var a,r=wp.data.select("core/editor").getCurrentPost().status;(a=c.includes(r)?"future"===r?s("Unschedule and Save as %s","publishpress").replace("%s",p("draft")):s("Unpublish and Save as %s","publishpress").replace("%s",p("draft")):s("Save as %s","publishpress").replace("%s",p(e)))!==t.getAttribute("aria-label")&&t.setAttribute("aria-label",a)}}),100)},f=wp.data.select("core/editor").getCurrentPost().status;setInterval((function(){wp.data.select("core/editor").getCurrentPost().status;var e=wp.data.select("core/editor").getEditedPostAttribute("status");d(e),f!==e&&(wp.data.dispatch("core/editor").editPost({status:"!"}),wp.data.dispatch("core/editor").editPost({status:e}),f=e)}),100);r("publishpress-custom-status-block",{icon:"admin-site",render:o(n((function(e){return{status:(t=wp.data.select("core/editor").getEditedPostAttribute("status"),"auto-draft"===t&&(t="draft"),t)};var t})),i((function(e){return{onUpdate:function(e){wp.data.dispatch("core/editor").editPost({status:e}),d(e)}}})))((function(e){var t,r,u,n=e.onUpdate,i=e.status,o=wp.data.select("core/editor").getCurrentPost().status;return[o,i].includes("publish")?(t=React.createElement("div",{className:"publishpress-static-post-status"},s("Published","publishpress")),r=React.createElement("small",{className:"publishpress-extended-post-status-note"},s("To select a custom status, please unpublish the content first.","publishpress"))):[o,i].includes("future")?(t=React.createElement("div",{className:"publishpress-static-post-status"},s("Scheduled","publishpress")),r=React.createElement("small",{className:"publishpress-extended-post-status-note"},s("To select a custom status, please unschedule the content first.","publishpress"))):"pending"===i?(t=React.createElement("div",{className:"publishpress-static-post-status"},s("Pending review","publishpress")),r=React.createElement("small",{className:"publishpress-extended-post-status-note"},s('To select a custom status, please uncheck the "Pending Review" checkbox first.',"publishpress"))):[o,i].includes("private")?(t=React.createElement("div",{className:"publishpress-static-post-status"},s("Privately Published","publishpress")),r=React.createElement("small",{className:"publishpress-extended-post-status-note"},s("To select a custom status, please unpublish the content first.","publishpress"))):t=React.createElement(l,{label:"",value:i,options:(u=window.PPCustomStatuses.map((function(e){return{label:e.name,value:e.slug}})),u=u.filter((function(e){return!c.includes(e.value)&&"pending"!=e.value}))),onChange:n}),React.createElement(a,{className:"publishpress-extended-post-status publishpress-extended-post-status-".concat(i)},React.createElement("h4",null,s("Post Status","publishpress")),t,r)}))})}});