Changeset 2200227
- Timestamp:
- 11/25/2019 05:11:13 AM (5 years ago)
- Location:
- edit-flow
- Files:
-
- 8 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
edit-flow/tags/0.9.2/blocks/dist/custom-status.build.js
r2185823 r2200227 1 !function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([,function(t,e,n){"use strict";n.r(e);n(5),n(6);var o=wp.i18n.__,r=wp.editPost.PluginPostStatusInfo,u=wp.plugins.registerPlugin,s=wp.data,i=s.subscribe,l=s.dispatch,a=s.select,c=s.withSelect,d=s.withDispatch,f=wp.compose.compose,p=wp.components.SelectControl,m=window.EditFlowCustomStatuses.map(function(t){return{label:t.name,value:t.slug}}),b=function(t){return m.find(function(e){return e.value===t}).label},w=function(t){document.querySelector(".editor-post-save-draft")&&(document.querySelector(".editor-post-save-draft").innerText="".concat(o("Save")))};i(function(){if(a("core/editor").getCurrentPostId())if(a("core/editor").isCleanNewPost())l("core/editor").editPost({status:ef_default_custom_status});else{var t=a("core/editor").getEditedPostAttribute("status");void 0!==t&&"publish"!==t&&w(b(t))}});u("edit-flow-custom-status",{icon:"edit-flow",render:f(c(function(t){return{status:t("core/editor").getEditedPostAttribute("status")}}),d(function(t){return{onUpdate:function(e){t("core/editor").editPost({status:e}),w(b(e))}}}))(function(t){var e=t.onUpdate,n=t.status;return wp.element.createElement(r,{className:"edit-flow-extended-post-status edit-flow-extended-post-status-".concat(n)},wp.element.createElement("h4",null,o("publish"!==n?"Extended Post Status":"Extended Post Status Disabled.","edit-flow")),"publish"!==n?wp.element.createElement(p,{label:"",value:n,options:m,onChange:e}):null,wp.element.createElement("small",{className:"edit-flow-extended-post-status-note"},o("publish"!==n?"Note: this will override all status settings above.":"To select a custom status, please unpublish the content first.","edit-flow")))})})},,,,function(t,e){},function(t,e){}]);1 !function(t){var e={};function ?"Note: this will override all status settings above.":"To select a custom status, please unpublish the content first.","edit-flow")))})})},,,,function(t,e){},function(t,e){}]); 2 2 //# sourceMappingURL=custom-status.build.js.map -
edit-flow/tags/0.9.2/blocks/src/custom-status/block.js
r2185823 r2200227 14 14 let statuses = window.EditFlowCustomStatuses.map( s => ({ label: s.name, value: s.slug }) ); 15 15 16 let getStatusLabel = slug => statuses.find( s => s.value === slug ).label; 17 18 // Hack :( 19 // @see https://github.com/WordPress/gutenberg/issues/3144 20 let sideEffectL10nManipulation = status => { 16 /** 17 * Hack :( 18 * 19 * @see https://github.com/WordPress/gutenberg/issues/3144 20 * 21 * Gutenberg overrides the label of the Save button after save (i.e. "Save Draft"). But there's no way to subscribe to a "post save" message. 22 * 23 * So instead, we're keeping the button label generic ("Save"). There's a brief period where it still flips to "Save Draft" but that's something we need to work upstream to find a good fix for. 24 */ 25 let sideEffectL10nManipulation = () => { 21 26 let node = document.querySelector('.editor-post-save-draft'); 22 27 if ( node ) { … … 47 52 var status = select( 'core/editor' ).getEditedPostAttribute( 'status' ); 48 53 if ( typeof status !== 'undefined' && status !== 'publish' ) { 49 sideEffectL10nManipulation( getStatusLabel( status ));54 sideEffectL10nManipulation(); 50 55 } 51 56 } ); … … 84 89 onUpdate( status ) { 85 90 dispatch( 'core/editor' ).editPost( { status } ); 86 sideEffectL10nManipulation( getStatusLabel( status ));91 sideEffectL10nManipulation(); 87 92 }, 88 93 }; -
edit-flow/tags/0.9.2/edit_flow.php
r2185823 r2200227 5 5 Description: Remixing the WordPress admin for better editorial workflow options. 6 6 Author: Daniel Bachhuber, Scott Bressler, Mohammad Jangda, Automattic, and others 7 Version: 0.9. 17 Version: 0.9. 8 8 Author URI: http://editflow.org/ 9 9 … … 47 47 48 48 // Define contants 49 define( 'EDIT_FLOW_VERSION' , '0.9. 1' );49 define( 'EDIT_FLOW_VERSION' , '0.9.' ); 50 50 define( 'EDIT_FLOW_ROOT' , dirname(__FILE__) ); 51 51 define( 'EDIT_FLOW_FILE_PATH' , EDIT_FLOW_ROOT . '/' . basename(__FILE__) ); -
edit-flow/tags/0.9.2/readme.txt
r2185823 r2200227 6 6 Requires PHP: 5.6 7 7 Tested up to: 5.3 8 Stable tag: 0.9. 18 Stable tag: 0.9. 9 9 10 10 Redefining your editorial workflow. … … 58 58 == Upgrade Notice == 59 59 60 61 62 60 63 = 0.9.1 = 61 64 Bump PHP minimum to 5.6 to match WordPress core. Plus, various bug fixes. … … 114 117 == Changelog == 115 118 116 = 0.9.1 (November 4, 2019) 119 = 0.9.1 (November 24, 2019) = 120 * Bug fix: Prevent issues with scheduling and trashing posts when using the block editor (https://github.com/Automattic/Edit-Flow/pull/556 -- props cojennin, davisshaver, batmoo) 121 122 = 0.9.1 (November 4, 2019) = 117 123 * Bug fix: Prevent custom status from being reverted when using Gutenberg (https://github.com/Automattic/Edit-Flow/pull/521 -- props mikeyarce, batmoo) 118 124 * Bug fix: Don't break post previews when using custom statuses (https://github.com/Automattic/Edit-Flow/pull/515 -- props -
edit-flow/trunk/blocks/dist/custom-status.build.js
r2185823 r2200227 1 !function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([,function(t,e,n){"use strict";n.r(e);n(5),n(6);var o=wp.i18n.__,r=wp.editPost.PluginPostStatusInfo,u=wp.plugins.registerPlugin,s=wp.data,i=s.subscribe,l=s.dispatch,a=s.select,c=s.withSelect,d=s.withDispatch,f=wp.compose.compose,p=wp.components.SelectControl,m=window.EditFlowCustomStatuses.map(function(t){return{label:t.name,value:t.slug}}),b=function(t){return m.find(function(e){return e.value===t}).label},w=function(t){document.querySelector(".editor-post-save-draft")&&(document.querySelector(".editor-post-save-draft").innerText="".concat(o("Save")))};i(function(){if(a("core/editor").getCurrentPostId())if(a("core/editor").isCleanNewPost())l("core/editor").editPost({status:ef_default_custom_status});else{var t=a("core/editor").getEditedPostAttribute("status");void 0!==t&&"publish"!==t&&w(b(t))}});u("edit-flow-custom-status",{icon:"edit-flow",render:f(c(function(t){return{status:t("core/editor").getEditedPostAttribute("status")}}),d(function(t){return{onUpdate:function(e){t("core/editor").editPost({status:e}),w(b(e))}}}))(function(t){var e=t.onUpdate,n=t.status;return wp.element.createElement(r,{className:"edit-flow-extended-post-status edit-flow-extended-post-status-".concat(n)},wp.element.createElement("h4",null,o("publish"!==n?"Extended Post Status":"Extended Post Status Disabled.","edit-flow")),"publish"!==n?wp.element.createElement(p,{label:"",value:n,options:m,onChange:e}):null,wp.element.createElement("small",{className:"edit-flow-extended-post-status-note"},o("publish"!==n?"Note: this will override all status settings above.":"To select a custom status, please unpublish the content first.","edit-flow")))})})},,,,function(t,e){},function(t,e){}]);1 !function(t){var e={};function ?"Note: this will override all status settings above.":"To select a custom status, please unpublish the content first.","edit-flow")))})})},,,,function(t,e){},function(t,e){}]); 2 2 //# sourceMappingURL=custom-status.build.js.map -
edit-flow/trunk/blocks/src/custom-status/block.js
r2185823 r2200227 14 14 let statuses = window.EditFlowCustomStatuses.map( s => ({ label: s.name, value: s.slug }) ); 15 15 16 let getStatusLabel = slug => statuses.find( s => s.value === slug ).label; 17 18 // Hack :( 19 // @see https://github.com/WordPress/gutenberg/issues/3144 20 let sideEffectL10nManipulation = status => { 16 /** 17 * Hack :( 18 * 19 * @see https://github.com/WordPress/gutenberg/issues/3144 20 * 21 * Gutenberg overrides the label of the Save button after save (i.e. "Save Draft"). But there's no way to subscribe to a "post save" message. 22 * 23 * So instead, we're keeping the button label generic ("Save"). There's a brief period where it still flips to "Save Draft" but that's something we need to work upstream to find a good fix for. 24 */ 25 let sideEffectL10nManipulation = () => { 21 26 let node = document.querySelector('.editor-post-save-draft'); 22 27 if ( node ) { … … 47 52 var status = select( 'core/editor' ).getEditedPostAttribute( 'status' ); 48 53 if ( typeof status !== 'undefined' && status !== 'publish' ) { 49 sideEffectL10nManipulation( getStatusLabel( status ));54 sideEffectL10nManipulation(); 50 55 } 51 56 } ); … … 84 89 onUpdate( status ) { 85 90 dispatch( 'core/editor' ).editPost( { status } ); 86 sideEffectL10nManipulation( getStatusLabel( status ));91 sideEffectL10nManipulation(); 87 92 }, 88 93 }; -
edit-flow/trunk/edit_flow.php
r2185823 r2200227 5 5 Description: Remixing the WordPress admin for better editorial workflow options. 6 6 Author: Daniel Bachhuber, Scott Bressler, Mohammad Jangda, Automattic, and others 7 Version: 0.9. 17 Version: 0.9. 8 8 Author URI: http://editflow.org/ 9 9 … … 47 47 48 48 // Define contants 49 define( 'EDIT_FLOW_VERSION' , '0.9. 1' );49 define( 'EDIT_FLOW_VERSION' , '0.9.' ); 50 50 define( 'EDIT_FLOW_ROOT' , dirname(__FILE__) ); 51 51 define( 'EDIT_FLOW_FILE_PATH' , EDIT_FLOW_ROOT . '/' . basename(__FILE__) ); -
edit-flow/trunk/readme.txt
r2185823 r2200227 6 6 Requires PHP: 5.6 7 7 Tested up to: 5.3 8 Stable tag: 0.9. 18 Stable tag: 0.9. 9 9 10 10 Redefining your editorial workflow. … … 58 58 == Upgrade Notice == 59 59 60 61 62 60 63 = 0.9.1 = 61 64 Bump PHP minimum to 5.6 to match WordPress core. Plus, various bug fixes. … … 114 117 == Changelog == 115 118 116 = 0.9.1 (November 4, 2019) 119 = 0.9.1 (November 24, 2019) = 120 * Bug fix: Prevent issues with scheduling and trashing posts when using the block editor (https://github.com/Automattic/Edit-Flow/pull/556 -- props cojennin, davisshaver, batmoo) 121 122 = 0.9.1 (November 4, 2019) = 117 123 * Bug fix: Prevent custom status from being reverted when using Gutenberg (https://github.com/Automattic/Edit-Flow/pull/521 -- props mikeyarce, batmoo) 118 124 * Bug fix: Don't break post previews when using custom statuses (https://github.com/Automattic/Edit-Flow/pull/515 -- props
Note: See TracChangeset
for help on using the changeset viewer.