CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Consider simplifying this complex logical expression.
Open

                    if( ( proxyXHR.statusText != 'abort' || proxyXHR.current ) && data ){
                        // Mark active job
                        _complete = false;

                        // Set current upload file
Severity: Major
Found in Web.Admin/z-scripts/FileAPI.js - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

                                    if (((!xhr.status && !xhr.aborted) || 500 == xhr.status) && (options.retry || 0) < options.uploadRetry) {
                                        options.retry = (options.retry || 0) + 1;
                                        var delay = api.networkDownRetryTimeout;
    
                                        // inform about recoverable problems
    Severity: Major
    Found in Web.Admin/z-scripts/FileAPI.js - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

                  if ((isInputTypeFile() && attribute.name !== 'type') 
                          || (attribute.name !== 'type' && attribute.name !== 'class' && 
                          attribute.name !== 'id' && attribute.name !== 'style')) {
                      fileElem.attr(attribute.name, attribute.value);
                  }
      Severity: Major
      Found in Web.Admin/z-scripts/ng-file-upload.js - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

              if (child.className && (cn = ' ' + child.className + ' ') && (cn.include(className) ||
                  (classNames && classNames.all(function(name) {
                    return !name.toString().blank() && cn.include(' ' + name + ' ');
                  }))))
                elements.push(Element.extend(child));
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

              if (Object.isString(insertions) || Object.isNumber(insertions) ||
                  Object.isElement(insertions) || (insertions && (insertions.toElement || insertions.toHTML)))
                    insertions = {bottom:insertions};
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                if (Object.isString(insertions) || Object.isNumber(insertions) ||
                    Object.isElement(insertions) || (insertions && (insertions.toElement || insertions.toHTML)))
                      insertions = { bottom: insertions };
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 40 mins to fix

              Consider simplifying this complex logical expression.
              Open

                          if ( event.ctrlKey || event.metaKey || event.altKey ||
                              ( keyCode < 48 && keyCode > 90 ) || keyCode > 186 ) {
                              return;
                          }

                Consider simplifying this complex logical expression.
                Open

                                if ( ! range.collapsed || ( range.startOffset === 0 && container.length ) ||
                                    container.nextSibling ||
                                    ( container.nodeType === 3 && range.startOffset !== container.length ) ) { // Not at the end of the current range
                
                                    return;
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/js/tinymce/plugins/wpview/plugin.js - About 40 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                      if (Object.isString(insertions) || Object.isNumber(insertions) ||
                          Object.isElement(insertions) || (insertions && (insertions.toElement || insertions.toHTML)))
                            insertions = { bottom: insertions };
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js - About 40 mins to fix

                    Consider simplifying this complex logical expression.
                    Open

                        if (Object.isString(insertions) || Object.isNumber(insertions) ||
                            Object.isElement(insertions) || (insertions && (insertions.toElement || insertions.toHTML)))
                              insertions = {bottom:insertions};
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js - About 40 mins to fix

                      Consider simplifying this complex logical expression.
                      Open

                            if (child.className && (cn = ' ' + child.className + ' ') && (cn.include(className) ||
                                (classNames && classNames.all(function(name) {
                                  return !name.toString().blank() && cn.include(' ' + name + ' ');
                                }))))
                              elements.push(Element.extend(child));
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js - About 40 mins to fix

                        Consider simplifying this complex logical expression.
                        Open

                              if((tag_name = src.tagName.toUpperCase()) && (
                                tag_name=='INPUT' ||
                                tag_name=='SELECT' ||
                                tag_name=='OPTION' ||
                                tag_name=='BUTTON' ||
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js - About 40 mins to fix

                          Consider simplifying this complex logical expression.
                          Open

                            if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 2)) {
                              throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3')
                            }
                          Severity: Major
                          Found in Web.Admin/Content/bootstrap/js/bootstrap.js - About 40 mins to fix

                            Consider simplifying this complex logical expression.
                            Open

                                        if (
                                            empty( $_item_object_data['menu-item-object-id'] ) && // checkbox is not checked
                                            (
                                                ! isset( $_item_object_data['menu-item-type'] ) || // and item type either isn't set
                                                in_array( $_item_object_data['menu-item-url'], array( 'http://', '' ) ) || // or URL is the default
                            Severity: Major
                            Found in Web.Admin/2014/wordpress/wp-admin/includes/nav-menu.php - About 40 mins to fix

                              Consider simplifying this complex logical expression.
                              Open

                                                      if ( ('reply' == $action || 'quickedit' == $action) && ! $from_ajax )
                                                          $action .= ' hide-if-no-js';
                                                      elseif ( ($action == 'untrash' && $the_comment_status == 'trash') || ($action == 'unspam' && $the_comment_status == 'spam') ) {
                                                          if ('1' == get_comment_meta($comment_id, '_wp_trash_meta_status', true))
                                                              $action .= ' approve';
                              Severity: Major
                              Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 40 mins to fix

                                Consider simplifying this complex logical expression.
                                Open

                                        if ( 'cb' == $column || 'title' == $column || 'name' == $column || 'username' == $column || 'media' == $column || 'comment' == $column )
                                            continue;
                                Severity: Major
                                Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 40 mins to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                                  if ( ( 'reply' == $action || 'quickedit' == $action ) && ! defined('DOING_AJAX') )
                                                      $action .= ' hide-if-no-js';
                                                  elseif ( ( $action == 'untrash' && $the_comment_status == 'trash' ) || ( $action == 'unspam' && $the_comment_status == 'spam' ) ) {
                                                      if ( '1' == get_comment_meta( $comment->comment_ID, '_wp_trash_meta_status', true ) )
                                                          $action .= ' approve';

                                    Consider simplifying this complex logical expression.
                                    Open

                                        if ( isset($_POST['trash']) && 1 == $_POST['trash'] ) {
                                            if ( 'trash' == $status )
                                                wp_die( time() );
                                            $r = wp_trash_comment( $comment->comment_ID );
                                        } elseif ( isset($_POST['untrash']) && 1 == $_POST['untrash'] ) {
                                    Severity: Major
                                    Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 40 mins to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                              if ('family' == $class && strpos($link_rel, 'child') === false && strpos($link_rel, 'parent') === false && strpos($link_rel, 'sibling') === false && strpos($link_rel, 'spouse') === false && strpos($link_rel, 'kin') === false) echo ' checked="checked"';
                                      Severity: Major
                                      Found in Web.Admin/2014/wordpress/wp-admin/includes/meta-boxes.php - About 40 mins to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                        if ( isset($_GET['doaction']) || isset($_GET['doaction2']) || isset($_GET['delete_all']) || isset($_GET['delete_all2']) || isset($_GET['bulk_edit']) ) {
                                            check_admin_referer('bulk-pages');
                                            $sendback = remove_query_arg( array('trashed', 'untrashed', 'deleted', 'ids'), wp_get_referer() );
                                        
                                            if ( strpos($sendback, 'page.php') !== false )
                                        Severity: Major
                                        Found in Web.Admin/2014/wordpress/wp-admin/edit-pages.php - About 40 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language