Plugin Directory

Changeset 2185823

Timestamp:
11/04/2019 09:31:03 PM (5 years ago)
Author:
batmoo
Message:

Tag and release 0.9.1

https://github.com/Automattic/Edit-Flow/releases/tag/0.9.1

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

    r2010360 r2185823  
    55let { PluginPostStatusInfo } = wp.editPost;
    66let { registerPlugin } = wp.plugins;
    7 let { withSelect, withDispatch } = wp.data;
     7let { withSelect, withDispatch } = wp.data;
    88let { compose } = wp.compose;
    99let { SelectControl } = wp.components;
     
    2121  let node = document.querySelector('.editor-post-save-draft');
    2222  if ( node ) {
    23     document.querySelector('.editor-post-save-draft').innerText = `${__( 'Save' ) } ${status}`
     23    document.querySelector(}`
    2424  }
    2525}
     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
    2652
    2753/**
     
    4874);
    4975
     76
     77
     78
     79
     80
     81
     82
     83
     84
     85
     86
     87
     88
     89
     90
    5091let 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 );
    6195
    6296/**
  • edit-flow/tags/0.9.1/common/php/class-module.php

    r2010375 r2185823  
    2929
    3030    /**
     31
     32
     33
     34
     35
     36
     37
     38
     39
     40
     41
    3142     * Returns whether the module with the given name is enabled.
    3243     *
     
    3950        global $edit_flow;
    4051
    41         return isset( $edit_flow->$slug ) && $edit_flow->$slug->module->options->enabled == 'on';
     52        return isset( $edit_flow->$slug ) && $edit_flow->$slug->;
    4253    }
    4354
  • edit-flow/tags/0.9.1/common/php/trait-block-editor-compatible.php

    r2010360 r2185823  
    5050     */
    5151    function action_init_for_admin() {
     52
     53
     54
     55
    5256        $this->check_active_plugins();
    5357
  • edit-flow/tags/0.9.1/edit_flow.php

    r2010375 r2185823  
    55Description: Remixing the WordPress admin for better editorial workflow options.
    66Author: Daniel Bachhuber, Scott Bressler, Mohammad Jangda, Automattic, and others
    7 Version: 0.9
     7Version: 0.9
    88Author URI: http://editflow.org/
    99
     
    3636    ?>
    3737    <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>
    3939        </div>
    4040    <?php
    4141}
    4242
    43 if ( version_compare( phpversion(), '5.4', '<' ) ) {
     43if ( version_compare( phpversion(), '5.', '<' ) ) {
    4444    add_action( 'admin_notices', '_ef_print_php_version_admin_notice' );
    4545    return;
     
    4747
    4848// Define contants
    49 define( 'EDIT_FLOW_VERSION' , '0.9' );
     49define( 'EDIT_FLOW_VERSION' , '0.9' );
    5050define( 'EDIT_FLOW_ROOT' , dirname(__FILE__) );
    5151define( 'EDIT_FLOW_FILE_PATH' , EDIT_FLOW_ROOT . '/' . basename(__FILE__) );
     
    9696
    9797    private function setup_globals() {
    98 
    9998        $this->modules = new stdClass();
    100 
     99        $this->modules_count = 0;
    101100    }
    102101
     
    297296        $this->modules->$name = (object) $args;
    298297
     298
     299
    299300        /**
    300301         * Fires after edit_flow has registered a module.
  • edit-flow/tags/0.9.1/modules/custom-status/compat/block-editor.php

    r2010360 r2185823  
    1111     */
    1212    function action_admin_enqueue_scripts() {
     13
     14
     15
     16
    1317        /**
    1418         * 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.
     
    1620        if ( Block_Editor_Compatible::is_at_least_50() && ! get_current_screen()->is_block_editor() ) {
    1721            return $this->ef_module->action_admin_enqueue_scripts();
    18         }
    19 
    20         if ( $this->ef_module->disable_custom_statuses_for_post_type() ) {
    21             return;
    2222        }
    2323
  • edit-flow/tags/0.9.1/modules/custom-status/custom-status.php

    r2010375 r2185823  
    118118        add_filter( 'page_link', array( $this, 'fix_preview_link_part_two' ), 10, 3 );
    119119        add_filter( 'post_type_link', array( $this, 'fix_preview_link_part_two' ), 10, 3 );
     120
    120121        add_filter( 'get_sample_permalink', array( $this, 'fix_get_sample_permalink' ), 10, 5 );
    121122        add_filter( 'get_sample_permalink_html', array( $this, 'fix_get_sample_permalink_html' ), 10, 5);
     
    282283            return false;
    283284
    284         if ( is_null( $post_type ) )
     285        if ( is_null( $post_type ) )
    285286            $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 ) ) ) {
    288290            return true;
     291
    289292
    290293        return false;
     
    300303        global $pagenow;
    301304
    302         if ( $this->disable_custom_statuses_for_post_type() )
     305        if ( $this->disable_custom_statuses_for_post_type() )
    303306            return;
     307
    304308
    305309        // Load Javascript we need to use on the configuration views (jQuery Sortable and Quick Edit)
     
    15001504
    15011505    /**
     1506
     1507
     1508
     1509
     1510
     1511
     1512
     1513
     1514
     1515
     1516
     1517
     1518
     1519
     1520
     1521
     1522
     1523
     1524
     1525
     1526
    15021527     * Fix get_sample_permalink. Previosuly the 'editable_slug' filter was leveraged
    15031528     * 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  
    2424
    2525        // 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() {
    2727            editorialCommentReply.notifiedMessage();
    2828        } );
     
    146146        subscribed_users.each( function() {         
    147147            // 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() );
    150150            }
    151151        } );
  • edit-flow/tags/0.9.1/modules/notifications/notifications.php

    r2010375 r2185823  
    421421
    422422        if ( 'ef-selected-users[]' === $_POST['ef_notifications_name'] ) {
     423
     424
    423425            $this->save_post_following_users( $post, $user_group_ids );
    424426           
     
    447449                wp_send_json_success( $json_success );
    448450            }
     451
     452
    449453        }
    450454       
  • edit-flow/tags/0.9.1/modules/settings/settings.php

    r2010375 r2185823  
    226226        <?php
    227227    }
    228    
     228
    229229    function print_modules() {
    230230        global $edit_flow;
    231        
    232         if ( !count( $edit_flow->modules ) ) {
     231
     232        if ( ! ) {
    233233            echo '<div class="message error">' . __( 'There are no Edit Flow modules registered', 'edit-flow' ) . '</div>';
    234234        } else {
    235            
     235
    236236            foreach ( $edit_flow->modules as $mod_name => $mod_data ) {
    237237                if ( $mod_data->autoload )
    238238                    continue;
    239                
     239
    240240                $classes = array(
    241241                    'edit-flow-module',
  • edit-flow/tags/0.9.1/modules/user-groups/user-groups.php

    r2010375 r2185823  
    688688            return array( &$errors, $update, &$user );
    689689
    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        }
    693698
    694699        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  
    33Donate link: http://editflow.org/contribute/
    44Tags: 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.5
    6 Requires PHP: 5.4
    7 Tested up to: 5.0.3
    8 Stable tag: 0.9
     5Requires at least:
     6Requires PHP: 5.
     7Tested up to: 5.3
     8Stable tag: 0.9
    99
    1010Redefining your editorial workflow.
    1111
    1212== Description ==
    13 
    14 [![Build Status](https://travis-ci.org/Automattic/Edit-Flow.svg?branch=master)](https://travis-ci.org/Automattic/Edit-Flow)
    1513
    1614Edit Flow empowers you to collaborate with your editorial team inside WordPress. We've made it modular so you can customize it to your needs:
     
    4846All development happens on [GitHub](https://github.com/Automattic/Edit-Flow).
    4947
    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). 
     48For 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).
    5149
    5250== Screenshots ==
     
    6058== Upgrade Notice ==
    6159
    62 = 0.9 =
     60= 0.9.1 =
     61Bump PHP minimum to 5.6 to match WordPress core. Plus, various bug fixes.
     62
     63= 0.9 =
    6364Bump minimum version of PHP to 5.4. Start implementation of Block Editor compatible modules, various improvements and bugfixes.
    6465
     
    112113
    113114== Changelog ==
     115
     116
     117
     118
     119
     120
     121
     122
     123
     124
     125
     126
     127
    114128
    115129= 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){}]);
    22//# sourceMappingURL=custom-status.build.js.map
  • edit-flow/trunk/blocks/src/custom-status/block.js

    r2010360 r2185823  
    55let { PluginPostStatusInfo } = wp.editPost;
    66let { registerPlugin } = wp.plugins;
    7 let { withSelect, withDispatch } = wp.data;
     7let { withSelect, withDispatch } = wp.data;
    88let { compose } = wp.compose;
    99let { SelectControl } = wp.components;
     
    2121  let node = document.querySelector('.editor-post-save-draft');
    2222  if ( node ) {
    23     document.querySelector('.editor-post-save-draft').innerText = `${__( 'Save' ) } ${status}`
     23    document.querySelector(}`
    2424  }
    2525}
     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
    2652
    2753/**
     
    4874);
    4975
     76
     77
     78
     79
     80
     81
     82
     83
     84
     85
     86
     87
     88
     89
     90
    5091let 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 );
    6195
    6296/**
  • edit-flow/trunk/common/php/class-module.php

    r2010375 r2185823  
    2929
    3030    /**
     31
     32
     33
     34
     35
     36
     37
     38
     39
     40
     41
    3142     * Returns whether the module with the given name is enabled.
    3243     *
     
    3950        global $edit_flow;
    4051
    41         return isset( $edit_flow->$slug ) && $edit_flow->$slug->module->options->enabled == 'on';
     52        return isset( $edit_flow->$slug ) && $edit_flow->$slug->;
    4253    }
    4354
  • edit-flow/trunk/common/php/trait-block-editor-compatible.php

    r2010360 r2185823  
    5050     */
    5151    function action_init_for_admin() {
     52
     53
     54
     55
    5256        $this->check_active_plugins();
    5357
  • edit-flow/trunk/edit_flow.php

    r2010375 r2185823  
    55Description: Remixing the WordPress admin for better editorial workflow options.
    66Author: Daniel Bachhuber, Scott Bressler, Mohammad Jangda, Automattic, and others
    7 Version: 0.9
     7Version: 0.9
    88Author URI: http://editflow.org/
    99
     
    3636    ?>
    3737    <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>
    3939        </div>
    4040    <?php
    4141}
    4242
    43��if ( version_compare( phpversion(), '5.4', '<' ) ) {
     43if ( version_compare( phpversion(), '5.', '<' ) ) {
    4444    add_action( 'admin_notices', '_ef_print_php_version_admin_notice' );
    4545    return;
     
    4747
    4848// Define contants
    49 define( 'EDIT_FLOW_VERSION' , '0.9' );
     49define( 'EDIT_FLOW_VERSION' , '0.9' );
    5050define( 'EDIT_FLOW_ROOT' , dirname(__FILE__) );
    5151define( 'EDIT_FLOW_FILE_PATH' , EDIT_FLOW_ROOT . '/' . basename(__FILE__) );
     
    9696
    9797    private function setup_globals() {
    98 
    9998        $this->modules = new stdClass();
    100 
     99        $this->modules_count = 0;
    101100    }
    102101
     
    297296        $this->modules->$name = (object) $args;
    298297
     298
     299
    299300        /**
    300301         * Fires after edit_flow has registered a module.
  • edit-flow/trunk/modules/custom-status/compat/block-editor.php

    r2010360 r2185823  
    1111     */
    1212    function action_admin_enqueue_scripts() {
     13
     14
     15
     16
    1317        /**
    1418         * 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.
     
    1620        if ( Block_Editor_Compatible::is_at_least_50() && ! get_current_screen()->is_block_editor() ) {
    1721            return $this->ef_module->action_admin_enqueue_scripts();
    18         }
    19 
    20         if ( $this->ef_module->disable_custom_statuses_for_post_type() ) {
    21             return;
    2222        }
    2323
  • edit-flow/trunk/modules/custom-status/custom-status.php

    r2010375 r2185823  
    118118        add_filter( 'page_link', array( $this, 'fix_preview_link_part_two' ), 10, 3 );
    119119        add_filter( 'post_type_link', array( $this, 'fix_preview_link_part_two' ), 10, 3 );
     120
    120121        add_filter( 'get_sample_permalink', array( $this, 'fix_get_sample_permalink' ), 10, 5 );
    121122        add_filter( 'get_sample_permalink_html', array( $this, 'fix_get_sample_permalink_html' ), 10, 5);
     
    282283            return false;
    283284
    284         if ( is_null( $post_type ) )
     285        if ( is_null( $post_type ) )
    285286            $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 ) ) ) {
    288290            return true;
     291
    289292
    290293        return false;
     
    300303        global $pagenow;
    301304
    302         if ( $this->disable_custom_statuses_for_post_type() )
     305        if ( $this->disable_custom_statuses_for_post_type() )
    303306            return;
     307
    304308
    305309        // Load Javascript we need to use on the configuration views (jQuery Sortable and Quick Edit)
     
    15001504
    15011505    /**
     1506
     1507
     1508
     1509
     1510
     1511
     1512
     1513
     1514
     1515
     1516
     1517
     1518
     1519
     1520
     1521
     1522
     1523
     1524
     1525
     1526
    15021527     * Fix get_sample_permalink. Previosuly the 'editable_slug' filter was leveraged
    15031528     * 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  
    2424
    2525        // 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() {
    2727            editorialCommentReply.notifiedMessage();
    2828        } );
     
    146146        subscribed_users.each( function() {         
    147147            // 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() );
    150150            }
    151151        } );
  • edit-flow/trunk/modules/notifications/notifications.php

    r2010375 r2185823  
    421421
    422422        if ( 'ef-selected-users[]' === $_POST['ef_notifications_name'] ) {
     423
     424
    423425            $this->save_post_following_users( $post, $user_group_ids );
    424426           
     
    447449                wp_send_json_success( $json_success );
    448450            }
     451
     452
    449453        }
    450454       
  • edit-flow/trunk/modules/settings/settings.php

    r2010375 r2185823  
    226226        <?php
    227227    }
    228    
     228
    229229    function print_modules() {
    230230        global $edit_flow;
    231        
    232         if ( !count( $edit_flow->modules ) ) {
     231
     232        if ( ! ) {
    233233            echo '<div class="message error">' . __( 'There are no Edit Flow modules registered', 'edit-flow' ) . '</div>';
    234234        } else {
    235            
     235
    236236            foreach ( $edit_flow->modules as $mod_name => $mod_data ) {
    237237                if ( $mod_data->autoload )
    238238                    continue;
    239                
     239
    240240                $classes = array(
    241241                    'edit-flow-module',
  • edit-flow/trunk/modules/user-groups/user-groups.php

    r2010375 r2185823  
    688688            return array( &$errors, $update, &$user );
    689689
    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        }
    693698
    694699        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  
    33Donate link: http://editflow.org/contribute/
    44Tags: 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.5
    6 Requires PHP: 5.4
    7 Tested up to: 5.0.3
    8 Stable tag: 0.9
     5Requires at least:
     6Requires PHP: 5.
     7Tested up to: 5.3
     8Stable tag: 0.9
    99
    1010Redefining your editorial workflow.
    1111
    1212== Description ==
    13 
    14 [![Build Status](https://travis-ci.org/Automattic/Edit-Flow.svg?branch=master)](https://travis-ci.org/Automattic/Edit-Flow)
    1513
    1614Edit Flow empowers you to collaborate with your editorial team inside WordPress. We've made it modular so you can customize it to your needs:
     
    4846All development happens on [GitHub](https://github.com/Automattic/Edit-Flow).
    4947
    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). 
     48For 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).
    5149
    5250== Screenshots ==
     
    6058== Upgrade Notice ==
    6159
    62 = 0.9 =
     60= 0.9.1 =
     61Bump PHP minimum to 5.6 to match WordPress core. Plus, various bug fixes.
     62
     63= 0.9 =
    6364Bump minimum version of PHP to 5.4. Start implementation of Block Editor compatible modules, various improvements and bugfixes.
    6465
     
    112113
    113114== Changelog ==
     115
     116
     117
     118
     119
     120
     121
     122
     123
     124
     125
     126
     127
    114128
    115129= 0.9 (January 10, 2018) =
Note: See TracChangeset for help on using the changeset viewer.