Plugin Directory

Changeset 2200227

Timestamp:
11/25/2019 05:11:13 AM (5 years ago)
Author:
batmoo
Message:

Release 0.9.2

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){}]);
    22//# sourceMappingURL=custom-status.build.js.map
  • edit-flow/tags/0.9.2/blocks/src/custom-status/block.js

    r2185823 r2200227  
    1414let statuses = window.EditFlowCustomStatuses.map( s => ({ label: s.name, value: s.slug }) );
    1515
    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 */
     25let sideEffectL10nManipulation = () => {
    2126  let node = document.querySelector('.editor-post-save-draft');
    2227  if ( node ) {
     
    4752  var status = select( 'core/editor' ).getEditedPostAttribute( 'status' );
    4853  if ( typeof status !== 'undefined' && status !== 'publish' ) {
    49     sideEffectL10nManipulation( getStatusLabel( status ) );
     54    sideEffectL10nManipulation();
    5055  }
    5156} );
     
    8489    onUpdate( status ) {
    8590      dispatch( 'core/editor' ).editPost( { status } );
    86       sideEffectL10nManipulation( getStatusLabel( status ) );
     91      sideEffectL10nManipulation();
    8792    },
    8893  };
  • edit-flow/tags/0.9.2/edit_flow.php

    r2185823 r2200227  
    55Description: Remixing the WordPress admin for better editorial workflow options.
    66Author: Daniel Bachhuber, Scott Bressler, Mohammad Jangda, Automattic, and others
    7 Version: 0.9.1
     7Version: 0.9.
    88Author URI: http://editflow.org/
    99
     
    4747
    4848// Define contants
    49 define( 'EDIT_FLOW_VERSION' , '0.9.1' );
     49define( 'EDIT_FLOW_VERSION' , '0.9.' );
    5050define( 'EDIT_FLOW_ROOT' , dirname(__FILE__) );
    5151define( 'EDIT_FLOW_FILE_PATH' , EDIT_FLOW_ROOT . '/' . basename(__FILE__) );
  • edit-flow/tags/0.9.2/readme.txt

    r2185823 r2200227  
    66Requires PHP: 5.6
    77Tested up to: 5.3
    8 Stable tag: 0.9.1
     8Stable tag: 0.9.
    99
    1010Redefining your editorial workflow.
     
    5858== Upgrade Notice ==
    5959
     60
     61
     62
    6063= 0.9.1 =
    6164Bump PHP minimum to 5.6 to match WordPress core. Plus, various bug fixes.
     
    114117== Changelog ==
    115118
    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) =
    117123* Bug fix: Prevent custom status from being reverted when using Gutenberg (https://github.com/Automattic/Edit-Flow/pull/521 -- props mikeyarce, batmoo)
    118124* 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){}]);
    22//# sourceMappingURL=custom-status.build.js.map
  • edit-flow/trunk/blocks/src/custom-status/block.js

    r2185823 r2200227  
    1414let statuses = window.EditFlowCustomStatuses.map( s => ({ label: s.name, value: s.slug }) );
    1515
    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 */
     25let sideEffectL10nManipulation = () => {
    2126  let node = document.querySelector('.editor-post-save-draft');
    2227  if ( node ) {
     
    4752  var status = select( 'core/editor' ).getEditedPostAttribute( 'status' );
    4853  if ( typeof status !== 'undefined' && status !== 'publish' ) {
    49     sideEffectL10nManipulation( getStatusLabel( status ) );
     54    sideEffectL10nManipulation();
    5055  }
    5156} );
     
    8489    onUpdate( status ) {
    8590      dispatch( 'core/editor' ).editPost( { status } );
    86       sideEffectL10nManipulation( getStatusLabel( status ) );
     91      sideEffectL10nManipulation();
    8792    },
    8893  };
  • edit-flow/trunk/edit_flow.php

    r2185823 r2200227  
    55Description: Remixing the WordPress admin for better editorial workflow options.
    66Author: Daniel Bachhuber, Scott Bressler, Mohammad Jangda, Automattic, and others
    7 Version: 0.9.1
     7Version: 0.9.
    88Author URI: http://editflow.org/
    99
     
    4747
    4848// Define contants
    49 define( 'EDIT_FLOW_VERSION' , '0.9.1' );
     49define( 'EDIT_FLOW_VERSION' , '0.9.' );
    5050define( 'EDIT_FLOW_ROOT' , dirname(__FILE__) );
    5151define( 'EDIT_FLOW_FILE_PATH' , EDIT_FLOW_ROOT . '/' . basename(__FILE__) );
  • edit-flow/trunk/readme.txt

    r2185823 r2200227  
    66Requires PHP: 5.6
    77Tested up to: 5.3
    8 Stable tag: 0.9.1
     8Stable tag: 0.9.
    99
    1010Redefining your editorial workflow.
     
    5858== Upgrade Notice ==
    5959
     60
     61
     62
    6063= 0.9.1 =
    6164Bump PHP minimum to 5.6 to match WordPress core. Plus, various bug fixes.
     
    114117== Changelog ==
    115118
    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) =
    117123* Bug fix: Prevent custom status from being reverted when using Gutenberg (https://github.com/Automattic/Edit-Flow/pull/521 -- props mikeyarce, batmoo)
    118124* 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.