git-svn-id: http://svn.automattic.com/wordpress/trunk@19596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
429faf564a
commit
340e93324c
|
@ -24,7 +24,7 @@ elseif ( 'link_category' == $taxonomy )
|
|||
else
|
||||
do_action('edit_tag_form_pre', $tag);
|
||||
|
||||
do_action($taxonomy . '_pre_edit_form', $tag, $taxonomy); ?>
|
||||
do_action($taxonomy . '_pre_edit_form', $tag, $taxonomy); ?>
|
||||
|
||||
<div class="wrap">
|
||||
<?php screen_icon(); ?>
|
||||
|
|
|
@ -133,7 +133,7 @@ if ( $doaction ) {
|
|||
break;
|
||||
}
|
||||
|
||||
$sendback = remove_query_arg( array('action', 'action2', 'tags_input', 'post_author', 'comment_status', 'ping_status', '_status', 'post', 'bulk_edit', 'post_view'), $sendback );
|
||||
$sendback = remove_query_arg( array('action', 'action2', 'tags_input', 'post_author', 'comment_status', 'ping_status', '_status', 'post', 'bulk_edit', 'post_view'), $sendback );
|
||||
|
||||
wp_redirect($sendback);
|
||||
exit();
|
||||
|
|
|
@ -41,7 +41,7 @@ add_action( 'admin_head', 'add_js' );
|
|||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'overview',
|
||||
'title' => __('Overview'),
|
||||
'content' => '<p>' . __('You can export a file of your site’s content in order to import it into another installation or platform. The export file will be an XML file format called WXR. Posts, pages, comments, custom fields, categories, and tags can be included. You can choose for the WXR file to include only certain posts or pages by setting the dropdown filters to limit the export by category, author, date range by month, or publishing status.') . '</p>' .
|
||||
'content' => '<p>' . __('You can export a file of your site’s content in order to import it into another installation or platform. The export file will be an XML file format called WXR. Posts, pages, comments, custom fields, categories, and tags can be included. You can choose for the WXR file to include only certain posts or pages by setting the dropdown filters to limit the export by category, author, date range by month, or publishing status.') . '</p>' .
|
||||
'<p>' . __('Once generated, your WXR file can be imported by another WordPress site or by another blogging platform able to access this format.') . '</p>',
|
||||
) );
|
||||
|
||||
|
|
|
@ -86,8 +86,8 @@ function wp_dashboard_setup() {
|
|||
if ( !isset( $widget_options['dashboard_primary'] ) ) {
|
||||
$update = true;
|
||||
$widget_options['dashboard_primary'] = array(
|
||||
'link' => apply_filters( 'dashboard_primary_link', __( 'http://wordpress.org/news/' ) ),
|
||||
'url' => apply_filters( 'dashboard_primary_feed', __( 'http://wordpress.org/news/feed/' ) ),
|
||||
'link' => apply_filters( 'dashboard_primary_link', __( 'http://wordpress.org/news/' ) ),
|
||||
'url' => apply_filters( 'dashboard_primary_feed', __( 'http://wordpress.org/news/feed/' ) ),
|
||||
'title' => apply_filters( 'dashboard_primary_title', __( 'WordPress Blog' ) ),
|
||||
'items' => 2,
|
||||
'show_summary' => 1,
|
||||
|
@ -101,8 +101,8 @@ function wp_dashboard_setup() {
|
|||
if ( !isset( $widget_options['dashboard_secondary'] ) ) {
|
||||
$update = true;
|
||||
$widget_options['dashboard_secondary'] = array(
|
||||
'link' => apply_filters( 'dashboard_secondary_link', __( 'http://planet.wordpress.org/' ) ),
|
||||
'url' => apply_filters( 'dashboard_secondary_feed', __( 'http://planet.wordpress.org/feed/' ) ),
|
||||
'link' => apply_filters( 'dashboard_secondary_link', __( 'http://planet.wordpress.org/' ) ),
|
||||
'url' => apply_filters( 'dashboard_secondary_feed', __( 'http://planet.wordpress.org/feed/' ) ),
|
||||
'title' => apply_filters( 'dashboard_secondary_title', __( 'Other WordPress News' ) ),
|
||||
'items' => 5,
|
||||
'show_summary' => 0,
|
||||
|
@ -700,7 +700,7 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
|
|||
$actions['unapprove'] = "<a href='$unapprove_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=unapproved vim-u' title='" . esc_attr__( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>';
|
||||
$actions['edit'] = "<a href='comment.php?action=editcomment&c={$comment->comment_ID}' title='" . esc_attr__('Edit comment') . "'>". __('Edit') . '</a>';
|
||||
$actions['reply'] = '<a onclick="commentReply.open(\''.$comment->comment_ID.'\',\''.$comment->comment_post_ID.'\');return false;" class="vim-r hide-if-no-js" title="'.esc_attr__('Reply to this comment').'" href="#">' . __('Reply') . '</a>';
|
||||
$actions['spam'] = "<a href='$spam_url' class='delete:the-comment-list:comment-$comment->comment_ID::spam=1 vim-s vim-destructive' title='" . esc_attr__( 'Mark this comment as spam' ) . "'>" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . '</a>';
|
||||
$actions['spam'] = "<a href='$spam_url' class='delete:the-comment-list:comment-$comment->comment_ID::spam=1 vim-s vim-destructive' title='" . esc_attr__( 'Mark this comment as spam' ) . "'>" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . '</a>';
|
||||
if ( !EMPTY_TRASH_DAYS )
|
||||
$actions['delete'] = "<a href='$delete_url' class='delete:the-comment-list:comment-$comment->comment_ID::trash=1 delete vim-d vim-destructive'>" . __('Delete Permanently') . '</a>';
|
||||
else
|
||||
|
@ -1290,7 +1290,7 @@ function wp_welcome_panel() {
|
|||
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
|
||||
|
||||
<div class="welcome-panel-content">
|
||||
<h3><?php _e( 'Welcome to your new WordPress site! ' ); ?></h3>
|
||||
<h3><?php _e( 'Welcome to your new WordPress site!' ); ?></h3>
|
||||
<p class="about-description"><?php _e( 'If you need help getting started, check out our documentation on <a href="http://codex.wordpress.org/First_Steps_With_WordPress">First Steps with WordPress</a>. If you’d rather dive right in, here are a few things most people do first when they set up a new WordPress site. If you need help, use the Help tabs in the upper right corner to get information on how to use your current screen and where to go for more assistance.' ); ?></p>
|
||||
<div class="welcome-panel-column-container">
|
||||
<div class="welcome-panel-column">
|
||||
|
|
|
@ -157,7 +157,7 @@ function list_files( $folder = '', $levels = 100 ) {
|
|||
* Please note that the calling function must unlink() this itself.
|
||||
*
|
||||
* The filename is based off the passed parameter or defaults to the current unix timestamp,
|
||||
* while the directory can either be passed as well, or by leaving it blank, default to a writable temporary directory.
|
||||
* while the directory can either be passed as well, or by leaving it blank, default to a writable temporary directory.
|
||||
*
|
||||
* @since 2.6.0
|
||||
*
|
||||
|
@ -486,7 +486,7 @@ function wp_handle_sideload( &$file, $overrides = false ) {
|
|||
|
||||
/**
|
||||
* Downloads a url to a local temporary file using the WordPress HTTP Class.
|
||||
* Please note, That the calling function must unlink() the file.
|
||||
* Please note, That the calling function must unlink() the file.
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
|
@ -884,7 +884,7 @@ function get_filesystem_method($args = array(), $context = false) {
|
|||
}
|
||||
|
||||
/**
|
||||
* Displays a form to the user to request for their FTP/SSH details in order to connect to the filesystem.
|
||||
* Displays a form to the user to request for their FTP/SSH details in order to connect to the filesystem.
|
||||
* All chosen/entered details are saved, Excluding the Password.
|
||||
*
|
||||
* Hostnames may be in the form of hostname:portnumber (eg: wordpress.org:2467) to specify an alternate FTP/SSH port.
|
||||
|
@ -896,7 +896,7 @@ function get_filesystem_method($args = array(), $context = false) {
|
|||
* @param string $form_post the URL to post the form to
|
||||
* @param string $type the chosen Filesystem method in use
|
||||
* @param boolean $error if the current request has failed to connect
|
||||
* @param string $context The directory which is needed access to, The write-test will be performed on this directory by get_filesystem_method()
|
||||
* @param string $context The directory which is needed access to, The write-test will be performed on this directory by get_filesystem_method()
|
||||
* @param string $extra_fields Extra POST fields which should be checked for to be included in the post.
|
||||
* @return boolean False on failure. True on success.
|
||||
*/
|
||||
|
|
|
@ -27,7 +27,7 @@ function post_submit_meta_box($post) {
|
|||
|
||||
<div id="minor-publishing-actions">
|
||||
<div id="save-action">
|
||||
<?php if ( 'publish' != $post->post_status && 'future' != $post->post_status && 'pending' != $post->post_status ) { ?>
|
||||
<?php if ( 'publish' != $post->post_status && 'future' != $post->post_status && 'pending' != $post->post_status ) { ?>
|
||||
<input <?php if ( 'private' == $post->post_status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php esc_attr_e('Save Draft'); ?>" tabindex="4" class="button button-highlighted" />
|
||||
<?php } elseif ( 'pending' == $post->post_status && $can_publish ) { ?>
|
||||
<input type="submit" name="save" id="save-post" value="<?php esc_attr_e('Save as Pending'); ?>" tabindex="4" class="button button-highlighted" />
|
||||
|
@ -639,7 +639,7 @@ function link_submit_meta_box($link) {
|
|||
<div id="delete-action">
|
||||
<?php
|
||||
if ( !empty($_GET['action']) && 'edit' == $_GET['action'] && current_user_can('manage_links') ) { ?>
|
||||
<a class="submitdelete deletion" href="<?php echo wp_nonce_url("link.php?action=delete&link_id=$link->link_id", 'delete-bookmark_' . $link->link_id); ?>" onclick="if ( confirm('<?php echo esc_js(sprintf(__("You are about to delete this link '%s'\n 'Cancel' to stop, 'OK' to delete."), $link->link_name )); ?>') ) {return true;}return false;"><?php _e('Delete'); ?></a>
|
||||
<a class="submitdelete deletion" href="<?php echo wp_nonce_url("link.php?action=delete&link_id=$link->link_id", 'delete-bookmark_' . $link->link_id); ?>" onclick="if ( confirm('<?php echo esc_js(sprintf(__("You are about to delete this link '%s'\n 'Cancel' to stop, 'OK' to delete."), $link->link_name )); ?>') ) {return true;}return false;"><?php _e('Delete'); ?></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
|
@ -789,7 +789,7 @@ function link_xfn_meta_box($link) {
|
|||
<label for="contact">
|
||||
<input class="valinp" type="radio" name="friendship" value="contact" id="contact" <?php xfn_check('friendship', 'contact'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('contact') ?></label>
|
||||
<label for="acquaintance">
|
||||
<input class="valinp" type="radio" name="friendship" value="acquaintance" id="acquaintance" <?php xfn_check('friendship', 'acquaintance'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('acquaintance') ?></label>
|
||||
<input class="valinp" type="radio" name="friendship" value="acquaintance" id="acquaintance" <?php xfn_check('friendship', 'acquaintance'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('acquaintance') ?></label>
|
||||
<label for="friend">
|
||||
<input class="valinp" type="radio" name="friendship" value="friend" id="friend" <?php xfn_check('friendship', 'friend'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friend') ?></label>
|
||||
<label for="friendship">
|
||||
|
@ -833,10 +833,10 @@ function link_xfn_meta_box($link) {
|
|||
<th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('family') ?> </th>
|
||||
<td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('family') ?> </span></legend>
|
||||
<label for="child">
|
||||
<input class="valinp" type="radio" name="family" value="child" id="child" <?php xfn_check('family', 'child'); ?> />
|
||||
<input class="valinp" type="radio" name="family" value="child" id="child" <?php xfn_check('family', 'child'); ?> />
|
||||
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('child') ?></label>
|
||||
<label for="kin">
|
||||
<input class="valinp" type="radio" name="family" value="kin" id="kin" <?php xfn_check('family', 'kin'); ?> />
|
||||
<input class="valinp" type="radio" name="family" value="kin" id="kin" <?php xfn_check('family', 'kin'); ?> />
|
||||
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('kin') ?></label>
|
||||
<label for="parent">
|
||||
<input class="valinp" type="radio" name="family" value="parent" id="parent" <?php xfn_check('family', 'parent'); ?> />
|
||||
|
@ -894,7 +894,7 @@ function link_advanced_meta_box($link) {
|
|||
</tr>
|
||||
<tr class="form-field">
|
||||
<th valign="top" scope="row"><label for="rss_uri"><?php _e('RSS Address') ?></label></th>
|
||||
<td><input name="link_rss" class="code" type="text" id="rss_uri" value="<?php echo ( isset( $link->link_rss ) ? esc_attr($link->link_rss) : ''); ?>" size="50" style="width: 95%" /></td>
|
||||
<td><input name="link_rss" class="code" type="text" id="rss_uri" value="<?php echo ( isset( $link->link_rss ) ? esc_attr($link->link_rss) : ''); ?>" size="50" style="width: 95%" /></td>
|
||||
</tr>
|
||||
<tr class="form-field">
|
||||
<th valign="top" scope="row"><label for="link_notes"><?php _e('Notes') ?></label></th>
|
||||
|
|
|
@ -115,7 +115,7 @@ function wpmu_delete_blog( $blog_id, $drop = false ) {
|
|||
$index++;
|
||||
}
|
||||
|
||||
$stack = array_reverse( $stack ); // Last added dirs are deepest
|
||||
$stack = array_reverse( $stack ); // Last added dirs are deepest
|
||||
foreach( (array) $stack as $dir ) {
|
||||
if ( $dir != $top_dir)
|
||||
@rmdir( $dir );
|
||||
|
@ -430,7 +430,7 @@ add_action( 'wpmueditblogaction', 'upload_space_setting' );
|
|||
function update_user_status( $id, $pref, $value, $deprecated = null ) {
|
||||
global $wpdb;
|
||||
|
||||
if ( null !== $deprecated )
|
||||
if ( null !== $deprecated )
|
||||
_deprecated_argument( __FUNCTION__, '3.1' );
|
||||
|
||||
$wpdb->update( $wpdb->users, array( $pref => $value ), array( 'ID' => $id ) );
|
||||
|
@ -549,7 +549,7 @@ function mu_dropdown_languages( $lang_files = array(), $current = '' ) {
|
|||
$output[$be] = '<option value="' . esc_attr( $code_lang ) . '"' . selected( $current, $code_lang, false ) . '> ' . $be . '</option>';
|
||||
} else {
|
||||
$translated = format_code_lang( $code_lang );
|
||||
$output[$translated] = '<option value="' . esc_attr( $code_lang ) . '"' . selected( $current, $code_lang, false ) . '> ' . esc_html ( $translated ) . '</option>';
|
||||
$output[$translated] = '<option value="' . esc_attr( $code_lang ) . '"' . selected( $current, $code_lang, false ) . '> ' . esc_html ( $translated ) . '</option>';
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -634,7 +634,7 @@ function choose_primary_blog() {
|
|||
<?php foreach( (array) $all_blogs as $blog ) {
|
||||
if ( $primary_blog == $blog->userblog_id )
|
||||
$found = true;
|
||||
?><option value="<?php echo $blog->userblog_id ?>"<?php selected( $primary_blog, $blog->userblog_id ); ?>><?php echo esc_url( get_home_url( $blog->userblog_id ) ) ?></option><?php
|
||||
?><option value="<?php echo $blog->userblog_id ?>"<?php selected( $primary_blog, $blog->userblog_id ); ?>><?php echo esc_url( get_home_url( $blog->userblog_id ) ) ?></option><?php
|
||||
} ?>
|
||||
</select>
|
||||
<?php
|
||||
|
@ -771,7 +771,7 @@ var tb_closeImage = "../../wp-includes/js/thickbox/tb-close.png";
|
|||
* Whether or not we have a large network.
|
||||
*
|
||||
* The default criteria for a large network is either more than 10,000 users or more than 10,000 sites.
|
||||
* Plugins can alter this criteria using the 'wp_is_large_network' filter.
|
||||
* Plugins can alter this criteria using the 'wp_is_large_network' filter.
|
||||
*
|
||||
* @since 3.3.0
|
||||
* @param string $using 'sites or 'users'. Default is 'sites'.
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* @since 3.0.0
|
||||
* @uses Walker_Nav_Menu
|
||||
*/
|
||||
class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
|
||||
class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
|
||||
/**
|
||||
* @see Walker_Nav_Menu::start_lvl()
|
||||
* @since 3.0.0
|
||||
|
@ -209,7 +209,7 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
|
|||
* @since 3.0.0
|
||||
* @uses Walker_Nav_Menu
|
||||
*/
|
||||
class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu {
|
||||
class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu {
|
||||
function __construct( $fields = false ) {
|
||||
if ( $fields ) {
|
||||
$this->db_fields = $fields;
|
||||
|
@ -990,7 +990,7 @@ function wp_save_nav_menu_items( $menu_id = 0, $menu_data = array() ) {
|
|||
(
|
||||
! isset( $_item_object_data['menu-item-type'] ) || // and item type either isn't set
|
||||
in_array( $_item_object_data['menu-item-url'], array( 'http://', '' ) ) || // or URL is the default
|
||||
! ( 'custom' == $_item_object_data['menu-item-type'] && ! isset( $_item_object_data['menu-item-db-id'] ) ) || // or it's not a custom menu item (but not the custom home page)
|
||||
! ( 'custom' == $_item_object_data['menu-item-type'] && ! isset( $_item_object_data['menu-item-db-id'] ) ) || // or it's not a custom menu item (but not the custom home page)
|
||||
! empty( $_item_object_data['menu-item-db-id'] ) // or it *is* a custom menu item that already exists
|
||||
)
|
||||
) {
|
||||
|
|
|
@ -322,7 +322,7 @@ function install_plugin_information() {
|
|||
<?php endif; if ( ! empty($api->slug) && empty($api->external) ) : ?>
|
||||
<li><a target="_blank" href="http://wordpress.org/extend/plugins/<?php echo $api->slug ?>/"><?php _e('WordPress.org Plugin Page »') ?></a></li>
|
||||
<?php endif; if ( ! empty($api->homepage) ) : ?>
|
||||
<li><a target="_blank" href="<?php echo $api->homepage ?>"><?php _e('Plugin Homepage »') ?></a></li>
|
||||
<li><a target="_blank" href="<?php echo $api->homepage ?>"><?php _e('Plugin Homepage »') ?></a></li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
<?php if ( ! empty($api->rating) ) : ?>
|
||||
|
|
|
@ -882,7 +882,7 @@ function add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $func
|
|||
|
||||
$new_menu = array( $menu_title, $capability, $menu_slug, $page_title, 'menu-top ' . $hookname, $hookname, $icon_url );
|
||||
|
||||
if ( null === $position )
|
||||
if ( null === $position )
|
||||
$menu[] = $new_menu;
|
||||
else
|
||||
$menu[$position] = $new_menu;
|
||||
|
@ -988,7 +988,7 @@ function add_submenu_page( $parent_slug, $page_title, $menu_title, $capability,
|
|||
// as the first item in the submenu. If the submenu file is the same as the
|
||||
// parent file someone is trying to link back to the parent manually. In
|
||||
// this case, don't automatically add a link back to avoid duplication.
|
||||
if (!isset( $submenu[$parent_slug] ) && $menu_slug != $parent_slug ) {
|
||||
if (!isset( $submenu[$parent_slug] ) && $menu_slug != $parent_slug ) {
|
||||
foreach ( (array)$menu as $parent_menu ) {
|
||||
if ( $parent_menu[2] == $parent_slug && current_user_can( $parent_menu[1] ) )
|
||||
$submenu[$parent_slug][] = $parent_menu;
|
||||
|
|
|
@ -171,7 +171,7 @@ function edit_post( $post_data = null ) {
|
|||
$post_data = _wp_translate_postdata( true, $post_data );
|
||||
if ( is_wp_error($post_data) )
|
||||
wp_die( $post_data->get_error_message() );
|
||||
if ( 'autosave' != $post_data['action'] && 'auto-draft' == $post_data['post_status'] )
|
||||
if ( 'autosave' != $post_data['action'] && 'auto-draft' == $post_data['post_status'] )
|
||||
$post_data['post_status'] = 'draft';
|
||||
|
||||
if ( isset($post_data['visibility']) ) {
|
||||
|
@ -352,7 +352,7 @@ function bulk_edit_posts( $post_data = null ) {
|
|||
$tax_names = get_object_taxonomies( $post );
|
||||
foreach ( $tax_names as $tax_name ) {
|
||||
$taxonomy_obj = get_taxonomy($tax_name);
|
||||
if ( isset( $tax_input[$tax_name]) && current_user_can( $taxonomy_obj->cap->assign_terms ) )
|
||||
if ( isset( $tax_input[$tax_name]) && current_user_can( $taxonomy_obj->cap->assign_terms ) )
|
||||
$new_terms = $tax_input[$tax_name];
|
||||
else
|
||||
$new_terms = array();
|
||||
|
|
|
@ -196,7 +196,7 @@ function get_current_screen() {
|
|||
* @param mixed $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen,
|
||||
* or an existing screen object.
|
||||
*/
|
||||
function set_current_screen( $hook_name = '' ) {
|
||||
function set_current_screen( $hook_name = '' ) {
|
||||
WP_Screen::get( $hook_name )->set_current_screen();
|
||||
}
|
||||
|
||||
|
@ -817,7 +817,7 @@ final class WP_Screen {
|
|||
</div>
|
||||
<?php endif;
|
||||
if ( ! empty( $columns ) ) : ?>
|
||||
<h5><?php echo ( isset( $columns['_title'] ) ? $columns['_title'] : _x('Show on screen', 'Columns') ) ?></h5>
|
||||
<h5><?php echo ( isset( $columns['_title'] ) ? $columns['_title'] : _x('Show on screen', 'Columns') ) ?></h5>
|
||||
<div class="metabox-prefs">
|
||||
<?php
|
||||
$special = array('_title', 'cb', 'comment', 'media', 'name', 'title', 'username', 'blogname');
|
||||
|
|
|
@ -1300,7 +1300,7 @@ function find_posts_div($found_action = '') {
|
|||
if ( 'attachment' == $post->name )
|
||||
continue;
|
||||
?>
|
||||
<input type="radio" name="find-posts-what" id="find-posts-<?php echo esc_attr($post->name); ?>" value="<?php echo esc_attr($post->name); ?>" <?php checked($post->name, 'post'); ?> />
|
||||
<input type="radio" name="find-posts-what" id="find-posts-<?php echo esc_attr($post->name); ?>" value="<?php echo esc_attr($post->name); ?>" <?php checked($post->name, 'post'); ?> />
|
||||
<label for="find-posts-<?php echo esc_attr($post->name); ?>"><?php echo $post->label; ?></label>
|
||||
<?php
|
||||
} ?>
|
||||
|
@ -1409,7 +1409,7 @@ do_action("admin_head-$hook_suffix");
|
|||
do_action('admin_head');
|
||||
?>
|
||||
</head>
|
||||
<body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?> class="wp-admin no-js iframe <?php echo apply_filters( 'admin_body_class', '' ) . ' ' . $admin_body_class; ?>">
|
||||
<body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?> class="wp-admin no-js iframe <?php echo apply_filters( 'admin_body_class', '' ) . ' ' . $admin_body_class; ?>">
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
(function(){
|
||||
|
|
|
@ -24,15 +24,15 @@ $theme_field_defaults = array( 'description' => true, 'sections' => false, 'test
|
|||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @deprecated since 3.1.0 Use get_theme_feature_list() instead.
|
||||
* @deprecated since 3.1.0 Use get_theme_feature_list() instead.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
function install_themes_feature_list( ) {
|
||||
if ( !$cache = get_transient( 'wporg_theme_feature_list' ) )
|
||||
set_transient( 'wporg_theme_feature_list', array( ), 10800);
|
||||
set_transient( 'wporg_theme_feature_list', array( ), 10800);
|
||||
|
||||
if ( $cache )
|
||||
if ( $cache )
|
||||
return $cache;
|
||||
|
||||
$feature_list = themes_api( 'feature_list', array( ) );
|
||||
|
@ -134,7 +134,7 @@ function display_theme($theme, $actions = null, $show_details = true) {
|
|||
$name = wp_kses($theme->name, $themes_allowedtags);
|
||||
$desc = wp_kses($theme->description, $themes_allowedtags);
|
||||
//if ( strlen($desc) > 30 )
|
||||
// $desc = substr($desc, 0, 15) . '<span class="dots">...</span><span>' . substr($desc, -15) . '</span>';
|
||||
// $desc = substr($desc, 0, 15) . '<span class="dots">...</span><span>' . substr($desc, -15) . '</span>';
|
||||
|
||||
$preview_link = $theme->preview_url . '?TB_iframe=true&width=600&height=400';
|
||||
if ( !is_array($actions) ) {
|
||||
|
|
|
@ -271,7 +271,7 @@ function theme_update_available( $theme ) {
|
|||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @return array Array of features keyed by category with translations keyed by slug.
|
||||
* @return array Array of features keyed by category with translations keyed by slug.
|
||||
*/
|
||||
function get_theme_feature_list() {
|
||||
// Hard-coded list is used if api not accessible.
|
||||
|
@ -340,7 +340,7 @@ function get_theme_feature_list() {
|
|||
return $features;
|
||||
|
||||
if ( !$feature_list = get_site_transient( 'wporg_theme_feature_list' ) )
|
||||
set_site_transient( 'wporg_theme_feature_list', array( ), 10800);
|
||||
set_site_transient( 'wporg_theme_feature_list', array( ), 10800);
|
||||
|
||||
if ( !$feature_list ) {
|
||||
$feature_list = themes_api( 'feature_list', array( ) );
|
||||
|
|
|
@ -335,7 +335,7 @@ $_old_files = array(
|
|||
* introduced version present here being older than the current installed version.
|
||||
*
|
||||
* The content of this array should follow the following format:
|
||||
* Filename (relative to wp-content) => Introduced version
|
||||
* Filename (relative to wp-content) => Introduced version
|
||||
* Directories should be noted by suffixing it with a trailing slash (/)
|
||||
*
|
||||
* @since 3.2.0
|
||||
|
|
|
@ -142,7 +142,7 @@ function update_right_now_message() {
|
|||
if ( current_user_can('update_core') ) {
|
||||
$cur = get_preferred_from_update_core();
|
||||
|
||||
if ( isset( $cur->response ) && $cur->response == 'upgrade' )
|
||||
if ( isset( $cur->response ) && $cur->response == 'upgrade' )
|
||||
$msg .= " <a href='" . network_admin_url( 'update-core.php' ) . "' class='button'>" . sprintf( __('Update to %s'), $cur->current ? $cur->current : __( 'Latest' ) ) . '</a>';
|
||||
}
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ function wp_install( $blog_title, $user_name, $user_email, $public, $deprecated
|
|||
$message = '<em>'.__('Your chosen password.').'</em>';
|
||||
$user_id = wp_create_user($user_name, $user_password, $user_email);
|
||||
} else {
|
||||
$message = __('User already exists. Password inherited.');
|
||||
$message = __('User already exists. Password inherited.');
|
||||
}
|
||||
|
||||
$user = new WP_User($user_id);
|
||||
|
@ -1667,7 +1667,7 @@ function make_db_current( $tables = 'all' ) {
|
|||
*
|
||||
* @since 1.5.0
|
||||
*/
|
||||
function make_db_current_silent( $tables = 'all' ) {
|
||||
function make_db_current_silent( $tables = 'all' ) {
|
||||
$alterations = dbDelta( $tables );
|
||||
}
|
||||
|
||||
|
@ -1848,12 +1848,12 @@ function make_site_theme() {
|
|||
|
||||
if (file_exists(ABSPATH . 'wp-layout.css')) {
|
||||
if (! make_site_theme_from_oldschool($theme_name, $template)) {
|
||||
// TODO: rm -rf the site theme directory.
|
||||
// TODO: rm -rf the site theme directory.
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (! make_site_theme_from_default($theme_name, $template))
|
||||
// TODO: rm -rf the site theme directory.
|
||||
// TODO: rm -rf the site theme directory.
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ if ( ! defined('ABSPATH') )
|
|||
|
||||
global $opml, $map;
|
||||
|
||||
// columns we wish to find are: link_url, link_name, link_target, link_description
|
||||
// columns we wish to find are: link_url, link_name, link_target, link_description
|
||||
// we need to map XML attribute names to our columns
|
||||
$opml_map = array('URL' => 'link_url',
|
||||
'HTMLURL' => 'link_url',
|
||||
|
|
|
@ -59,7 +59,7 @@ if ( !defined('WP_ALLOW_REPAIR') ) {
|
|||
printf( __( 'Successfully repaired the %s table.' ), $table );
|
||||
} else {
|
||||
/* translators: 1: table name, 2: error message, */
|
||||
echo sprintf( __( 'Failed to repair the %1$s table. Error: %2$s' ), $table, "<code>$check->Msg_text</code>" ) . '<br />';
|
||||
echo sprintf( __( 'Failed to repair the %1$s table. Error: %2$s' ), $table, "<code>$check->Msg_text</code>" ) . '<br />';
|
||||
$problems[$table] = $check->Msg_text;
|
||||
$okay = false;
|
||||
}
|
||||
|
|
|
@ -430,7 +430,7 @@ $_wp_nav_menu_max_depth = 0;
|
|||
|
||||
// Calling wp_get_nav_menu_to_edit generates $_wp_nav_menu_max_depth
|
||||
if ( is_nav_menu( $nav_menu_selected_id ) )
|
||||
$edit_markup = wp_get_nav_menu_to_edit( $nav_menu_selected_id );
|
||||
$edit_markup = wp_get_nav_menu_to_edit( $nav_menu_selected_id );
|
||||
|
||||
function wp_nav_menu_max_depth($classes) {
|
||||
global $_wp_nav_menu_max_depth;
|
||||
|
@ -545,7 +545,7 @@ require_once( './admin-header.php' );
|
|||
<div class="major-publishing-actions">
|
||||
<label class="menu-name-label howto open-label" for="menu-name">
|
||||
<span><?php _e('Menu Name'); ?></span>
|
||||
<input name="menu-name" id="menu-name" type="text" class="menu-name regular-text menu-item-textbox input-with-default-title" title="<?php esc_attr_e('Enter menu name here'); ?>" value="<?php echo esc_attr( $nav_menu_selected_title ); ?>" />
|
||||
<input name="menu-name" id="menu-name" type="text" class="menu-name regular-text menu-item-textbox input-with-default-title" title="<?php esc_attr_e('Enter menu name here'); ?>" value="<?php echo esc_attr( $nav_menu_selected_title ); ?>" />
|
||||
</label>
|
||||
<?php if ( !empty( $nav_menu_selected_id ) ) :
|
||||
if ( ! isset( $auto_add ) ) {
|
||||
|
|
|
@ -56,7 +56,7 @@ if ( $update_data['counts']['total'] ) {
|
|||
|
||||
unset($update_data);
|
||||
|
||||
$submenu[ 'upgrade.php' ][10] = array( __( 'Available Updates' ), 'update_core', 'update-core.php' );
|
||||
$submenu[ 'upgrade.php' ][10] = array( __( 'Available Updates' ), 'update_core', 'update-core.php' );
|
||||
$submenu[ 'upgrade.php' ][15] = array( __( 'Update Network' ), 'manage_network', 'upgrade.php' );
|
||||
|
||||
$menu[99] = array( '', 'read', 'separator-last', '', 'wp-menu-separator-last' );
|
||||
|
|
|
@ -98,7 +98,7 @@ include('./admin-header.php');
|
|||
</tr>
|
||||
<tr valign="top">
|
||||
<th scope="row"><label for="blogdescription"><?php _e('Tagline') ?></label></th>
|
||||
<td><input name="blogdescription" type="text" id="blogdescription" value="<?php form_option('blogdescription'); ?>" class="regular-text" />
|
||||
<td><input name="blogdescription" type="text" id="blogdescription" value="<?php form_option('blogdescription'); ?>" class="regular-text" />
|
||||
<span class="description"><?php _e('In a few words, explain what this site is about.') ?></span></td>
|
||||
</tr>
|
||||
<?php if ( !is_multisite() ) { ?>
|
||||
|
@ -211,7 +211,7 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists
|
|||
echo ' ';
|
||||
$message = $tr['isdst'] ?
|
||||
__('Daylight saving time begins on: <code>%s</code>.') :
|
||||
__('Standard time begins on: <code>%s</code>.');
|
||||
__('Standard time begins on: <code>%s</code>.');
|
||||
// Add the difference between the current offset and the new offset to ts to get the correct transition time from date_i18n().
|
||||
printf( $message, date_i18n(get_option('date_format') . ' ' . get_option('time_format'), $tr['ts'] + ($tz_offset - $tr['offset']) ) );
|
||||
} else {
|
||||
|
|
|
@ -257,14 +257,14 @@ $structures = array(
|
|||
<?php wp_nonce_field('update-permalink') ?>
|
||||
<p><textarea rows="9" class="large-text readonly" name="rules" id="rules" readonly="readonly"><?php echo esc_textarea( $wp_rewrite->iis7_url_rewrite_rules() ); ?></textarea></p>
|
||||
</form>
|
||||
<p><?php _e('If you temporarily make your <code>web.config</code> file writable for us to generate rewrite rules automatically, do not forget to revert the permissions after rule has been saved.') ?></p>
|
||||
<p><?php _e('If you temporarily make your <code>web.config</code> file writable for us to generate rewrite rules automatically, do not forget to revert the permissions after rule has been saved.') ?></p>
|
||||
<?php else : ?>
|
||||
<p><?php _e('If the root directory of your site were <a href="http://codex.wordpress.org/Changing_File_Permissions">writable</a>, we could do this automatically, but it isn’t so this is the url rewrite rule you should have in your <code>web.config</code> file. Create a new file, called <code>web.config</code> in the root directory of your site. Click in the field and press <kbd>CTRL + a</kbd> to select all. Then insert this code into the <code>web.config</code> file.') ?></p>
|
||||
<form action="options-permalink.php" method="post">
|
||||
<?php wp_nonce_field('update-permalink') ?>
|
||||
<p><textarea rows="18" class="large-text readonly" name="rules" id="rules" readonly="readonly"><?php echo esc_textarea( $wp_rewrite->iis7_url_rewrite_rules(true) ); ?></textarea></p>
|
||||
</form>
|
||||
<p><?php _e('If you temporarily make your site’s root directory writable for us to generate the <code>web.config</code> file automatically, do not forget to revert the permissions after the file has been created.') ?></p>
|
||||
<p><?php _e('If you temporarily make your site’s root directory writable for us to generate the <code>web.config</code> file automatically, do not forget to revert the permissions after the file has been created.') ?></p>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php else :
|
||||
|
|
|
@ -115,7 +115,7 @@ else :
|
|||
<tr valign="top">
|
||||
<th scope="row"><?php _e( 'For each article in a feed, show' ); ?> </th>
|
||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'For each article in a feed, show' ); ?> </span></legend>
|
||||
<p><label><input name="rss_use_excerpt" type="radio" value="0" <?php checked( 0, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Full text' ); ?></label><br />
|
||||
<p><label><input name="rss_use_excerpt" type="radio" value="0" <?php checked( 0, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Full text' ); ?></label><br />
|
||||
<label><input name="rss_use_excerpt" type="radio" value="1" <?php checked( 1, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Summary' ); ?></label></p>
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
|
|
|
@ -151,7 +151,7 @@ if ( 'update' == $action ) {
|
|||
}
|
||||
|
||||
/**
|
||||
* Handle settings errors and return to options page
|
||||
* Handle settings errors and return to options page
|
||||
*/
|
||||
// If no settings errors were registered add a general 'updated' message.
|
||||
if ( !count( get_settings_errors() ) )
|
||||
|
|
|
@ -432,7 +432,7 @@ var photostorage = false;
|
|||
show('video');
|
||||
<?php } elseif ( preg_match("/vimeo\.com\/[0-9]+/i", $url) ) { ?>
|
||||
show('video');
|
||||
<?php } elseif ( preg_match("/flickr\.com/i", $url) ) { ?>
|
||||
<?php } elseif ( preg_match("/flickr\.com/i", $url) ) { ?>
|
||||
show('photo');
|
||||
<?php } ?>
|
||||
jQuery('#title').unbind();
|
||||
|
@ -605,7 +605,7 @@ var photostorage = false;
|
|||
|
||||
$content = '';
|
||||
if ( $selection )
|
||||
$content .= $selection;
|
||||
$content .= $selection;
|
||||
|
||||
if ( $url ) {
|
||||
$content .= '<p>';
|
||||
|
|
|
@ -120,7 +120,7 @@ if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
|
|||
if ( ( strcmp($self, $item[2]) == 0 && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file)) ) $class = ' class="current"';
|
||||
|
||||
if ( !empty($submenu[$item[2]]) ) {
|
||||
$submenu[$item[2]] = array_values($submenu[$item[2]]); // Re-index.
|
||||
$submenu[$item[2]] = array_values($submenu[$item[2]]); // Re-index.
|
||||
$menu_hook = get_plugin_page_hook($submenu[$item[2]][0][2], $item[2]);
|
||||
if ( file_exists(WP_PLUGIN_DIR . "/{$submenu[$item[2]][0][2]}") || !empty($menu_hook))
|
||||
$options[] = "<a href='admin.php?page={$submenu[$item[2]][0][2]}'$class>{$item[0]}</a>";
|
||||
|
|
|
@ -20,7 +20,7 @@ get_current_screen()->add_help_tab( array(
|
|||
'id' => 'converter',
|
||||
'title' => __('Categories and Tags Converter'),
|
||||
'content' => '<p>' . __('Categories have hierarchy, meaning that you can nest sub-categories. Tags do not have hierachy and cannot be nested. Sometimes people start out using one on their posts, then later realize that the other would work better for their content.' ) . '</p>' .
|
||||
'<p>' . __( 'The Categories and Tags Converter link on this screen will take you to the Import screen, where that Converter is one of the plugins you can install. Once that plugin is installed, return to this screen and the link will take you to a screen where you can choose to convert tags into categories or vice versa.' ) . '</p>',
|
||||
'<p>' . __( 'The Categories and Tags Converter link on this screen will take you to the Import screen, where that Converter is one of the plugins you can install. Once that plugin is installed, return to this screen and the link will take you to a screen where you can choose to convert tags into categories or vice versa.' ) . '</p>',
|
||||
) );
|
||||
|
||||
get_current_screen()->set_help_sidebar(
|
||||
|
|
|
@ -88,7 +88,7 @@ switch ( $step ) :
|
|||
case 1:
|
||||
wp_upgrade();
|
||||
|
||||
$backto = !empty($_GET['backto']) ? stripslashes( urldecode( $_GET['backto'] ) ) : __get_option( 'home' ) . '/';
|
||||
$backto = !empty($_GET['backto']) ? stripslashes( urldecode( $_GET['backto'] ) ) : __get_option( 'home' ) . '/';
|
||||
$backto = esc_url( $backto );
|
||||
$backto = wp_validate_redirect($backto, __get_option( 'home' ) . '/');
|
||||
?>
|
||||
|
|
|
@ -80,7 +80,7 @@ You\'ve been invited to join \'%1$s\' at
|
|||
|
||||
Please click the following link to confirm the invite:
|
||||
%4$s' );
|
||||
wp_mail( $new_user_email, sprintf( __( '[%s] Joining confirmation' ), get_option( 'blogname' ) ), sprintf($message, get_option('blogname'), site_url(), $_REQUEST[ 'role' ], site_url("/newbloguser/$newuser_key/")));
|
||||
wp_mail( $new_user_email, sprintf( __( '[%s] Joining confirmation' ), get_option( 'blogname' ) ), sprintf($message, get_option('blogname'), site_url(), $_REQUEST[ 'role' ], site_url("/newbloguser/$newuser_key/")));
|
||||
$redirect = add_query_arg( array('update' => 'add'), 'user-new.php' );
|
||||
}
|
||||
}
|
||||
|
@ -361,7 +361,7 @@ foreach ( array( 'user_login' => 'login', 'first_name' => 'firstname', 'last_nam
|
|||
<?php if ( is_multisite() && is_super_admin() ) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="noconfirmation"><?php _e('Skip Confirmation Email') ?></label></th>
|
||||
<td><label for="noconfirmation"><input type="checkbox" name="noconfirmation" id="noconfirmation" value="1" <?php checked( $new_user_ignore_pass ); ?> /> <?php _e( 'Add the user without sending them a confirmation email.' ); ?></label></td>
|
||||
<td><label for="noconfirmation"><input type="checkbox" name="noconfirmation" id="noconfirmation" value="1" <?php checked( $new_user_ignore_pass ); ?> /> <?php _e( 'Add the user without sending them a confirmation email.' ); ?></label></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
|
|
@ -487,10 +487,15 @@ class WP_User {
|
|||
static function get_data_by( $field, $value ) {
|
||||
global $wpdb;
|
||||
|
||||
if ( 'id' == $field )
|
||||
if ( 'id' == $field ) {
|
||||
// Make sure the value is numeric to avoid casting objects, for example,
|
||||
// to int 1.
|
||||
if ( ! is_numeric( $value ) )
|
||||
return false;
|
||||
$value = absint( $value );
|
||||
else
|
||||
} else {
|
||||
$value = trim( $value );
|
||||
}
|
||||
|
||||
if ( !$value )
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue