Make WordPress Core

Changeset 33627


Ignore:
Timestamp:
08/17/2015 09:38:24 PM (10 years ago)
Author:
ocean90
Message:

Pinking shears.

Location:
trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/admin-ajax.php

    r33154 r33627  
    5757    'menu-locations-save', 'menu-quick-search', 'meta-box-order', 'get-permalink',
    5858    'sample-permalink', 'inline-save', 'inline-save-tax', 'find_posts', 'widgets-order',
    59     'save-widget', 'set-post-thumbnail', 'date_format', 'time_format', 
     59    'save-widget', 'set-post-thumbnail', 'date_format', 'time_format',
    6060    'wp-remove-post-lock', 'dismiss-wp-pointer', 'upload-attachment', 'get-attachment',
    6161    'query-attachments', 'save-attachment', 'save-attachment-compat', 'send-link-to-editor',
  • trunk/src/wp-admin/edit-form-comment.php

    r33177 r33627  
    132132<?php endif; ?>
    133133
    134 <?php 
     134<?php
    135135    /**
    136136     * Filter miscellaneous actions for the edit comment form sidebar.
  • trunk/src/wp-admin/includes/upgrade.php

    r33621 r33627  
    15221522            }
    15231523        }
    1524    
     1524
    15251525        foreach ( $tables as $table ) {
    15261526            maybe_convert_table_to_utf8mb4( $table );
     
    26232623/**
    26242624 * Determine if global tables should be upgraded.
    2625  * 
     2625 *
    26262626 * This function performs a series of checks to ensure the environment allows
    26272627 * for the safe upgrading of global WordPress database tables. It is necessary
  • trunk/src/wp-includes/load.php

    r32607 r33627  
    765765 * @global string    $text_direction
    766766 * @global WP_Locale $wp_locale      The WordPress date and time locale object.
    767  * 
     767 *
    768768 * @staticvar bool $loaded
    769769 */
  • trunk/src/wp-includes/shortcodes.php

    r33600 r33627  
    209209    $pattern = get_shortcode_regex();
    210210    $content = preg_replace_callback( "/$pattern/s", 'do_shortcode_tag', $content );
    211    
     211
    212212    // Always restore square braces so we don't break things like <!--[if IE ]>
    213213    $content = unescape_invalid_shortcodes( $content );
    214    
     214
    215215    return $content;
    216216}
     
    332332    $content = strtr( $content, $trans );
    333333    $trans = array( '[' => '&#91;', ']' => '&#93;' );
    334    
     334
    335335    $pattern = get_shortcode_regex();
    336336    $textarr = wp_html_split( $content );
     
    369369            continue;
    370370        }
    371        
     371
    372372        // Get element name
    373373        $front = array_shift( $attributes );
     
    376376        preg_match('%[a-zA-Z0-9]+%', $front, $matches);
    377377        $elname = $matches[0];
    378        
     378
    379379        // Look for shortcodes in each attribute separately.
    380380        foreach ( $attributes as &$attr ) {
     
    408408        }
    409409        $element = $front . implode( '', $attributes ) . $back;
    410        
     410
    411411        // Now encode any remaining [ or ] chars.
    412412        $element = strtr( $element, $trans );
    413413    }
    414    
     414
    415415    $content = implode( '', $textarr );
    416    
     416
    417417    return $content;
    418418}
     
    430430        $trans = array( '&#91;' => '[', '&#93;' => ']' );
    431431        $content = strtr( $content, $trans );
    432        
     432
    433433        return $content;
    434434}
     
    540540    // Always restore square braces so we don't break things like <!--[if IE ]>
    541541    $content = unescape_invalid_shortcodes( $content );
    542    
     542
    543543    return $content;
    544544}
Note: See TracChangeset for help on using the changeset viewer.