Make WordPress Core


Ignore:
Timestamp:
01/08/2012 09:18:56 AM (15 years ago)
Author:
dd32
Message:

Better indentation. Props SergeyBiryukov. See #16580

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin-install.php

    r19708 r19710  
    245245                wp_die($api);
    246246
    247         $plugins_allowedtags = array('a' => array('href' => array(), 'title' => array(), 'target' => array()),
    248                                                                 'abbr' => array('title' => array()), 'acronym' => array('title' => array()),
    249                                                                 'code' => array(), 'pre' => array(), 'em' => array(), 'strong' => array(),
    250                                                                 'div' => array(), 'p' => array(), 'ul' => array(), 'ol' => array(), 'li' => array(),
    251                                                                 'h1' => array(), 'h2' => array(), 'h3' => array(), 'h4' => array(), 'h5' => array(), 'h6' => array(),
    252                                                                 'img' => array('src' => array(), 'class' => array(), 'alt' => array()));
     247        $plugins_allowedtags = array(
     248                'a' => array( 'href' => array(), 'title' => array(), 'target' => array() ),
     249                'abbr' => array( 'title' => array() ), 'acronym' => array( 'title' => array() ),
     250                'code' => array(), 'pre' => array(), 'em' => array(), 'strong' => array(),
     251                'div' => array(), 'p' => array(), 'ul' => array(), 'ol' => array(), 'li' => array(),
     252                'h1' => array(), 'h2' => array(), 'h3' => array(), 'h4' => array(), 'h5' => array(), 'h6' => array(),
     253                'img' => array( 'src' => array(), 'class' => array(), 'alt' => array() )
     254        );
    253255
    254256        $plugins_section_titles = array(
    255                                                                         'description'  => _x('Description',  'Plugin installer section title'),
    256                                                                         'installation' => _x('Installation', 'Plugin installer section title'),
    257                                                                         'faq'          => _x('FAQ',          'Plugin installer section title'),
    258                                                                         'screenshots'  => _x('Screenshots',  'Plugin installer section title'),
    259                                                                         'changelog'    => _x('Changelog',    'Plugin installer section title'),
    260                                                                         'other_notes'  => _x('Other Notes',  'Plugin installer section title')
    261                                                                         );
    262 
     257                'description'  => _x('Description',  'Plugin installer section title'),
     258                'installation' => _x('Installation', 'Plugin installer section title'),
     259                'faq'          => _x('FAQ',          'Plugin installer section title'),
     260                'screenshots'  => _x('Screenshots',  'Plugin installer section title'),
     261                'changelog'    => _x('Changelog',    'Plugin installer section title'),
     262                'other_notes'  => _x('Other Notes',  'Plugin installer section title')
     263        );
    263264
    264265        //Sanitize HTML
Note: See TracChangeset for help on using the changeset viewer.