Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (8 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-taxonomy.php

    r42211 r42343  
    297297
    298298        if ( false !== $args['rewrite'] && ( is_admin() || '' != get_option( 'permalink_structure' ) ) ) {
    299             $args['rewrite'] = wp_parse_args( $args['rewrite'], array(
    300                 'with_front'   => true,
    301                 'hierarchical' => false,
    302                 'ep_mask'      => EP_NONE,
    303             ) );
     299            $args['rewrite'] = wp_parse_args(
     300                $args['rewrite'], array(
     301                    'with_front'   => true,
     302                    'hierarchical' => false,
     303                    'ep_mask'      => EP_NONE,
     304                )
     305            );
    304306
    305307            if ( empty( $args['rewrite']['slug'] ) ) {
     
    359361        if ( null === $args['meta_box_sanitize_cb'] ) {
    360362            switch ( $args['meta_box_cb'] ) {
    361                 case 'post_categories_meta_box' :
     363                case 'post_categories_meta_box':
    362364                    $args['meta_box_sanitize_cb'] = 'taxonomy_meta_box_sanitize_cb_checkboxes';
    363                 break;
    364 
    365                 case 'post_tags_meta_box' :
    366                 default :
     365                    break;
     366
     367                case 'post_tags_meta_box':
     368                default:
    367369                    $args['meta_box_sanitize_cb'] = 'taxonomy_meta_box_sanitize_cb_input';
    368                 break;
     370                    break;
    369371            }
    370372        }
     
    375377
    376378        $this->labels = get_taxonomy_labels( $this );
    377         $this->label = $this->labels->name;
     379        $this->label  = $this->labels->name;
    378380    }
    379381
Note: See TracChangeset for help on using the changeset viewer.