CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Method _page_rows has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function _page_rows( &$children_pages, &$count, $parent, $level, $pagenum, $per_page ) {

    if ( ! isset( $children_pages[$parent] ) )
        return;

Severity: Minor
Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 1 hr to fix

    Method get_views has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function get_views() {
            global $post_id, $comment_status, $comment_type;
    
            $status_links = array();
            $num_comments = ( $post_id ) ? wp_count_comments( $post_id ) : wp_count_comments();

      Method get_inline_data has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function get_inline_data($post) {
      
          if ( ! current_user_can('edit_' . $post->post_type, $post->ID) )
              return;
      
      
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 1 hr to fix

        Method cat2wp has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function cat2wp($categories='')
            {
                // General Housekeeping
                global $wpdb;
                $count = 0;
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-admin/import/dotclear.php - About 1 hr to fix

          Method fetch_remote_file has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function fetch_remote_file($post, $url) {
                  $upload = wp_upload_dir($post['post_date']);
          
                  // extract the file name and extension from the url
                  $file_name = basename($url);
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/import/wordpress.php - About 1 hr to fix

            Method AtomServer has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function AtomServer() {
            
                    $this->script_name = array_pop(explode('/',$_SERVER['SCRIPT_NAME']));
                    $this->app_base = get_bloginfo('url') . '/' . $this->script_name . '/';
                    if ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) {
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-app.php - About 1 hr to fix

              Method wp_editPage has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function wp_editPage($args) {
                      // Items not escaped here will be escaped in editPost.
                      $blog_id    = (int) $args[0];
                      $page_id    = (int) $this->escape($args[1]);
                      $username    = $this->escape($args[2]);
              Severity: Minor
              Found in Web.Admin/2014/wordpress/xmlrpc.php - About 1 hr to fix

                Method register_new_user has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function register_new_user($user_login, $user_email) {
                    $errors = new WP_Error();
                
                    $user_login = sanitize_user( $user_login );
                    $user_email = apply_filters( 'user_registration_email', $user_email );
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-login.php - About 1 hr to fix

                  Method signup_blog has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function signup_blog($user_name = '', $user_email = '', $blogname = '', $blog_title = '', $errors = '') {
                      if ( !is_wp_error($errors) )
                          $errors = new WP_Error();
                  
                      $signup_blog_defaults = array(
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-signup.php - About 1 hr to fix

                    Method get_service has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function get_service() {
                            log_app('function','get_service()');
                    
                            if( !current_user_can( 'edit_posts' ) )
                                $this->auth_required( __( 'Sorry, you do not have the right to access this blog.' ) );
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-app.php - About 1 hr to fix

                      Method wp_getUsersBlogs has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function wp_getUsersBlogs( $args ) {
                              // If this isn't on WPMU then just use blogger_getUsersBlogs
                              if( !function_exists( 'is_site_admin' ) ) {
                                  array_unshift( $args, 1 );
                                  return $this->blogger_getUsersBlogs( $args );
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/xmlrpc.php - About 1 hr to fix

                        Method twentyfourteen_body_classes has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function twentyfourteen_body_classes( $classes ) {
                            if ( is_multi_author() ) {
                                $classes[] = 'group-blog';
                            }
                        
                        

                          Method twentyfourteen_widgets_init has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function twentyfourteen_widgets_init() {
                              require get_template_directory() . '/inc/widgets.php';
                              register_widget( 'Twenty_Fourteen_Ephemera_Widget' );
                          
                              register_sidebar( array(

                            Method wp_allow_comment has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function wp_allow_comment($commentdata) {
                                global $wpdb;
                                extract($commentdata, EXTR_SKIP);
                            
                                // Simple duplicate check
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-includes/comment.php - About 1 hr to fix

                              Method wp_count_comments has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function wp_count_comments( $post_id = 0 ) {
                                  global $wpdb;
                              
                                  $post_id = (int) $post_id;
                              
                              
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-includes/comment.php - About 1 hr to fix

                                Method wp_getComments has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function wp_getComments($args) {
                                        $this->escape($args);
                                
                                        $blog_id    = (int) $args[0];
                                        $username    = $args[1];
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 1 hr to fix

                                  Method _pad_term_counts has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function _pad_term_counts(&$terms, $taxonomy) {
                                      global $wpdb;
                                  
                                      // This function only works for hierarchical taxonomies like post categories.
                                      if ( !is_taxonomy_hierarchical( $taxonomy ) )
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/taxonomy.php - About 1 hr to fix

                                    Method _get_term_children has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function &_get_term_children($term_id, $terms, $taxonomy) {
                                        $empty_array = array();
                                        if ( empty($terms) )
                                            return $empty_array;
                                    
                                    
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-includes/taxonomy.php - About 1 hr to fix

                                      Method clean_term_cache has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function clean_term_cache($ids, $taxonomy = '') {
                                          global $wpdb;
                                          static $cleaned = array();
                                      
                                          if ( !is_array($ids) )
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-includes/taxonomy.php - About 1 hr to fix

                                        Method get_term_by has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function get_term_by($field, $value, $taxonomy, $output = OBJECT, $filter = 'raw') {
                                            global $wpdb;
                                        
                                            if ( ! is_taxonomy($taxonomy) )
                                                return false;
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-includes/taxonomy.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language