mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
Pinking shears
git-svn-id: http://svn.automattic.com/wordpress/trunk@19528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d9983a790c
commit
6bba5a265b
@ -35,7 +35,7 @@ include( './admin-header.php' );
|
||||
|
||||
<div class="changelog">
|
||||
<h3><?php _e( 'Easier Uploading' ); ?></h3>
|
||||
|
||||
|
||||
<div class="feature-section images-stagger-right">
|
||||
<div class="feature-images">
|
||||
<img src="images/screenshots/media-icon.png" width="200" class="angled-right" />
|
||||
@ -56,17 +56,17 @@ include( './admin-header.php' );
|
||||
|
||||
<div class="changelog">
|
||||
<h3><?php _e( 'Dashboard Design' ); ?></h3>
|
||||
|
||||
|
||||
<div class="feature-section text-features">
|
||||
<h4><?php _e( 'Flyout Menus' ); ?></h4>
|
||||
<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>
|
||||
|
||||
|
||||
<div>
|
||||
<h4><?php _e( 'Header + Admin Bar = Toolbar' ); ?></h4>
|
||||
<p><?php _e( 'To save space and increase efficiency, we’ve combined the admin bar and the old Dashboard header into one persistent toolbar. Hovering over the toolbar items will reveal submenus when available for quick access. ' ); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="feature-section screenshot-features">
|
||||
<div class="angled-left">
|
||||
<img src="images/screenshots/admin-flyouts.png" />
|
||||
@ -96,11 +96,11 @@ include( './admin-header.php' );
|
||||
<h4><?php _e( 'Post-update Changelog' ); ?></h4>
|
||||
<p><?php _e( 'This screen! From now on when you update WordPress, you’ll be brought to this screen — also accessible any time from the W logo in the corner of the toolbar — to get an overview of what’s changed.' ); ?></p>
|
||||
|
||||
<h4><?php _e( 'Dashboard Welcome' ); ?></h4>
|
||||
<h4><?php _e( 'Dashboard Welcome' ); ?></h4>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="changelog">
|
||||
@ -121,7 +121,7 @@ include( './admin-header.php' );
|
||||
<p><?php _e( 'Changing themes often requires widget re-configuration based on the number and position of sidebars. Now if you change back to a previous theme, the widgets will automatically go back to how you had them arranged in that theme. <em>Note: if you’ve added new widgets since the switch, you’ll need to rescue them from the Inactive Widgets area.</em>' ); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="changelog">
|
||||
@ -156,7 +156,7 @@ include( './admin-header.php' );
|
||||
<p><?php _e( 'The new editor API automatically pulls in all the JS and CSS goodness for the editor. It even supports multiple editors on the same page.' ); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="return-to-dashboard">
|
||||
|
@ -8,7 +8,7 @@ body {
|
||||
font-family: sans-serif;
|
||||
margin: 2em auto;
|
||||
padding: 1em 2em;
|
||||
-webkit-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
border-radius: 3px;
|
||||
border: 1px solid #dfdfdf;
|
||||
max-width: 700px;
|
||||
|
@ -4831,7 +4831,7 @@ input.button-highlighted,
|
||||
margin: 25px 40px 0 20px;
|
||||
min-width: 770px;
|
||||
max-width: 1050px; /* readability */
|
||||
|
||||
|
||||
font-size: 15px;
|
||||
}
|
||||
.about-wrap div.updated,
|
||||
@ -4959,7 +4959,7 @@ html.ie8 .about-wrap .feature-section .image-mask {
|
||||
|
||||
.about-wrap .feature-section.text-features {
|
||||
width: 31%;
|
||||
|
||||
|
||||
float: left;
|
||||
overflow: visible;
|
||||
}
|
||||
@ -4969,7 +4969,7 @@ html.ie8 .about-wrap .feature-section .image-mask {
|
||||
.about-wrap .feature-section.screenshot-features {
|
||||
width: 67%;
|
||||
margin-top: 1.33em;
|
||||
|
||||
|
||||
float: right;
|
||||
clear: none;
|
||||
overflow: visible;
|
||||
@ -5009,7 +5009,7 @@ html.ie8 .about-wrap .feature-section .image-mask {
|
||||
.about-wrap .feature-section.three-col img {
|
||||
margin: 0.5em 0 0.5em 5px;
|
||||
max-width: 100%;
|
||||
|
||||
|
||||
float: none;
|
||||
}
|
||||
html.ie8 .about-wrap .feature-section.three-col img {
|
||||
|
@ -114,13 +114,13 @@ add_screen_option( 'per_page', array('label' => _x( 'Comments', 'comments per pa
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'overview',
|
||||
'title' => __('Overview'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<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>'
|
||||
) );
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'moderating-comments',
|
||||
'title' => __('Moderating Comments'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<ul>' .
|
||||
'<li>' . __( 'A yellow row means the comment is waiting for you to moderate it.' ) . '</li>' .
|
||||
'<li>' . __( 'In the <strong>Author</strong> column, in addition to the author’s name, email address, and blog URL, the commenter’s IP address is shown. Clicking on this link will show you all the comments made from this IP address.' ) . '</li>' .
|
||||
@ -128,7 +128,7 @@ get_current_screen()->add_help_tab( array(
|
||||
'<li>' . __( 'In the <strong>In Response To</strong> column, there are three elements. The text is the name of the post that inspired the comment, and links to the post editor for that entry. The View Post link leads to that post on your live site. The small bubble with the number in it shows how many comments that post has received. If the bubble is gray, you have moderated all comments for that post. If it is blue, there are pending comments. Clicking the bubble will filter the comments screen to show only comments on that post.' ) . '</li>' .
|
||||
'<li>' . __( 'Many people take advantage of keyboard shortcuts to moderate their comments more quickly. Use the link to the side to learn more.' ) . '</li>' .
|
||||
'</ul>'
|
||||
) );
|
||||
) );
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
|
||||
|
@ -223,7 +223,7 @@ if ( 'category' == $taxonomy || 'link_category' == $taxonomy || 'post_tag' == $t
|
||||
$help .= '<li>' . __( '<strong>Description</strong> - The description is not prominent by default; however, some themes may display it.' ) . '</li>' .
|
||||
'</ul>' .
|
||||
'<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>';
|
||||
|
||||
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'adding-terms',
|
||||
'title' => 'category' == $taxonomy ? __( 'Adding Categories' ) : __( 'Adding Tags' ),
|
||||
|
@ -152,13 +152,13 @@ if ( 'post' == $post_type ) {
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'overview',
|
||||
'title' => __('Overview'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<p>' . __('This screen provides access to all of your posts. You can customize the display of this screen to suit your workflow.') . '</p>'
|
||||
) );
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'screen-content',
|
||||
'title' => __('Screen Content'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<p>' . __('You can customize the display of this screen’s contents in a number of ways:') . '</p>' .
|
||||
'<ul>' .
|
||||
'<li>' . __('You can hide/display columns based on your needs and decide how many posts to list per screen using the Screen Options tab.') . '</li>' .
|
||||
@ -170,19 +170,19 @@ if ( 'post' == $post_type ) {
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'action-links',
|
||||
'title' => __('Available Actions'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<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>' .
|
||||
'<ul>' .
|
||||
'<li>' . __('<strong>Edit</strong> takes you to the editing screen for that post. You can also reach that screen by clicking on the post title.') . '</li>' .
|
||||
'<li>' . __('<strong>Quick Edit</strong> provides inline access to the metadata of your post, allowing you to update post details without leaving this screen.') . '</li>' .
|
||||
'<li>' . __('<strong>Trash</strong> removes your post from this list and places it in the trash, from which you can permanently delete it.') . '</li>' .
|
||||
'<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’s status.') . '</li>' .
|
||||
'</ul>'
|
||||
'</ul>'
|
||||
) );
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'bulk-actions',
|
||||
'title' => __('Bulk Actions'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<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>' .
|
||||
'<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>'
|
||||
) );
|
||||
@ -192,18 +192,18 @@ if ( 'post' == $post_type ) {
|
||||
'<p>' . __('<a href="http://codex.wordpress.org/Posts_Screen" target="_blank">Documentation on Managing Posts</a>') . '</p>' .
|
||||
'<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
|
||||
);
|
||||
|
||||
|
||||
} elseif ( 'page' == $post_type ) {
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'overview',
|
||||
'title' => __('Overview'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<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 “Parent” of the other, creating a group of pages.') . '</p>'
|
||||
) );
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'managing-pages',
|
||||
'title' => __('Managing Pages'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<p>' . __('Managing pages is very similar to managing posts, and the screens can be customized in the same way.') . '</p>' .
|
||||
'<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>'
|
||||
) );
|
||||
|
@ -303,8 +303,8 @@ foreach ( $columns as $column_name => $column_display_name ) {
|
||||
<?php if( current_user_can( 'edit_post', $post->post_parent ) ) { ?>
|
||||
<a href="<?php echo get_edit_post_link( $post->post_parent ); ?>">
|
||||
<?php echo $title ?></a>
|
||||
<?php } else {
|
||||
echo $title;
|
||||
<?php } else {
|
||||
echo $title;
|
||||
} ?></strong>,
|
||||
<?php echo get_the_time( __( 'Y/m/d' ) ); ?>
|
||||
</td>
|
||||
|
@ -1342,7 +1342,7 @@ function wp_welcome_panel() {
|
||||
<li><?php echo sprintf( __( '<a href="%s">Select a new header image</a>' ), esc_url( admin_url( 'themes.php?page=custom-header' ) ) ); ?></li>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
|
||||
if ( current_theme_supports( 'widgets' ) ) : ?>
|
||||
<li><?php echo sprintf( __( '<a href="%s">Add some widgets</a>' ), esc_url( admin_url( 'widgets.php' ) ) ); ?></li>
|
||||
<?php
|
||||
|
@ -1611,7 +1611,7 @@ function media_upload_gallery_form($errors) {
|
||||
$form_action_url = admin_url("media-upload.php?type=$type&tab=gallery&post_id=$post_id");
|
||||
$form_action_url = apply_filters('media_upload_form_url', $form_action_url, $type);
|
||||
$form_class = 'media-upload-form validate';
|
||||
|
||||
|
||||
if ( get_user_setting('uploader') )
|
||||
$form_class .= ' html-uploader';
|
||||
?>
|
||||
|
@ -168,7 +168,7 @@ $(document).ready( function() {
|
||||
if ( tab )
|
||||
node.attr('tabindex', '0').attr('tabindex', tab);
|
||||
};
|
||||
|
||||
|
||||
$('#collapse-menu', menu).click(function(){
|
||||
var body = $(document.body);
|
||||
|
||||
|
@ -3,14 +3,14 @@ var switchEditors = {
|
||||
|
||||
switchto: function(el) {
|
||||
var aid = el.id, l = aid.length, id = aid.substr(0, l - 5), mode = aid.substr(l - 4);
|
||||
|
||||
|
||||
this.go(id, mode);
|
||||
},
|
||||
|
||||
|
||||
go: function(id, mode) { // mode can be 'html', 'tmce', or 'toggle'
|
||||
id = id || 'content';
|
||||
mode = mode || 'toggle';
|
||||
|
||||
|
||||
var t = this, ed = tinyMCE.get(id), wrap_id, txtarea_el, dom = tinymce.DOM;
|
||||
|
||||
wrap_id = 'wp-'+id+'-wrap';
|
||||
@ -21,7 +21,7 @@ var switchEditors = {
|
||||
mode = 'html';
|
||||
else
|
||||
mode = 'tmce';
|
||||
}
|
||||
}
|
||||
|
||||
if ( 'tmce' == mode || 'tinymce' == mode ) {
|
||||
if ( ed && ! ed.isHidden() )
|
||||
|
@ -43,7 +43,7 @@ $this_file = $parent_file = 'link-manager.php';
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'overview',
|
||||
'title' => __('Overview'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<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>' .
|
||||
'<p>' . __('Links may be separated into Link Categories; these are different than the categories used on your posts.') . '</p>' .
|
||||
'<p>' . __('You can customize the display of this screen using the Screen Options tab and/or the dropdown filters above the links table.') . '</p>'
|
||||
@ -51,7 +51,7 @@ get_current_screen()->add_help_tab( array(
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'deleting-links',
|
||||
'title' => __('Deleting Links'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<p>' . __('If you delete a link, it will be removed permanently, as Links do not have a Trash function yet.') . '</p>'
|
||||
) );
|
||||
|
||||
|
@ -70,7 +70,7 @@ if ( isset($_GET['inline']) ) {
|
||||
'<li>' . __('<strong>Select Files</strong> will open the multi-file uploader, or you can use the <strong>Browser Uploader</strong>.') . '</li>' .
|
||||
'<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>' .
|
||||
'</ul>' .
|
||||
'<p>' . __('Basic image editing is available after upload is complete. Make sure you click Save before leaving this screen.') . '</p>'
|
||||
'<p>' . __('Basic image editing is available after upload is complete. Make sure you click Save before leaving this screen.') . '</p>'
|
||||
) );
|
||||
get_current_screen()->set_help_sidebar(
|
||||
'<p><strong>' . __('For more information:') . '</strong></p>' .
|
||||
@ -79,7 +79,7 @@ if ( isset($_GET['inline']) ) {
|
||||
);
|
||||
|
||||
require_once('./admin-header.php');
|
||||
|
||||
|
||||
$form_class = 'media-upload-form type-form validate';
|
||||
|
||||
if ( get_user_setting('uploader') )
|
||||
|
@ -59,7 +59,7 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) {
|
||||
} else {
|
||||
$class[] = 'wp-not-current-submenu';
|
||||
if ( ! empty( $submenu_items ) )
|
||||
$aria_attributes .= ' aria-haspopup="true"';
|
||||
$aria_attributes .= ' aria-haspopup="true"';
|
||||
}
|
||||
|
||||
if ( ! empty( $item[4] ) )
|
||||
|
@ -456,7 +456,7 @@ get_current_screen()->add_help_tab( array(
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'create-menus',
|
||||
'title' => __('Create Menus'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<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’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’t forget to click Save when you’re finished.') . '</p>'
|
||||
) );
|
||||
|
||||
|
@ -113,7 +113,7 @@ default:
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'overview',
|
||||
'title' => __('Overview'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<p>' . __('You can use the editor to make changes to any of your plugins’ individual PHP files. Be aware that if you make changes, plugins updates will overwrite your customizations.') . '</p>' .
|
||||
'<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’t forget to save your changes (Update File) when you’re finished.') . '</p>' .
|
||||
'<p>' . __('The Documentation menu below the editor lists the PHP functions recognized in the plugin file. Clicking Lookup takes you to a web page about that particular function.') . '</p>' .
|
||||
|
@ -38,13 +38,13 @@ do_action('install_plugins_pre_' . $tab); //Used to override the general interfa
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'overview',
|
||||
'title' => __('Overview'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<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>'
|
||||
) );
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'adding-plugins',
|
||||
'title' => __('Adding Plugins'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<p>' . __('If you know what you’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>' .
|
||||
'<p>' . __('If you just want to get an idea of what’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>' .
|
||||
'<p>' . __('If you want to install a plugin that you’ve downloaded elsewhere, click the Upload in the upper left. You will be prompted to upload the .zip package, and once uploaded, you can activate the new plugin.') . '</p>'
|
||||
|
@ -321,14 +321,14 @@ add_screen_option( 'per_page', array('label' => _x( 'Plugins', 'plugins per page
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'overview',
|
||||
'title' => __('Overview'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<p>' . __('Plugins extend and expand the functionality of WordPress. Once a plugin is installed, you may activate it or deactivate it here.') . '</p>' .
|
||||
'<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>'
|
||||
) );
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'compatibility-problems',
|
||||
'title' => __('Troubleshooting'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<p>' . __('Most of the time, plugins play nicely with the core of WordPress and with other plugins. Sometimes, though, a plugin’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>' .
|
||||
'<p>' . sprintf( __('If something goes wrong with a plugin and you can’t use WordPress, delete or rename that file in the <code>%s</code> directory and it will be automatically deactivated.'), WP_PLUGIN_DIR) . '</p>'
|
||||
) );
|
||||
|
@ -23,7 +23,7 @@ $parent_file = 'themes.php';
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'overview',
|
||||
'title' => __('Overview'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<p>' . __('You can use the Theme Editor to edit the individual CSS and PHP files which make up your theme.') . '</p>
|
||||
<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>
|
||||
<p>' . __('For PHP files, you can use the Documentation dropdown to select from functions recognized in that file. Lookup takes you to a web page with reference material about that particular function.') . '</p>
|
||||
|
@ -44,7 +44,7 @@ function list_core_update( $update ) {
|
||||
$submit = __('Re-install Now');
|
||||
$form_action = 'update-core.php?action=do-core-reinstall';
|
||||
} else {
|
||||
$php_compat = version_compare( $php_version, $update->php_version, '>=' );
|
||||
$php_compat = version_compare( $php_version, $update->php_version, '>=' );
|
||||
if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
|
||||
$mysql_compat = true;
|
||||
else
|
||||
@ -435,7 +435,7 @@ $parent_file = 'tools.php';
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'overview',
|
||||
'title' => __('Overview'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<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>' .
|
||||
'<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>'
|
||||
) );
|
||||
@ -443,7 +443,7 @@ get_current_screen()->add_help_tab( array(
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'how-to-update',
|
||||
'title' => __('How to Update'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<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>' .
|
||||
'<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>'
|
||||
) );
|
||||
|
@ -148,7 +148,7 @@ add_screen_option( 'per_page', array('label' => _x( 'Media items', 'items per pa
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'overview',
|
||||
'title' => __('Overview'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<p>' . __( 'All the files you’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>' .
|
||||
'<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>'
|
||||
) );
|
||||
|
@ -151,15 +151,15 @@ if ( is_multisite() ) {
|
||||
|
||||
$help .= '<p>' . __('Remember to click the Add New User button at the bottom of this screen when you are finished.') . '</p>';
|
||||
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'overview',
|
||||
'title' => __('Overview'),
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'overview',
|
||||
'title' => __('Overview'),
|
||||
'content' => $help,
|
||||
) );
|
||||
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'user-roles',
|
||||
'title' => __('User Roles'),
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'user-roles',
|
||||
'title' => __('User Roles'),
|
||||
'content' => '<p>' . __('Here is a basic overview of the different user roles and the permissions associated with each one:') . '</p>' .
|
||||
'<ul>' .
|
||||
'<li>' . __('Administrators have access to all the administration features.') . '</li>' .
|
||||
|
@ -20,25 +20,25 @@ $parent_file = 'users.php';
|
||||
add_screen_option( 'per_page', array('label' => _x( 'Users', 'users per page (screen options)' )) );
|
||||
|
||||
// contextual help - choose Help on the top right of admin panel to preview this.
|
||||
get_current_screen()->add_help_tab( array(
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'overview',
|
||||
'title' => __('Overview'),
|
||||
'title' => __('Overview'),
|
||||
'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>' .
|
||||
'<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>'
|
||||
) ) ;
|
||||
|
||||
get_current_screen()->add_help_tab( array(
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'screen-display',
|
||||
'title' => __('Screen Display'),
|
||||
'content' => '<p>' . __('You can customize the display of this screen in a number of ways:') . '</p>' .
|
||||
'<ul>' .
|
||||
'<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>' .
|
||||
'<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>' .
|
||||
'<li>' . __('You can view all posts made by a user by clicking on the number under the Posts column.') . '</li>' .
|
||||
'</ul>'
|
||||
) );
|
||||
'title' => __('Screen Display'),
|
||||
'content' => '<p>' . __('You can customize the display of this screen in a number of ways:') . '</p>' .
|
||||
'<ul>' .
|
||||
'<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>' .
|
||||
'<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>' .
|
||||
'<li>' . __('You can view all posts made by a user by clicking on the number under the Posts column.') . '</li>' .
|
||||
'</ul>'
|
||||
) );
|
||||
|
||||
$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>' .
|
||||
$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>' .
|
||||
'<ul>' .
|
||||
'<li>' . __('Edit takes you to the editable profile screen for that user. You can also reach that screen by clicking on the username.') . '</li>';
|
||||
|
||||
@ -49,9 +49,9 @@ else
|
||||
|
||||
$help .= '</ul>';
|
||||
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'actions',
|
||||
'title' => __('Actions'),
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'actions',
|
||||
'title' => __('Actions'),
|
||||
'content' => $help,
|
||||
) );
|
||||
unset( $help );
|
||||
|
@ -38,14 +38,14 @@ $parent_file = 'themes.php';
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'overview',
|
||||
'title' => __('Overview'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<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>
|
||||
<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>'
|
||||
) );
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'removing-reusing',
|
||||
'title' => __('Removing and Reusing'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<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>
|
||||
<p>' . __('Widgets may be used multiple times. You can give each widget a title, to display on your site, but it’s not required.') . '</p>
|
||||
<p>' . __('Enabling Accessibility Mode, via Screen Options, allows you to use Add and Edit buttons instead of using drag and drop.') . '</p>'
|
||||
@ -53,7 +53,7 @@ get_current_screen()->add_help_tab( array(
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'missing-widgets',
|
||||
'title' => __('Missing Widgets'),
|
||||
'content' =>
|
||||
'content' =>
|
||||
'<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>' .
|
||||
'<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>'
|
||||
) );
|
||||
|
@ -80,10 +80,10 @@ function wp_register_script( $handle, $src, $deps = array(), $ver = false, $in_f
|
||||
*
|
||||
* @param string $handle The script handle that was registered or used in script-loader
|
||||
* @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_]+/
|
||||
* @param array $l10n Associative PHP array containing the translated strings. HTML entities will be converted and the array will be JSON encoded.
|
||||
* @param array $l10n Associative PHP array containing the translated strings. HTML entities will be converted and the array will be JSON encoded.
|
||||
* @return bool Whether the localization was added successfully.
|
||||
*/
|
||||
function wp_localize_script( $handle, $object_name, $l10n ) {
|
||||
function wp_localize_script( $handle, $object_name, $l10n ) {
|
||||
global $wp_scripts;
|
||||
if ( ! is_a( $wp_scripts, 'WP_Scripts' ) ) {
|
||||
if ( ! did_action( 'init' ) )
|
||||
@ -93,8 +93,8 @@ function wp_localize_script( $handle, $object_name, $l10n ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $wp_scripts->localize( $handle, $object_name, $l10n );
|
||||
}
|
||||
return $wp_scripts->localize( $handle, $object_name, $l10n );
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds extra Javascript.
|
||||
|
@ -1789,13 +1789,13 @@ function wp_default_editor() {
|
||||
*
|
||||
* Using this function is the proper way to output all needed components for both TinyMCE and Quicktags.
|
||||
* _WP_Editors should not be used directly. See http://core.trac.wordpress.org/ticket/17144.
|
||||
*
|
||||
*
|
||||
* NOTE: Once initialized the TinyMCE editor cannot be safely moved in the DOM. For that reason
|
||||
* running wp_editor() inside of a metabox is not a good idea unless only Quicktags is used.
|
||||
* On the post edit screen several actions can be used to include additional editors
|
||||
* containing TinyMCE: 'edit_page_form', 'edit_form_advanced' and 'dbx_post_sidebar'.
|
||||
* See http://core.trac.wordpress.org/ticket/19173 for more information.
|
||||
*
|
||||
*
|
||||
* @see wp-includes/class-wp-editor.php
|
||||
* @since 3.3
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user