Make WordPress Core

Changeset 19528


Ignore:
Timestamp:
12/01/2011 04:51:35 AM (13 years ago)
Author:
ryan
Message:

Pinking shears

Location:
trunk
Files:
26 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/about.php

    r19524 r19528  
    3636<div class="changelog">
    3737    <h3><?php _e( 'Easier Uploading' ); ?></h3>
    38    
     38
    3939    <div class="feature-section images-stagger-right">
    4040        <div class="feature-images">
     
    5757<div class="changelog">
    5858    <h3><?php _e( 'Dashboard Design' ); ?></h3>
    59    
     59
    6060    <div class="feature-section text-features">
    6161        <h4><?php _e( 'Flyout Menus' ); ?></h4>
    6262        <p><?php _e( 'Speed up navigating the dashboard and reduce repetitive clicking with our new flyout submenus. As you hover over each main menu item in your dashboard navigation, the submenus will magically appear, providing single-click access to any dashboard screen.' ); ?></p>
    63        
     63
    6464        <div>
    6565        <h4><?php _e( 'Header + Admin Bar = Toolbar' ); ?></h4>
     
    6767        </div>
    6868    </div>
    69    
     69
    7070    <div class="feature-section screenshot-features">
    7171        <div class="angled-left">
     
    9797            <p><?php _e( 'This screen! From now on when you update WordPress, you&#8217;ll be brought to this screen &mdash; also accessible any time from the W logo in the corner of the toolbar &mdash; to get an overview of what&#8217;s changed.' ); ?></p>
    9898
    99             <h4><?php _e( 'Dashboard Welcome' ); ?></h4>           
     99            <h4><?php _e( 'Dashboard Welcome' ); ?></h4>
    100100            <p><?php _e( 'The dashboard home screen will have a Welcome area that displays when a new WordPress installation is accessed for the first time, prompting the site owner to complete various setup tasks. Once dismissed, this welcome can be accessed via the dashboard home screen options tab.' ); ?></p>
    101101        </div>
    102102    </div>
    103    
     103
    104104</div>
    105105
     
    122122        </div>
    123123    </div>
    124    
     124
    125125</div>
    126126
     
    157157        </div>
    158158    </div>
    159    
     159
    160160</div>
    161161
  • trunk/wp-admin/css/install.dev.css

    r19331 r19528  
    99    margin: 2em auto;
    1010    padding: 1em 2em;
    11     -webkit-border-radius: 3px; 
     11    -webkit-border-radius: 3px;
    1212    border-radius: 3px;
    1313    border: 1px solid #dfdfdf;
  • trunk/wp-admin/css/wp-admin.dev.css

    r19495 r19528  
    48324832    min-width: 770px;
    48334833    max-width: 1050px; /* readability */
    4834    
     4834
    48354835    font-size: 15px;
    48364836}
     
    49604960.about-wrap .feature-section.text-features {
    49614961    width: 31%;
    4962    
     4962
    49634963    float: left;
    49644964    overflow: visible;
     
    49704970    width: 67%;
    49714971    margin-top: 1.33em;
    4972    
     4972
    49734973    float: right;
    49744974    clear: none;
     
    50105010    margin: 0.5em 0 0.5em 5px;
    50115011    max-width: 100%;
    5012    
     5012
    50135013    float: none;
    50145014}
  • trunk/wp-admin/edit-comments.php

    r19511 r19528  
    115115'id'        => 'overview',
    116116'title'     => __('Overview'),
    117 'content'   => 
     117'content'   =>
    118118    '<p>' . __( 'You can manage comments made on your site similar to the way you manage posts and other content. This screen is customizable in the same ways as other management screens, and you can act on comments using the on-hover action links or the Bulk Actions.' ) . '</p>'
    119119) );
     
    121121'id'        => 'moderating-comments',
    122122'title'     => __('Moderating Comments'),
    123 'content'   => 
     123'content'   =>
    124124    '<ul>' .
    125125        '<li>' . __( 'A yellow row means the comment is waiting for you to moderate it.' ) . '</li>' .
     
    129129        '<li>' . __( 'Many people take advantage of keyboard shortcuts to moderate their comments more quickly. Use the link to the side to learn more.' ) . '</li>' .
    130130    '</ul>'
    131 ) ); 
     131) );
    132132
    133133get_current_screen()->set_help_sidebar(
  • trunk/wp-admin/edit-tags.php

    r19514 r19528  
    224224        '</ul>' .
    225225        '<p>' . __( 'You can change the display of this screen using the Screen Options tab to set how many items are displayed per screen and to display/hide columns in the table.' ) . '</p>';
    226    
     226
    227227        get_current_screen()->add_help_tab( array(
    228228            'id'      => 'adding-terms',
  • trunk/wp-admin/edit.php

    r19511 r19528  
    153153    'id'        => 'overview',
    154154    'title'     => __('Overview'),
    155     'content'   => 
     155    'content'   =>
    156156        '<p>' . __('This screen provides access to all of your posts. You can customize the display of this screen to suit your workflow.') . '</p>'
    157157    ) );
     
    159159    'id'        => 'screen-content',
    160160    'title'     => __('Screen Content'),
    161     'content'   => 
     161    'content'   =>
    162162        '<p>' . __('You can customize the display of this screen&#8217;s contents in a number of ways:') . '</p>' .
    163163        '<ul>' .
     
    171171    'id'        => 'action-links',
    172172    'title'     => __('Available Actions'),
    173     'content'   => 
     173    'content'   =>
    174174        '<p>' . __('Hovering over a row in the posts list will display action links that allow you to manage your post. You can perform the following actions:') . '</p>' .
    175175        '<ul>' .
     
    178178            '<li>' . __('<strong>Trash</strong> removes your post from this list and places it in the trash, from which you can permanently delete it.') . '</li>' .
    179179            '<li>' . __('<strong>Preview</strong> will show you what your draft post will look like if you publish it. View will take you to your live site to view the post. Which link is available depends on your post&#8217;s status.') . '</li>' .
    180         '</ul>' 
     180        '</ul>'
    181181    ) );
    182182    get_current_screen()->add_help_tab( array(
    183183    'id'        => 'bulk-actions',
    184184    'title'     => __('Bulk Actions'),
    185     'content'   => 
     185    'content'   =>
    186186        '<p>' . __('You can also edit or move multiple posts to the trash at once. Select the posts you want to act on using the checkboxes, then select the action you want to take from the Bulk Actions menu and click Apply.') . '</p>' .
    187187                '<p>' . __('When using Bulk Edit, you can change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the x next to its name in the Bulk Edit area that appears.') . '</p>'
     
    193193    '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    194194    );
    195    
     195
    196196} elseif ( 'page' == $post_type ) {
    197197    get_current_screen()->add_help_tab( array(
    198198    'id'        => 'overview',
    199199    'title'     => __('Overview'),
    200     'content'   => 
     200    'content'   =>
    201201        '<p>' . __('Pages are similar to posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest pages under other pages by making one the &#8220;Parent&#8221; of the other, creating a group of pages.') . '</p>'
    202202    ) );
     
    204204    'id'        => 'managing-pages',
    205205    'title'     => __('Managing Pages'),
    206     'content'   =>     
     206    'content'   =>
    207207        '<p>' . __('Managing pages is very similar to managing posts, and the screens can be customized in the same way.') . '</p>' .
    208208        '<p>' . __('You can also perform the same types of actions, including narrowing the list by using the filters, acting on a page using the action links that appear when you hover over a row, or using the Bulk Actions menu to edit the metadata for multiple pages at once.') . '</p>'
  • trunk/wp-admin/includes/class-wp-media-list-table.php

    r19385 r19528  
    304304                    <a href="<?php echo get_edit_post_link( $post->post_parent ); ?>">
    305305                        <?php echo $title ?></a>
    306                 <?php } else { 
    307                     echo $title; 
     306                <?php } else {
     307                    echo $title;
    308308                } ?></strong>,
    309309                <?php echo get_the_time( __( 'Y/m/d' ) ); ?>
  • trunk/wp-admin/includes/dashboard.php

    r19418 r19528  
    13431343            <?php
    13441344            endif;
    1345    
     1345
    13461346            if ( current_theme_supports( 'widgets' ) ) : ?>
    13471347                <li><?php echo sprintf( __( '<a href="%s">Add some widgets</a>' ), esc_url( admin_url( 'widgets.php' ) ) ); ?></li>
  • trunk/wp-admin/includes/media.php

    r19494 r19528  
    16121612    $form_action_url = apply_filters('media_upload_form_url', $form_action_url, $type);
    16131613    $form_class = 'media-upload-form validate';
    1614    
     1614
    16151615    if ( get_user_setting('uploader') )
    16161616        $form_class .= ' html-uploader';
  • trunk/wp-admin/js/common.dev.js

    r19505 r19528  
    169169            node.attr('tabindex', '0').attr('tabindex', tab);
    170170    };
    171    
     171
    172172    $('#collapse-menu', menu).click(function(){
    173173        var body = $(document.body);
  • trunk/wp-admin/js/editor.dev.js

    r19319 r19528  
    44    switchto: function(el) {
    55        var aid = el.id, l = aid.length, id = aid.substr(0, l - 5), mode = aid.substr(l - 4);
    6        
     6
    77        this.go(id, mode);
    88    },
    9    
     9
    1010    go: function(id, mode) { // mode can be 'html', 'tmce', or 'toggle'
    1111        id = id || 'content';
    1212        mode = mode || 'toggle';
    13        
     13
    1414        var t = this, ed = tinyMCE.get(id), wrap_id, txtarea_el, dom = tinymce.DOM;
    1515
     
    2222            else
    2323                mode = 'tmce';
    24         } 
     24        }
    2525
    2626        if ( 'tmce' == mode || 'tinymce' == mode ) {
  • trunk/wp-admin/link-manager.php

    r19445 r19528  
    4444'id'        => 'overview',
    4545'title'     => __('Overview'),
    46 'content'   => 
     46'content'   =>
    4747    '<p>' . sprintf(__('You can add links here to be displayed on your site, usually using <a href="%s">Widgets</a>. By default, links to several sites in the WordPress community are included as examples.'), 'widgets.php') . '</p>' .
    4848    '<p>' . __('Links may be separated into Link Categories; these are different than the categories used on your posts.') . '</p>' .
     
    5252'id'        => 'deleting-links',
    5353'title'     => __('Deleting Links'),
    54 'content'   => 
     54'content'   =>
    5555    '<p>' . __('If you delete a link, it will be removed permanently, as Links do not have a Trash function yet.') . '</p>'
    5656) );
  • trunk/wp-admin/media-upload.php

    r19511 r19528  
    7171            '<li>' . __('Clicking <strong>Select Files</strong> opens a navigation window showing you files in your operating system. Selecting <strong>Open</strong> after clicking on the file you want activates a progress bar on the uploader screen.') . '</li>' .
    7272        '</ul>' .
    73         '<p>' . __('Basic image editing is available after upload is complete. Make sure you click Save before leaving this screen.') . '</p>' 
     73        '<p>' . __('Basic image editing is available after upload is complete. Make sure you click Save before leaving this screen.') . '</p>'
    7474    ) );
    7575    get_current_screen()->set_help_sidebar(
     
    8080
    8181    require_once('./admin-header.php');
    82    
     82
    8383    $form_class = 'media-upload-form type-form validate';
    8484
  • trunk/wp-admin/menu-header.php

    r19486 r19528  
    6060            $class[] = 'wp-not-current-submenu';
    6161            if ( ! empty( $submenu_items ) )
    62                 $aria_attributes .= ' aria-haspopup="true"';   
     62                $aria_attributes .= ' aria-haspopup="true"';
    6363        }
    6464
  • trunk/wp-admin/nav-menus.php

    r19510 r19528  
    457457'id'        => 'create-menus',
    458458'title'     => __('Create Menus'),
    459 'content'   => 
     459'content'   =>
    460460    '<p>' . __('To create a new custom menu, click on the + tab, give the menu a name, and click Create Menu. Next, add menu items from the appropriate boxes. You&#8217;ll be able to edit the information for each menu item, and can drag and drop to put them in order. You can also drag a menu item a little to the right to make it a submenu, to create menus with hierarchy. Drop the item into its new nested placement when the dotted rectangle target shifts over, also a little to the right. Don&#8217;t forget to click Save when you&#8217;re finished.') . '</p>'
    461461) );
  • trunk/wp-admin/plugin-editor.php

    r19445 r19528  
    114114    'id'        => 'overview',
    115115    'title'     => __('Overview'),
    116     'content'   =>     
     116    'content'   =>
    117117        '<p>' . __('You can use the editor to make changes to any of your plugins&#8217; individual PHP files. Be aware that if you make changes, plugins updates will overwrite your customizations.') . '</p>' .
    118118        '<p>' . __('Choose a plugin to edit from the menu in the upper right and click the Select button. Click once on any file name to load it in the editor, and make your changes. Don&#8217;t forget to save your changes (Update File) when you&#8217;re finished.') . '</p>' .
  • trunk/wp-admin/plugin-install.php

    r19510 r19528  
    3939'id'        => 'overview',
    4040'title'     => __('Overview'),
    41 'content'   => 
     41'content'   =>
    4242    '<p>' . sprintf(__('Plugins hook into WordPress to extend its functionality with custom features. Plugins are developed independently from the core WordPress application by thousands of developers all over the world. All plugins in the official <a href="%s" target="_blank">WordPress.org Plugin Directory</a> are compatible with the license WordPress uses. You can find new plugins to install by searching or browsing the Directory right here in your own Plugins section.'), 'http://wordpress.org/extend/plugins/') . '</p>'
    4343) );
     
    4545'id'        => 'adding-plugins',
    4646'title'     => __('Adding Plugins'),
    47 'content'   => 
     47'content'   =>
    4848    '<p>' . __('If you know what you&#8217;re looking for, Search is your best bet. The Search screen has options to search the WordPress.org Plugin Directory for a particular Term, Author, or Tag. You can also search the directory by selecting a popular tags. Tags in larger type mean more plugins have been labeled with that tag.') . '</p>' .
    4949    '<p>' . __('If you just want to get an idea of what&#8217;s available, you can browse Featured, Popular, Newest, and Recently Updated plugins by using the links in the upper left of the screen. These sections rotate regularly.') . '</p>' .
  • trunk/wp-admin/plugins.php

    r19510 r19528  
    322322'id'        => 'overview',
    323323'title'     => __('Overview'),
    324 'content'   => 
     324'content'   =>
    325325    '<p>' . __('Plugins extend and expand the functionality of WordPress. Once a plugin is installed, you may activate it or deactivate it here.') . '</p>' .
    326326    '<p>' . sprintf(__('You can find additional plugins for your site by using the <a href="%1$s">Plugin Browser/Installer</a> functionality or by browsing the <a href="%2$s" target="_blank">WordPress Plugin Directory</a> directly and installing new plugins manually. To manually install a plugin you generally just need to upload the plugin file into your <code>/wp-content/plugins</code> directory. Once a plugin has been installed, you can activate it here.'), 'plugin-install.php', 'http://wordpress.org/extend/plugins/') . '</p>'
     
    329329'id'        => 'compatibility-problems',
    330330'title'     => __('Troubleshooting'),
    331 'content'   => 
     331'content'   =>
    332332    '<p>' . __('Most of the time, plugins play nicely with the core of WordPress and with other plugins. Sometimes, though, a plugin&#8217;s code will get in the way of another plugin, causing compatibility issues. If your site starts doing strange things, this may be the problem. Try deactivating all your plugins and re-activating them in various combinations until you isolate which one(s) caused the issue.') . '</p>' .
    333333    '<p>' . sprintf( __('If something goes wrong with a plugin and you can&#8217;t use WordPress, delete or rename that file in the <code>%s</code> directory and it will be automatically deactivated.'), WP_PLUGIN_DIR) . '</p>'
  • trunk/wp-admin/theme-editor.php

    r19445 r19528  
    2424'id'        => 'overview',
    2525'title'     => __('Overview'),
    26 'content'   => 
     26'content'   =>
    2727    '<p>' . __('You can use the Theme Editor to edit the individual CSS and PHP files which make up your theme.') . '</p>
    2828    <p>' . __('Begin by choosing a theme to edit from the dropdown menu and clicking Select. A list then appears of all the template files. Clicking once on any file name causes the file to appear in the large Editor box.') . '</p>
  • trunk/wp-admin/update-core.php

    r19524 r19528  
    4545            $form_action = 'update-core.php?action=do-core-reinstall';
    4646        } else {
    47             $php_compat     = version_compare( $php_version, $update->php_version, '>=' );         
     47            $php_compat     = version_compare( $php_version, $update->php_version, '>=' );
    4848            if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
    4949                $mysql_compat = true;
     
    436436'id'        => 'overview',
    437437'title'     => __('Overview'),
    438 'content'   => 
     438'content'   =>
    439439    '<p>' . __('This screen lets you update to the latest version of WordPress as well as update your themes and plugins from the WordPress.org repository. When updates are available, the number of available updates will appear in a bubble on the left hand menu as a notification.') . '</p>' .
    440440    '<p>' . __('It is very important to keep your WordPress installation up to date for security reasons, so when you see a number appear, make sure you take the time to update, which is an easy process.') . '</p>'
     
    444444'id'        => 'how-to-update',
    445445'title'     => __('How to Update'),
    446 'content'   => 
     446'content'   =>
    447447    '<p>' . __('Updating your WordPress installation is a simple one-click procedure; just click on the Update button when it says a new version is available.') . '</p>' .
    448448    '<p>' . __('To update themes or plugins from this screen, use the checkboxes to make your selection and click on the appropriate Update button. Check the box at the top of the Themes or Plugins section to select all and update them all at once.') . '</p>'
  • trunk/wp-admin/upload.php

    r19511 r19528  
    149149'id'        => 'overview',
    150150'title'     => __('Overview'),
    151 'content'   => 
     151'content'   =>
    152152    '<p>' . __( 'All the files you&#8217;ve uploaded are listed in the Media Library, with the most recent uploads listed first. You can use the Screen Options tab to customize the display of this screen.' ) . '</p>' .
    153153    '<p>' . __( 'You can narrow the list by file type/status using the text link filters at the top of the screen. You also can refine the list by date using the dropdown menu above the media table.' ) . '</p>'
  • trunk/wp-admin/user-new.php

    r19509 r19528  
    152152$help .= '<p>' . __('Remember to click the Add New User button at the bottom of this screen when you are finished.') . '</p>';
    153153
    154 get_current_screen()->add_help_tab( array( 
    155     'id'      => 'overview', 
    156     'title'   => __('Overview'), 
     154get_current_screen()->add_help_tab( array(
     155    'id'      => 'overview',
     156    'title'   => __('Overview'),
    157157    'content' => $help,
    158158) );
    159159
    160 get_current_screen()->add_help_tab( array( 
    161 'id'      => 'user-roles', 
    162 'title'   => __('User Roles'), 
     160get_current_screen()->add_help_tab( array(
     161'id'      => 'user-roles',
     162'title'   => __('User Roles'),
    163163'content' => '<p>' . __('Here is a basic overview of the different user roles and the permissions associated with each one:') . '</p>' .
    164164                '<ul>' .
  • trunk/wp-admin/users.php

    r19509 r19528  
    2121
    2222// contextual help - choose Help on the top right of admin panel to preview this.
    23 get_current_screen()->add_help_tab( array( 
     23get_current_screen()->add_help_tab( array(
    2424    'id'      => 'overview',
    25     'title'   => __('Overview'), 
     25    'title'   => __('Overview'),
    2626    'content' => '<p>' . __('This screen lists all the existing users for your site. Each user has one of five defined roles as set by the site admin: Site Administrator, Editor, Author, Contributor, or Subscriber. Users with roles other than Administrator will see fewer options in the dashboard navigation when they are logged in, based on their role.') . '</p>' .
    2727                 '<p>' . __('To add a new user for your site, click the Add New button at the top of the screen or Add New in the Users menu section.') . '</p>'
    2828) ) ;
    2929
    30 get_current_screen()->add_help_tab( array( 
     30get_current_screen()->add_help_tab( array(
    3131    'id'      => 'screen-display',
    32     'title'   => __('Screen Display'), 
    33     'content' => '<p>' . __('You can customize the display of this screen in a number of ways:') . '</p>' . 
    34                     '<ul>' . 
    35                     '<li>' . __('You can hide/display columns based on your needs and decide how many users to list per screen using the Screen Options tab.') . '</li>' . 
    36                     '<li>' . __('You can filter the list of users by User Role using the text links in the upper left to show All, Administrator, Editor, Author, Contributor, or Subscriber. The default view is to show all users.  Unused User Roles are not listed.') . '</li>' . 
    37                     '<li>' . __('You can view all posts made by a user by clicking on the number under the Posts column.') . '</li>' . 
    38                     '</ul>' 
    39 ) ); 
    40 
    41 $help = '<p>' . __('Hovering over a row in the users list will display action links that allow you to manage users. You can perform the following actions:') . '</p>' . 
     32    'title'   => __('Screen Display'),
     33    'content' => '<p>' . __('You can customize the display of this screen in a number of ways:') . '</p>' .
     34                    '<ul>' .
     35                    '<li>' . __('You can hide/display columns based on your needs and decide how many users to list per screen using the Screen Options tab.') . '</li>' .
     36                    '<li>' . __('You can filter the list of users by User Role using the text links in the upper left to show All, Administrator, Editor, Author, Contributor, or Subscriber. The default view is to show all users.  Unused User Roles are not listed.') . '</li>' .
     37                    '<li>' . __('You can view all posts made by a user by clicking on the number under the Posts column.') . '</li>' .
     38                    '</ul>'
     39) );
     40
     41$help = '<p>' . __('Hovering over a row in the users list will display action links that allow you to manage users. You can perform the following actions:') . '</p>' .
    4242    '<ul>' .
    4343    '<li>' . __('Edit takes you to the editable profile screen for that user. You can also reach that screen by clicking on the username.') . '</li>';
     
    5050$help .= '</ul>';
    5151
    52 get_current_screen()->add_help_tab( array( 
    53     'id'      => 'actions', 
    54     'title'   => __('Actions'), 
     52get_current_screen()->add_help_tab( array(
     53    'id'      => 'actions',
     54    'title'   => __('Actions'),
    5555    'content' => $help,
    5656) );
  • trunk/wp-admin/widgets.php

    r19510 r19528  
    3939'id'        => 'overview',
    4040'title'     => __('Overview'),
    41 'content'   => 
     41'content'   =>
    4242    '<p>' . __('Widgets are independent sections of content that can be placed into any widgetized area provided by your theme (commonly called sidebars). To populate your sidebars/widget areas with individual widgets, drag and drop the title bars into the desired area. By default, only the first widget area is expanded. To populate additional widget areas, click on their title bars to expand them.') . '</p>
    4343    <p>' . __('The Available Widgets section contains all the widgets you can choose from. Once you drag a widget into a sidebar, it will open to allow you to configure its settings. When you are happy with the widget settings, click the Save button and the widget will go live on your site. If you click Delete, it will remove the widget.') . '</p>'
     
    4646'id'        => 'removing-reusing',
    4747'title'     => __('Removing and Reusing'),
    48 'content'   => 
     48'content'   =>
    4949    '<p>' . __('If you want to remove the widget but save its setting for possible future use, just drag it into the Inactive Widgets area. You can add them back anytime from there. This is especially helpful when you switch to a theme with fewer or different widget areas.') . '</p>
    5050    <p>' . __('Widgets may be used multiple times. You can give each widget a title, to display on your site, but it&#8217;s not required.') . '</p>
     
    5454'id'        => 'missing-widgets',
    5555'title'     => __('Missing Widgets'),
    56 'content'   => 
     56'content'   =>
    5757    '<p>' . __('Many themes show some sidebar widgets by default until you edit your sidebars, but they are not automatically displayed in your sidebar management tool. After you make your first widget change, you can re-add the default widgets by adding them from the Available Widgets area.') . '</p>' .
    5858        '<p>' . __('When changing themes, there is often some variation in the number and setup of widget areas/sidebars and sometimes these conflicts make the transition a bit less smooth. If you changed themes and seem to be missing widgets, scroll down on this screen to the Inactive area, where all your widgets and their settings will have been saved.') . '</p>'
  • trunk/wp-includes/functions.wp-scripts.php

    r19218 r19528  
    8181 * @param string $handle The script handle that was registered or used in script-loader
    8282 * @param string $object_name Name for the created JS object. This is passed directly so it should be qualified JS variable /[a-zA-Z0-9_]+/
    83  * @param array $l10n Associative PHP array containing the translated strings. HTML entities will be converted and the array will be JSON encoded. 
     83 * @param array $l10n Associative PHP array containing the translated strings. HTML entities will be converted and the array will be JSON encoded.
    8484 * @return bool Whether the localization was added successfully.
    8585 */
    86 function wp_localize_script( $handle, $object_name, $l10n ) { 
     86function wp_localize_script( $handle, $object_name, $l10n ) {
    8787    global $wp_scripts;
    8888    if ( ! is_a( $wp_scripts, 'WP_Scripts' ) ) {
     
    9494    }
    9595
    96     return $wp_scripts->localize( $handle, $object_name, $l10n ); 
    97 } 
     96    return $wp_scripts->localize( $handle, $object_name, $l10n );
     97}
    9898
    9999/**
  • trunk/wp-includes/general-template.php

    r19432 r19528  
    17901790 * Using this function is the proper way to output all needed components for both TinyMCE and Quicktags.
    17911791 * _WP_Editors should not be used directly. See http://core.trac.wordpress.org/ticket/17144.
    1792  * 
     1792 *
    17931793 * NOTE: Once initialized the TinyMCE editor cannot be safely moved in the DOM. For that reason
    17941794 * running wp_editor() inside of a metabox is not a good idea unless only Quicktags is used.
     
    17961796 * containing TinyMCE: 'edit_page_form', 'edit_form_advanced' and 'dbx_post_sidebar'.
    17971797 * See http://core.trac.wordpress.org/ticket/19173 for more information.
    1798  * 
     1798 *
    17991799 * @see wp-includes/class-wp-editor.php
    18001800 * @since 3.3
Note: See TracChangeset for help on using the changeset viewer.