Changeset 2185823
- Timestamp:
- 11/04/2019 09:31:03 PM (5 years ago)
- Location:
- edit-flow
- Files:
-
- 2 added
- 24 deleted
- 24 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
edit-flow/tags/0.9.1/blocks/dist/custom-status.build.js
r2010360 r2185823 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, i=wp.data,l=i.withSelect,s=i.withDispatch,a=wp.compose.compose,c=wp.components.SelectControl,d=window.EditFlowCustomStatuses.map(function(t){return{label:t.name,value:t.slug}});u("edit-flow-custom-status",{icon:"edit-flow",render:a(l(function(t){return{status:t("core/editor").getEditedPostAttribute("status")}}),s(function(t){return{onUpdate:function(e){var n;t("core/editor").editPost({status:e}),function(t){document.querySelector(".editor-post-save-draft")&&(document.querySelector(".editor-post-save-draft").innerText="".concat(o("Save")," ").concat(t))}((n=e,d.find(function(t){return t.value===n}).label))}}}))(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(c,{label:"",value:n,options:d,onChange:e}):null,wp.element.createElement("small",{className:"edit-flow-extended-post-status-note"},"publish"!==n?o("Note: this will override all status settings above.","edit-flow"):o("Please switch to draft first.")))})})},,,,function(t,e){},function(t,e){}]);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,")))})})},,,,function(t,e){},function(t,e){}]); 2 2 //# sourceMappingURL=custom-status.build.js.map -
edit-flow/tags/0.9.1/blocks/src/custom-status/block.js
r2010360 r2185823 5 5 let { PluginPostStatusInfo } = wp.editPost; 6 6 let { registerPlugin } = wp.plugins; 7 let { withSelect, withDispatch } = wp.data;7 let { withSelect, withDispatch } = wp.data; 8 8 let { compose } = wp.compose; 9 9 let { SelectControl } = wp.components; … … 21 21 let node = document.querySelector('.editor-post-save-draft'); 22 22 if ( node ) { 23 document.querySelector( '.editor-post-save-draft').innerText = `${__( 'Save' ) } ${status}`23 document.querySelector(}` 24 24 } 25 25 } 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 26 52 27 53 /** … … 48 74 ); 49 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 50 91 let plugin = compose( 51 withSelect((select) => ({ 52 status: select('core/editor').getEditedPostAttribute('status'), 53 })), 54 withDispatch((dispatch) => ({ 55 onUpdate(status) { 56 dispatch('core/editor').editPost( { status } ); 57 sideEffectL10nManipulation( getStatusLabel( status ) ); 58 } 59 })) 60 )(EditFlowCustomPostStati); 92 withSelect( mapSelectToProps ), 93 withDispatch( mapDispatchToProps ) 94 )( EditFlowCustomPostStati ); 61 95 62 96 /** -
edit-flow/tags/0.9.1/common/php/class-module.php
r2010375 r2185823 29 29 30 30 /** 31 32 33 34 35 36 37 38 39 40 41 31 42 * Returns whether the module with the given name is enabled. 32 43 * … … 39 50 global $edit_flow; 40 51 41 return isset( $edit_flow->$slug ) && $edit_flow->$slug-> module->options->enabled == 'on';52 return isset( $edit_flow->$slug ) && $edit_flow->$slug->; 42 53 } 43 54 -
edit-flow/tags/0.9.1/common/php/trait-block-editor-compatible.php
r2010360 r2185823 50 50 */ 51 51 function action_init_for_admin() { 52 53 54 55 52 56 $this->check_active_plugins(); 53 57 -
edit-flow/tags/0.9.1/edit_flow.php
r2010375 r2185823 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 7 Version: 0.9 8 8 Author URI: http://editflow.org/ 9 9 … … 36 36 ?> 37 37 <div class="notice notice-error"> 38 <p><?php esc_html_e( 'Edit Flow requires PHP 5. 4+. Please contact your host to update your PHP version.', 'edit-flow' ); ?></p>38 <p><?php esc_html_e( 'Edit Flow requires PHP 5.+. Please contact your host to update your PHP version.', 'edit-flow' ); ?></p> 39 39 </div> 40 40 <?php 41 41 } 42 42 43 if ( version_compare( phpversion(), '5. 4', '<' ) ) {43 if ( version_compare( phpversion(), '5.', '<' ) ) { 44 44 add_action( 'admin_notices', '_ef_print_php_version_admin_notice' ); 45 45 return; … … 47 47 48 48 // Define contants 49 define( 'EDIT_FLOW_VERSION' , '0.9 ' );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__) ); … … 96 96 97 97 private function setup_globals() { 98 99 98 $this->modules = new stdClass(); 100 99 $this->modules_count = 0; 101 100 } 102 101 … … 297 296 $this->modules->$name = (object) $args; 298 297 298 299 299 300 /** 300 301 * Fires after edit_flow has registered a module. -
edit-flow/tags/0.9.1/modules/custom-status/compat/block-editor.php
r2010360 r2185823 11 11 */ 12 12 function action_admin_enqueue_scripts() { 13 14 15 16 13 17 /** 14 18 * WP_Screen::is_block_editor only available in 5.0. If it's available and is false it's safe to say we should only pass through to the module. … … 16 20 if ( Block_Editor_Compatible::is_at_least_50() && ! get_current_screen()->is_block_editor() ) { 17 21 return $this->ef_module->action_admin_enqueue_scripts(); 18 }19 20 if ( $this->ef_module->disable_custom_statuses_for_post_type() ) {21 return;22 22 } 23 23 -
edit-flow/tags/0.9.1/modules/custom-status/custom-status.php
r2010375 r2185823 118 118 add_filter( 'page_link', array( $this, 'fix_preview_link_part_two' ), 10, 3 ); 119 119 add_filter( 'post_type_link', array( $this, 'fix_preview_link_part_two' ), 10, 3 ); 120 120 121 add_filter( 'get_sample_permalink', array( $this, 'fix_get_sample_permalink' ), 10, 5 ); 121 122 add_filter( 'get_sample_permalink_html', array( $this, 'fix_get_sample_permalink_html' ), 10, 5); … … 282 283 return false; 283 284 284 if ( is_null( $post_type ) ) 285 if ( is_null( $post_type ) ) 285 286 $post_type = $this->get_current_post_type(); 286 287 if ( $post_type && ! in_array( $post_type, $this->get_post_types_for_module( $this->module ) ) ) 287 } 288 289 if ( $post_type && ! in_array( $post_type, $this->get_post_types_for_module( $this->module ) ) ) { 288 290 return true; 291 289 292 290 293 return false; … … 300 303 global $pagenow; 301 304 302 if ( $this->disable_custom_statuses_for_post_type() ) 305 if ( $this->disable_custom_statuses_for_post_type() ) 303 306 return; 307 304 308 305 309 // Load Javascript we need to use on the configuration views (jQuery Sortable and Quick Edit) … … 1500 1504 1501 1505 /** 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1502 1527 * Fix get_sample_permalink. Previosuly the 'editable_slug' filter was leveraged 1503 1528 * to correct the sample permalink a user could edit on post.php. Since 4.4.40 -
edit-flow/tags/0.9.1/modules/editorial-comments/lib/editorial-comments.js
r2010375 r2185823 24 24 25 25 // Watch for changes to the subscribed users. 26 $( '#ef-post_following_box' ).on( 'following_list_updated', function() {26 ( '#ef-post_following_box' ).on( 'following_list_updated', function() { 27 27 editorialCommentReply.notifiedMessage(); 28 28 } ); … … 146 146 subscribed_users.each( function() { 147 147 // Add usernames of checked users to the list if they don't have a blocking class 148 if ( ! $( this ).siblings().is( '.post_following_list-no_email,.post_following_list-no_access' ) && ! $( this ).hasClass( 'post_following_list-current_user' ) ) {149 usernames.push( $( this ).parent().siblings( '.ef-user_displayname, .ef-usergroup_name' ).text() );148 if ( ! ( this ).hasClass( 'post_following_list-current_user' ) ) { 149 usernames.push( ( this ).parent().siblings( '.ef-user_displayname, .ef-usergroup_name' ).text() ); 150 150 } 151 151 } ); -
edit-flow/tags/0.9.1/modules/notifications/notifications.php
r2010375 r2185823 421 421 422 422 if ( 'ef-selected-users[]' === $_POST['ef_notifications_name'] ) { 423 424 423 425 $this->save_post_following_users( $post, $user_group_ids ); 424 426 … … 447 449 wp_send_json_success( $json_success ); 448 450 } 451 452 449 453 } 450 454 -
edit-flow/tags/0.9.1/modules/settings/settings.php
r2010375 r2185823 226 226 <?php 227 227 } 228 228 229 229 function print_modules() { 230 230 global $edit_flow; 231 232 if ( ! count( $edit_flow->modules )) {231 232 if ( ! ) { 233 233 echo '<div class="message error">' . __( 'There are no Edit Flow modules registered', 'edit-flow' ) . '</div>'; 234 234 } else { 235 235 236 236 foreach ( $edit_flow->modules as $mod_name => $mod_data ) { 237 237 if ( $mod_data->autoload ) 238 238 continue; 239 239 240 240 $classes = array( 241 241 'edit-flow-module', -
edit-flow/tags/0.9.1/modules/user-groups/user-groups.php
r2010375 r2185823 688 688 return array( &$errors, $update, &$user ); 689 689 690 //Don't allow update of user groups from network 691 if ( ( !is_null( get_current_screen() ) ) && ( get_current_screen()->is_network ) ) 692 return; 690 // `get_current_screen()` is defined on most admin pages, but not all. 691 if( function_exists( 'get_current_screen' ) ){ 692 //Don't allow update of user groups from network 693 $screen = get_current_screen(); 694 if ( ! is_null( $screen ) && $screen->is_network ) { 695 return; 696 } 697 } 693 698 694 699 if ( current_user_can( $this->manage_usergroups_cap ) && wp_verify_nonce( $_POST['ef_edit_profile_usergroups_nonce'], 'ef_edit_profile_usergroups_nonce' ) ) { -
edit-flow/tags/0.9.1/readme.txt
r2010375 r2185823 3 3 Donate link: http://editflow.org/contribute/ 4 4 Tags: edit flow, workflow, editorial, newsroom, management, journalism, post status, custom status, notifications, email, comments, editorial comments, usergroups, calendars, editorial calendar, story budget 5 Requires at least: 4.56 Requires PHP: 5. 47 Tested up to: 5. 0.38 Stable tag: 0.9 5 Requires at least: 6 Requires PHP: 5. 7 Tested up to: 5.3 8 Stable tag: 0.9 9 9 10 10 Redefining your editorial workflow. 11 11 12 12 == Description == 13 14 [![Build Status](https://travis-ci.org/Automattic/Edit-Flow.svg?branch=master)](https://travis-ci.org/Automattic/Edit-Flow)15 13 16 14 Edit Flow empowers you to collaborate with your editorial team inside WordPress. We've made it modular so you can customize it to your needs: … … 48 46 All development happens on [GitHub](https://github.com/Automattic/Edit-Flow). 49 47 50 For support questions, feedback and ideas, please use the [WordPress.org forums](http://wordpress.org/tags/edit-flow?forum_id=10), which we look at often. For everything else, say [hello@editflow.org](mailto:hello@editflow.org). 48 For support questions, feedback and ideas, please use the [WordPress.org forums](http://wordpress.org/tags/edit-flow?forum_id=10), which we look at often. For everything else, say [hello@editflow.org](mailto:hello@editflow.org). 51 49 52 50 == Screenshots == … … 60 58 == Upgrade Notice == 61 59 62 = 0.9 = 60 = 0.9.1 = 61 Bump PHP minimum to 5.6 to match WordPress core. Plus, various bug fixes. 62 63 = 0.9 = 63 64 Bump minimum version of PHP to 5.4. Start implementation of Block Editor compatible modules, various improvements and bugfixes. 64 65 … … 112 113 113 114 == Changelog == 115 116 117 118 119 120 121 122 123 124 125 126 127 114 128 115 129 = 0.9 (January 10, 2018) = -
edit-flow/trunk/blocks/dist/custom-status.build.js
r2010360 r2185823 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, i=wp.data,l=i.withSelect,s=i.withDispatch,a=wp.compose.compose,c=wp.components.SelectControl,d=window.EditFlowCustomStatuses.map(function(t){return{label:t.name,value:t.slug}});u("edit-flow-custom-status",{icon:"edit-flow",render:a(l(function(t){return{status:t("core/editor").getEditedPostAttribute("status")}}),s(function(t){return{onUpdate:function(e){var n;t("core/editor").editPost({status:e}),function(t){document.querySelector(".editor-post-save-draft")&&(document.querySelector(".editor-post-save-draft").innerText="".concat(o("Save")," ").concat(t))}((n=e,d.find(function(t){return t.value===n}).label))}}}))(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(c,{label:"",value:n,options:d,onChange:e}):null,wp.element.createElement("small",{className:"edit-flow-extended-post-status-note"},"publish"!==n?o("Note: this will override all status settings above.","edit-flow"):o("Please switch to draft first.")))})})},,,,function(t,e){},function(t,e){}]);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,")))})})},,,,function(t,e){},function(t,e){}]); 2 2 //# sourceMappingURL=custom-status.build.js.map -
edit-flow/trunk/blocks/src/custom-status/block.js
r2010360 r2185823 5 5 let { PluginPostStatusInfo } = wp.editPost; 6 6 let { registerPlugin } = wp.plugins; 7 let { withSelect, withDispatch } = wp.data;7 let { withSelect, withDispatch } = wp.data; 8 8 let { compose } = wp.compose; 9 9 let { SelectControl } = wp.components; … … 21 21 let node = document.querySelector('.editor-post-save-draft'); 22 22 if ( node ) { 23 document.querySelector( '.editor-post-save-draft').innerText = `${__( 'Save' ) } ${status}`23 document.querySelector(}` 24 24 } 25 25 } 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 26 52 27 53 /** … … 48 74 ); 49 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 50 91 let plugin = compose( 51 withSelect((select) => ({ 52 status: select('core/editor').getEditedPostAttribute('status'), 53 })), 54 withDispatch((dispatch) => ({ 55 onUpdate(status) { 56 dispatch('core/editor').editPost( { status } ); 57 sideEffectL10nManipulation( getStatusLabel( status ) ); 58 } 59 })) 60 )(EditFlowCustomPostStati); 92 withSelect( mapSelectToProps ), 93 withDispatch( mapDispatchToProps ) 94 )( EditFlowCustomPostStati ); 61 95 62 96 /** -
edit-flow/trunk/common/php/class-module.php
r2010375 r2185823 29 29 30 30 /** 31 32 33 34 35 36 37 38 39 40 41 31 42 * Returns whether the module with the given name is enabled. 32 43 * … … 39 50 global $edit_flow; 40 51 41 return isset( $edit_flow->$slug ) && $edit_flow->$slug-> module->options->enabled == 'on';52 return isset( $edit_flow->$slug ) && $edit_flow->$slug->; 42 53 } 43 54 -
edit-flow/trunk/common/php/trait-block-editor-compatible.php
r2010360 r2185823 50 50 */ 51 51 function action_init_for_admin() { 52 53 54 55 52 56 $this->check_active_plugins(); 53 57 -
edit-flow/trunk/edit_flow.php
r2010375 r2185823 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 7 Version: 0.9 8 8 Author URI: http://editflow.org/ 9 9 … … 36 36 ?> 37 37 <div class="notice notice-error"> 38 <p><?php esc_html_e( 'Edit Flow requires PHP 5. 4+. Please contact your host to update your PHP version.', 'edit-flow' ); ?></p>38 <p><?php esc_html_e( 'Edit Flow requires PHP 5.+. Please contact your host to update your PHP version.', 'edit-flow' ); ?></p> 39 39 </div> 40 40 <?php 41 41 } 42 42 43 �� if ( version_compare( phpversion(), '5. 4', '<' ) ) {43 if ( version_compare( phpversion(), '5.', '<' ) ) { 44 44 add_action( 'admin_notices', '_ef_print_php_version_admin_notice' ); 45 45 return; … … 47 47 48 48 // Define contants 49 define( 'EDIT_FLOW_VERSION' , '0.9 ' );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__) ); … … 96 96 97 97 private function setup_globals() { 98 99 98 $this->modules = new stdClass(); 100 99 $this->modules_count = 0; 101 100 } 102 101 … … 297 296 $this->modules->$name = (object) $args; 298 297 298 299 299 300 /** 300 301 * Fires after edit_flow has registered a module. -
edit-flow/trunk/modules/custom-status/compat/block-editor.php
r2010360 r2185823 11 11 */ 12 12 function action_admin_enqueue_scripts() { 13 14 15 16 13 17 /** 14 18 * WP_Screen::is_block_editor only available in 5.0. If it's available and is false it's safe to say we should only pass through to the module. … … 16 20 if ( Block_Editor_Compatible::is_at_least_50() && ! get_current_screen()->is_block_editor() ) { 17 21 return $this->ef_module->action_admin_enqueue_scripts(); 18 }19 20 if ( $this->ef_module->disable_custom_statuses_for_post_type() ) {21 return;22 22 } 23 23 -
edit-flow/trunk/modules/custom-status/custom-status.php
r2010375 r2185823 118 118 add_filter( 'page_link', array( $this, 'fix_preview_link_part_two' ), 10, 3 ); 119 119 add_filter( 'post_type_link', array( $this, 'fix_preview_link_part_two' ), 10, 3 ); 120 120 121 add_filter( 'get_sample_permalink', array( $this, 'fix_get_sample_permalink' ), 10, 5 ); 121 122 add_filter( 'get_sample_permalink_html', array( $this, 'fix_get_sample_permalink_html' ), 10, 5); … … 282 283 return false; 283 284 284 if ( is_null( $post_type ) ) 285 if ( is_null( $post_type ) ) 285 286 $post_type = $this->get_current_post_type(); 286 287 if ( $post_type && ! in_array( $post_type, $this->get_post_types_for_module( $this->module ) ) ) 287 } 288 289 if ( $post_type && ! in_array( $post_type, $this->get_post_types_for_module( $this->module ) ) ) { 288 290 return true; 291 289 292 290 293 return false; … … 300 303 global $pagenow; 301 304 302 if ( $this->disable_custom_statuses_for_post_type() ) 305 if ( $this->disable_custom_statuses_for_post_type() ) 303 306 return; 307 304 308 305 309 // Load Javascript we need to use on the configuration views (jQuery Sortable and Quick Edit) … … 1500 1504 1501 1505 /** 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1502 1527 * Fix get_sample_permalink. Previosuly the 'editable_slug' filter was leveraged 1503 1528 * to correct the sample permalink a user could edit on post.php. Since 4.4.40 -
edit-flow/trunk/modules/editorial-comments/lib/editorial-comments.js
r2010375 r2185823 24 24 25 25 // Watch for changes to the subscribed users. 26 $( '#ef-post_following_box' ).on( 'following_list_updated', function() {26 ( '#ef-post_following_box' ).on( 'following_list_updated', function() { 27 27 editorialCommentReply.notifiedMessage(); 28 28 } ); … … 146 146 subscribed_users.each( function() { 147 147 // Add usernames of checked users to the list if they don't have a blocking class 148 if ( ! $( this ).siblings().is( '.post_following_list-no_email,.post_following_list-no_access' ) && ! $( this ).hasClass( 'post_following_list-current_user' ) ) {149 usernames.push( $( this ).parent().siblings( '.ef-user_displayname, .ef-usergroup_name' ).text() );148 if ( ! ( this ).hasClass( 'post_following_list-current_user' ) ) { 149 usernames.push( ( this ).parent().siblings( '.ef-user_displayname, .ef-usergroup_name' ).text() ); 150 150 } 151 151 } ); -
edit-flow/trunk/modules/notifications/notifications.php
r2010375 r2185823 421 421 422 422 if ( 'ef-selected-users[]' === $_POST['ef_notifications_name'] ) { 423 424 423 425 $this->save_post_following_users( $post, $user_group_ids ); 424 426 … … 447 449 wp_send_json_success( $json_success ); 448 450 } 451 452 449 453 } 450 454 -
edit-flow/trunk/modules/settings/settings.php
r2010375 r2185823 226 226 <?php 227 227 } 228 228 229 229 function print_modules() { 230 230 global $edit_flow; 231 232 if ( ! count( $edit_flow->modules )) {231 232 if ( ! ) { 233 233 echo '<div class="message error">' . __( 'There are no Edit Flow modules registered', 'edit-flow' ) . '</div>'; 234 234 } else { 235 235 236 236 foreach ( $edit_flow->modules as $mod_name => $mod_data ) { 237 237 if ( $mod_data->autoload ) 238 238 continue; 239 239 240 240 $classes = array( 241 241 'edit-flow-module', -
edit-flow/trunk/modules/user-groups/user-groups.php
r2010375 r2185823 688 688 return array( &$errors, $update, &$user ); 689 689 690 //Don't allow update of user groups from network 691 if ( ( !is_null( get_current_screen() ) ) && ( get_current_screen()->is_network ) ) 692 return; 690 // `get_current_screen()` is defined on most admin pages, but not all. 691 if( function_exists( 'get_current_screen' ) ){ 692 //Don't allow update of user groups from network 693 $screen = get_current_screen(); 694 if ( ! is_null( $screen ) && $screen->is_network ) { 695 return; 696 } 697 } 693 698 694 699 if ( current_user_can( $this->manage_usergroups_cap ) && wp_verify_nonce( $_POST['ef_edit_profile_usergroups_nonce'], 'ef_edit_profile_usergroups_nonce' ) ) { -
edit-flow/trunk/readme.txt
r2010375 r2185823 3 3 Donate link: http://editflow.org/contribute/ 4 4 Tags: edit flow, workflow, editorial, newsroom, management, journalism, post status, custom status, notifications, email, comments, editorial comments, usergroups, calendars, editorial calendar, story budget 5 Requires at least: 4.56 Requires PHP: 5. 47 Tested up to: 5. 0.38 Stable tag: 0.9 5 Requires at least: 6 Requires PHP: 5. 7 Tested up to: 5.3 8 Stable tag: 0.9 9 9 10 10 Redefining your editorial workflow. 11 11 12 12 == Description == 13 14 [![Build Status](https://travis-ci.org/Automattic/Edit-Flow.svg?branch=master)](https://travis-ci.org/Automattic/Edit-Flow)15 13 16 14 Edit Flow empowers you to collaborate with your editorial team inside WordPress. We've made it modular so you can customize it to your needs: … … 48 46 All development happens on [GitHub](https://github.com/Automattic/Edit-Flow). 49 47 50 For support questions, feedback and ideas, please use the [WordPress.org forums](http://wordpress.org/tags/edit-flow?forum_id=10), which we look at often. For everything else, say [hello@editflow.org](mailto:hello@editflow.org). 48 For support questions, feedback and ideas, please use the [WordPress.org forums](http://wordpress.org/tags/edit-flow?forum_id=10), which we look at often. For everything else, say [hello@editflow.org](mailto:hello@editflow.org). 51 49 52 50 == Screenshots == … … 60 58 == Upgrade Notice == 61 59 62 = 0.9 = 60 = 0.9.1 = 61 Bump PHP minimum to 5.6 to match WordPress core. Plus, various bug fixes. 62 63 = 0.9 = 63 64 Bump minimum version of PHP to 5.4. Start implementation of Block Editor compatible modules, various improvements and bugfixes. 64 65 … … 112 113 113 114 == Changelog == 115 116 117 118 119 120 121 122 123 124 125 126 127 114 128 115 129 = 0.9 (January 10, 2018) =
Note: See TracChangeset
for help on using the changeset viewer.