diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index b604579c5c..3929420898 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -1115,9 +1115,9 @@ case 'menu-get-metabox' : 'args' => $item, ) )); - + $markup = ob_get_clean(); - + echo json_encode(array( 'replace-id' => $type . '-' . $item->name, 'markup' => $markup, diff --git a/wp-admin/includes/nav-menu.php b/wp-admin/includes/nav-menu.php index 28ac604e28..624fb9fc65 100644 --- a/wp-admin/includes/nav-menu.php +++ b/wp-admin/includes/nav-menu.php @@ -694,7 +694,7 @@ function wp_nav_menu_item_post_type_meta_box( $object, $post_type ) {
' . __('This screen sets and changes options for the network as a whole. The first site is the main site in the network and network options are pulled from that original site’s options.') . '
' . '' . __('Operational settings has fields for the network’s name, admin email, and whether global terms will be disabled (the default) or maintained across all sites on the network.') . '
' . '' . __('Dashboard Site is an option to give a site to users who do not have a site on the system. Their default role is subscribed but that default can be changed. The Admin Notice Feed can provide a notice on all dashboards of the latest post via RSS or Atom, or provide no such notice if left blank.') . '
' . diff --git a/wp-admin/ms-sites.php b/wp-admin/ms-sites.php index 89f24adcf4..5918071eb1 100644 --- a/wp-admin/ms-sites.php +++ b/wp-admin/ms-sites.php @@ -19,7 +19,7 @@ $title = __( 'Sites' ); $parent_file = 'ms-admin.php'; if ( isset( $_GET['action'] ) && 'editblog' == $_GET['action'] ) { - add_contextual_help($current_screen, + add_contextual_help($current_screen, '' . __('The network admin arrives at this screen to make choices for a given site by clicking on the Edit link on the Sites screen available to them in the Super Admin navigation menu.') . '
' . '' . __('This extensive list of options has five modules: Site Info, Site Options, allowing Site Themes for this given site, changing the Site User(s) roles and passwords for that site, Adding a new user, and Miscellaneous Site Actions (upload size limits).') . '
' . '' . __('Note that some fields in Site Options are grayed out and say Serialized Data. These are stored values in the database which you cannot change from here.') . '
' . @@ -28,7 +28,7 @@ if ( isset( $_GET['action'] ) && 'editblog' == $_GET['action'] ) { '' . __('Support Forums') . '
' ); } else { - add_contextual_help($current_screen, + add_contextual_help($current_screen, '' . __('Add New takes you farther down on this same page. You can search for a site by Name, ID number, or IP address. Screen Options allows you to choose how many sites to display on one page.') . '
' . '' . __('This is the main table of all sites on this network. Switch between list and excerpt views by using the icons above the right side of the table.') . '
' . '' . __('Hovering over each site reveals seven options (only three for the primary or originating site for the network):') . '
' . diff --git a/wp-admin/ms-themes.php b/wp-admin/ms-themes.php index 4db915e5c8..02eb5f61ca 100644 --- a/wp-admin/ms-themes.php +++ b/wp-admin/ms-themes.php @@ -15,7 +15,7 @@ if ( ! current_user_can( 'manage_network_themes' ) ) $title = __( 'Network Themes' ); $parent_file = 'ms-admin.php'; -add_contextual_help($current_screen, +add_contextual_help($current_screen, '' . __('This screen enables and disables the inclusion of themes available to choose in the Appearance menu for each site. It does not activate or deactivate which theme a site is currently using.') . '
' . '' . __('If the network admin disables a theme that is in use, it can still remain selected on that site. If another theme is chosen, the disabled theme will not appear in the site’s Appearance > Themes screen.') . '
' . '' . __('Themes can be enabled on a site by site basis by the network admin on the Edit Site screen you go to via the Edit hover link on the Sites screen.') . '
' . diff --git a/wp-admin/ms-upgrade-network.php b/wp-admin/ms-upgrade-network.php index ef58fcb4f3..9cab80f984 100644 --- a/wp-admin/ms-upgrade-network.php +++ b/wp-admin/ms-upgrade-network.php @@ -17,7 +17,7 @@ require_once( ABSPATH . WPINC . '/http.php' ); $title = __( 'Update Network' ); $parent_file = 'ms-admin.php'; -add_contextual_help($current_screen, +add_contextual_help($current_screen, '' . __('Only use this screen once you have updated to a new version of WordPress through Dashboard > Updates. Clicking the Update Network button will step through each site in the network, five at a time, and make sure any database upgrades are applied.') . '
' . '' . __('If a version update to core has not happened, clicking this button won’t affect anything.') . '
' . '' . __('If this process fails for any reason, users logging in to their sites will force the same update.') . '
' . diff --git a/wp-admin/ms-users.php b/wp-admin/ms-users.php index d422f1e99a..ff7635c6ed 100644 --- a/wp-admin/ms-users.php +++ b/wp-admin/ms-users.php @@ -18,7 +18,7 @@ if ( ! current_user_can( 'manage_network_users' ) ) $title = __( 'Users' ); $parent_file = 'ms-admin.php'; -add_contextual_help($current_screen, +add_contextual_help($current_screen, '' . __('This table shows all users across the network and the sites to which they are assigned.') . '
' . '' . __('Hover over any user on the list to make the edit links appear. The Edit link on the left will take you to his or her Edit User profile page; the Edit link on the right by any site name goes to an Edit Site screen for that site.') . '
' . '' . __('You can also go to the user’s profile page by clicking on the individual username.') . '
' . diff --git a/wp-admin/my-sites.php b/wp-admin/my-sites.php index 3790b00dc0..c2155259d3 100644 --- a/wp-admin/my-sites.php +++ b/wp-admin/my-sites.php @@ -38,7 +38,7 @@ if ( 'updateblogsettings' == $action && isset( $_POST['primary_blog'] ) ) { $title = __( 'My Sites' ); $parent_file = 'index.php'; -add_contextual_help($current_screen, +add_contextual_help($current_screen, '' . __('This screen shows an individual user all of their sites in this network, and also allows that user to set a primary site. He or she can use the links under each site to visit either the frontend or the dashboard for that site.') . '
' . '' . __('Up until WordPress version 3.0, what is now called a Multi-site Network had to be installed separately as WordPress MU (multi-user).') . '
' . '' . __('For more information:') . '
' . diff --git a/wp-admin/nav-menus.php b/wp-admin/nav-menus.php index 5eee2c1a20..8749162d54 100644 --- a/wp-admin/nav-menus.php +++ b/wp-admin/nav-menus.php @@ -441,7 +441,7 @@ wp_initial_nav_menu_meta_boxes(); $help = '' . __('This feature is new in version 3.0; to use a custom menu in place of your theme’s default menus, support for this feature must be registered in the theme’s functions.php file. If your theme does not support the custom menus feature yet (the new default theme, Twenty Ten, does), you can learn about adding support yourself by following the below link.') . '
'; $help .= '' . __('You can create custom menus for your site. These menus may contain links to pages, categories, custom links or other content types (use the Screen Options tab to decide which ones to show on the screen). You can specify a different navigation label for a menu item as well as other attributes. You can create multiple menus. If your theme includes more than one menu, you can choose which custom menu to associate with each. You can also use custom menus in conjunction with the Custom Menus widget.') . '
'; $help .= '' . __('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. You’ll see when the position of the drop target shifts over to create the nested placement. Don’t forget to click Save when you’re finished.') . '
'; -$help .= '' . __('For more information:') . '
'; +$help .= '' . __('For more information:') . '
'; $help .= '' . __('Menus Documentation') . '
'; $help .= '' . __('Support Forums') . '
'; @@ -565,7 +565,7 @@ require_once( 'admin-header.php' );' . __('When you have finished building your custom menu, make sure you click the Save Menu button.') . '
'; echo '' . __('This screen allows you to configure a network as having subdomains (site1.example.com) or subdirectories (example.com/site1). Subdomains require wildcard subdomains to be enabled in Apache and DNS records, if your host allows it.') . '
' . '' . __('Choose subdomains or subdirectories; this can only be switched afterwards by reconfiguring your install. Fill out the network details, and click install. If this does not work, you may have to add a wildcard DNS record (for subdomains) or change to another setting in Permalinks (for subdirectories).') . '
' . '' . __('The next screen for Network will give you individually-generated lines of code to add to your wp-config.php and .htaccess files. Make sure the settings of your FTP client make files starting with a dot visible, so that you can find .htaccess; you may have to create this file if it really is not there. Make backup copies of those two files.') . '
' . diff --git a/wp-admin/options-discussion.php b/wp-admin/options-discussion.php index 6563426e03..56b97253a7 100644 --- a/wp-admin/options-discussion.php +++ b/wp-admin/options-discussion.php @@ -15,7 +15,7 @@ if ( ! current_user_can( 'manage_options' ) ) $title = __('Discussion Settings'); $parent_file = 'options-general.php'; -add_contextual_help($current_screen, +add_contextual_help($current_screen, '' . __('This screen provides many options for controlling the management and display of comments and links to your posts/pages. So many, in fact, they won’t all fit here! :) Use the documentation link below to get information on what each discussion setting does.') . '
' . '' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '
' . '' . __('For more information:') . '
' . diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index 9c2db8d60c..eef4a603da 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -50,7 +50,7 @@ function add_js() { } add_filter('admin_head', 'add_js'); -add_contextual_help($current_screen, +add_contextual_help($current_screen, '' . __('The fields on this screen determine some of the basics of your site setup.') . '
' . '' . __('Most themes display the site title at the top of every page, in the title bar of the browser, and as the identifying name for syndicated feeds. The tagline is also displayed by many themes.') . '
' . '' . __('The WordPress URL and the Site URL can be the same (example.com) or different; for example, having the WordPress core files (example.com/wordpress) in a subdirectory instead of the root directory.') . '
' . diff --git a/wp-admin/options-media.php b/wp-admin/options-media.php index 2ba052d4fb..f7ead730b5 100644 --- a/wp-admin/options-media.php +++ b/wp-admin/options-media.php @@ -15,7 +15,7 @@ if ( ! current_user_can( 'manage_options' ) ) $title = __('Media Settings'); $parent_file = 'options-general.php'; -add_contextual_help($current_screen, +add_contextual_help($current_screen, '' . __('You can set maximum sizes for images inserted into your written content; you can also insert an image as Full Size.') . '
' . '' . __('The Embed option allows you embed a video, image, or other media content into your content automatically by typing the URL (of the web page where the file lives) on its own line when you create your content.') . '
' . '' . __('Uploading Options gives you folder and path choices for storing your files in your installation’s directory.') . '
' . diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index b1825b3afe..ac27b83f5c 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -15,7 +15,7 @@ if ( ! current_user_can( 'manage_options' ) ) $title = __('Permalink Settings'); $parent_file = 'options-general.php'; -add_contextual_help($current_screen, +add_contextual_help($current_screen, '' . __('This screen provides some common options for your default permalinks URL structure.') . '
' . '' . __('If you pick an option other than Default, your general URL path with structure tags, terms surrounded by %, will also appear in the custom structure field and your path can be further modified there.') . '
' . '' . __('When you assign multiple categories or tags to a post, only one can show up in the permalink: the lowest numbered category. This applies if your custom structure includes %category% or %tag%.') . '
' . diff --git a/wp-admin/options-privacy.php b/wp-admin/options-privacy.php index b6513ca46e..3ba5fd5d49 100644 --- a/wp-admin/options-privacy.php +++ b/wp-admin/options-privacy.php @@ -15,7 +15,7 @@ if ( ! current_user_can( 'manage_options' ) ) $title = __('Privacy Settings'); $parent_file = 'options-general.php'; -add_contextual_help($current_screen, +add_contextual_help($current_screen, '' . __('You can choose whether or not your site will be crawled by robots, ping services, and spiders. If you want those services to ignore your site, click the second option here. Note that your privacy is not complete; your site is still visible on the web.') . '
' . '' . __('When this setting is in effect a reminder is shown in the header of these administration screens that says, “Search Engines Blocked,” to remind you that your site is not being crawled.') . '
' . '' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '
' . diff --git a/wp-admin/options-reading.php b/wp-admin/options-reading.php index 1f4fe9bae8..00acb717d9 100644 --- a/wp-admin/options-reading.php +++ b/wp-admin/options-reading.php @@ -15,7 +15,7 @@ if ( ! current_user_can( 'manage_options' ) ) $title = __( 'Reading Settings' ); $parent_file = 'options-general.php'; -add_contextual_help($current_screen, +add_contextual_help($current_screen, '' . __('This screen contains the settings that affect the display of your content.') . '
' . '' . __('You can choose what’s displayed on the front page of your site. It can be posts in reverse chronological order (classic blog), or a fixed/static page. To set a static home page, you first need to create two Pages. One will become the front page, and the other will be where your posts are displayed.') . '
' . '' . __('You can also control the display of your content in RSS feeds, including the maximum numbers of posts to display, whether to show full text or a summary, and the character set encoding.') . '
' . diff --git a/wp-admin/options-writing.php b/wp-admin/options-writing.php index 1455f45e29..ca1f476ed0 100644 --- a/wp-admin/options-writing.php +++ b/wp-admin/options-writing.php @@ -15,7 +15,7 @@ if ( ! current_user_can( 'manage_options' ) ) $title = __('Writing Settings'); $parent_file = 'options-general.php'; -add_contextual_help($current_screen, +add_contextual_help($current_screen, '' . __('You can submit content in several different ways; this screen holds the settings for all of them. The top section controls the editor within these administration screens, while the rest control external publishing methods. For more information on any of these methods, use the documentation links below.') . '
' . '' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '
' . '' . __('For more information:') . '
' . diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index eff0c22fa4..aea38ec8a1 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -309,7 +309,7 @@ add_contextual_help($current_screen, '' . __('Plugins extend and expand the functionality of WordPress. Once a plugin is installed, you may activate it or deactivate it here.') . '
' . '' . sprintf(__('You can find additional plugins for your site by using the Plugin Browser/Installer functionality or by browsing the WordPress Plugin Directory directly and installing new plugins manually. To manually install a plugin you generally just need to upload the plugin file into your /wp-content/plugins
directory. Once a plugin has been installed, you can activate it here.'), 'plugin-install.php', 'http://wordpress.org/extend/plugins/') . '
' . __('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.') . '
' . - '' . sprintf( __('If something goes wrong with a plugin and you can’t use WordPress, delete or rename that file in the %s
directory and it will be automatically deactivated.'), WP_PLUGIN_DIR) . '
' . sprintf( __('If something goes wrong with a plugin and you can’t use WordPress, delete or rename that file in the %s
directory and it will be automatically deactivated.'), WP_PLUGIN_DIR) . '
' . __('For more information:') . '
' . '' . __('Documentation on Managing Plugins') . '
' . '' . __('Support Forums') . '
' diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 254252c036..7a56d2e7ca 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -37,7 +37,7 @@ $help = '' . __('Aside from the default theme included with your WordPress in $help .= '
' . __('You can see your active theme at the top of the screen. Below are the other themes you have installed that are not currently in use. You can see what your site would look like with one of these themes by clicking the Preview link. To change themes, click the Activate link.') . '
'; if ( current_user_can('install_themes') ) $help .= '' . sprintf(__('If you would like to see more themes to choose from, click on the “Install Themes” tab and you will be able to browse or search for additional themes from the WordPress.org theme repository. Themes in the WordPress.org theme repository are designed and developed by third parties, and are licensed under the GNU General Public License, version 2, just like WordPress. Oh, and they’re free!'), 'http://wordpress.org/extend/themes/') . '
'; - + $help .= '' . __('For more information:') . '
'; $help .= '' . __('Documentation on Using Themes') . '
'; $help .= '' . __('Support Forums') . '
'; diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index f5d132261b..43995cb52a 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -36,13 +36,13 @@ $parent_file = 'users.php'; // contextual help - choose Help on the top right of admin panel to preview this. add_contextual_help($current_screen, '' . __('Your profile contains information about you (your “account”) as well as some personal options related to using WordPress.') . '
' . - '' . __('You can change your password, turn on keyboard shortcuts, change the color scheme of your WordPress administration screens, and turn off the WYSIWYG (Visual) editor, among other things.') . '
' . + '' . __('You can change your password, turn on keyboard shortcuts, change the color scheme of your WordPress administration screens, and turn off the WYSIWYG (Visual) editor, among other things.') . '
' . '' . __('Your username cannot be changed, but you can use other fields to enter your real name or a nickname, and change which name to display on your posts.') . '
' . '' . __('Required fields are indicated; the rest are optional. Profile information will only be displayed if your theme is set up to do so.') . '
' . - '' . __('Remember to click the Update Profile button when you are finished.') . '
' . - '' . __('For more information:') . '
' . + '' . __('Remember to click the Update Profile button when you are finished.') . '
' . + '' . __('For more information:') . '
' . '' . __('Documentation on User Profiles') . '
' . - '' . __('Support Forums') . '
' + '' . __('Support Forums') . '
' ); diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php index 943dbbbdf0..e1cc419f14 100644 --- a/wp-admin/user-new.php +++ b/wp-admin/user-new.php @@ -108,20 +108,20 @@ if ( isset($_REQUEST['action']) && 'adduser' == $_REQUEST['action'] ) { $title = __('Add New User'); $parent_file = 'users.php'; -add_contextual_help($current_screen, - '' . __('To add a new user to your site, fill in the form on this screen. If you’re not sure which role to assign, you can use the link below to review the different roles and their capabilities. Here is a basic overview of roles:') . '
' . - '' . __('To add a new user to your site, fill in the form on this screen. If you’re not sure which role to assign, you can use the link below to review the different roles and their capabilities. Here is a basic overview of roles:') . '
' . + '' . __('You must assign a password to the new user, but don’t worry; when they log in for the first time they will be prompted to change it. The username, however, cannot be changed.') . '
' . '' . __('New users will receive an email letting them know they’ve been added as a user for your site. By default, this email will also contain their password. Uncheck the box if you do not the password to be included in the welcome email.') . '
' . '' . __('Remember to click the Add User button at the bottom of this screen when you are finished.') . '
' . '' . __('For more information:') . '
' . - '' . __('Documentation on Adding New Users') . '
' . + '' . __('Documentation on Adding New Users') . '
' . '' . __('Support Forums') . '
' ); diff --git a/wp-admin/users.php b/wp-admin/users.php index d3c96a877f..7d6c2029c4 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -21,12 +21,12 @@ $parent_file = 'users.php'; // contextual help - choose Help on the top right of admin panel to preview this. add_contextual_help($current_screen, '' . __('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 when they are logged in, based on their role.') . '
' . - '' . __('You can customize the display of information on this screen as you can on other screens, by using the Screen Options tab and the on-screen filters.') . '
' . - '' . __('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.') . '
' . + '' . __('You can customize the display of information on this screen as you can on other screens, by using the Screen Options tab and the on-screen filters.') . '
' . + '' . __('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.') . '
' . '' . __('For more information:') . '
' . '' . __('Documentation on Authors and Users') . '
' . '' . __('Roles and Capabilities Descriptions') . '
' . - '' . __('Support Forums') . '
' + '' . __('Support Forums') . '
' ); $update = $doaction = ''; diff --git a/wp-includes/feed.php b/wp-includes/feed.php index 10a486f459..1be12a4529 100644 --- a/wp-includes/feed.php +++ b/wp-includes/feed.php @@ -191,7 +191,7 @@ function the_permalink_rss() { /** * Outputs the link to the comments for the current post in an xml safe way - * + * * @since 3.0.0 * @return none */ diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 22d61dab98..94b82e9e53 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2306,7 +2306,7 @@ function wp_upload_bits( $name, $deprecated, $bits, $time = null ) { @fwrite( $ifp, $bits ); fclose( $ifp ); clearstatcache(); - + // Set correct file permissions $stat = @ stat( dirname( $new_file ) ); $perms = $stat['mode'] & 0007777; diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php index 1ad9499b89..65b8e9c6fa 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -366,7 +366,7 @@ function load_default_textdomain() { $locale = get_locale(); load_textdomain( 'default', WP_LANG_DIR . "/$locale.mo" ); - + if ( is_multisite() || ( defined( 'WP_NETWORK_ADMIN_PAGE' ) && WP_NETWORK_ADMIN_PAGE ) ) { load_textdomain( 'default', WP_LANG_DIR . "/ms-$locale.mo" ); } diff --git a/wp-includes/nav-menu-template.php b/wp-includes/nav-menu-template.php index 1d92379cc5..8889c50c6d 100644 --- a/wp-includes/nav-menu-template.php +++ b/wp-includes/nav-menu-template.php @@ -314,9 +314,9 @@ function _wp_menu_item_classes_by_context( &$menu_items ) { $active_object = $menu_item->object; } } - + // back-compat with wp_page_menu: add "current_page_parent" to static home page link for any non-page query - if ( ! empty( $home_page_id ) && 'post_type' == $menu_item->type && empty( $wp_query->is_page ) && $home_page_id == $menu_item->object_id ) + if ( ! empty( $home_page_id ) && 'post_type' == $menu_item->type && empty( $wp_query->is_page ) && $home_page_id == $menu_item->object_id ) $classes[] = 'current_page_parent'; $menu_items[$key]->classes = array_unique( $classes ); @@ -343,7 +343,7 @@ function _wp_menu_item_classes_by_context( &$menu_items ) { $classes[] = 'current-menu-parent'; if ( in_array( $parent_item->object_id, $active_parent_object_ids ) ) $classes[] = 'current-' . $active_object . '-parent'; - + if ( 'post_type' == $parent_item->type && 'page' == $parent_item->object ) { // Back compat classes for pages to match wp_page_menu() if ( in_array('current-menu-parent', $classes) ) @@ -351,7 +351,7 @@ function _wp_menu_item_classes_by_context( &$menu_items ) { if ( in_array('current-menu-ancestor', $classes) ) $classes[] = 'current_page_ancestor'; } - + $menu_items[$key]->classes = array_unique( $classes ); } } diff --git a/wp-includes/nav-menu.php b/wp-includes/nav-menu.php index 79154c2da7..4607ec5eec 100644 --- a/wp-includes/nav-menu.php +++ b/wp-includes/nav-menu.php @@ -284,7 +284,7 @@ function wp_update_nav_menu_item( $menu_id = 0, $menu_item_db_id = 0, $menu_item ); $args = wp_parse_args( $menu_item_data, $defaults ); - + if ( 0 == $menu_id ) { $args['menu-item-position'] = 1; } elseif ( 0 == (int) $args['menu-item-position'] ) { @@ -367,13 +367,13 @@ function wp_update_nav_menu_item( $menu_id = 0, $menu_item_db_id = 0, $menu_item update_post_meta( $menu_item_db_id, '_menu_item_object_id', (int) $args['menu-item-object-id'] ); update_post_meta( $menu_item_db_id, '_menu_item_object', sanitize_key($args['menu-item-object']) ); update_post_meta( $menu_item_db_id, '_menu_item_target', sanitize_key($args['menu-item-target']) ); - + $args['menu-item-classes'] = array_map( 'sanitize_html_class', explode( ' ', $args['menu-item-classes'] ) ); $args['menu-item-xfn'] = implode( ' ', array_map( 'sanitize_html_class', explode( ' ', $args['menu-item-xfn'] ) ) ); update_post_meta( $menu_item_db_id, '_menu_item_classes', $args['menu-item-classes'] ); update_post_meta( $menu_item_db_id, '_menu_item_xfn', $args['menu-item-xfn'] ); update_post_meta( $menu_item_db_id, '_menu_item_url', esc_url_raw($args['menu-item-url']) ); - + if ( 0 == $menu_id ) update_post_meta( $menu_item_db_id, '_menu_item_orphaned', time() ); else diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 6230106bab..8f43b54c67 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -127,7 +127,7 @@ function get_the_title( $id = 0 ) { * The guid will appear to be a link, but should not be used as an link to the * post. The reason you should not use it as a link, is because of moving the * blog across domains. - * + * * Url is escaped to make it xml safe * * @since 1.5.0 diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 51fbfb304e..fa025f1691 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -2395,7 +2395,7 @@ function _pad_term_counts(&$terms, $taxonomy) { // Get the object and term ids and stick them in a lookup table $tax_obj = get_taxonomy($taxonomy); $object_types = esc_sql($tax_obj->object_type); - $results = $wpdb->get_results("SELECT object_id, term_taxonomy_id FROM $wpdb->term_relationships INNER JOIN $wpdb->posts ON object_id = ID WHERE term_taxonomy_id IN (" . implode(',', array_keys($term_ids)) . ") AND post_type IN ('" . implode("', '", $object_types) . "') AND post_status = 'publish'"); + $results = $wpdb->get_results("SELECT object_id, term_taxonomy_id FROM $wpdb->term_relationships INNER JOIN $wpdb->posts ON object_id = ID WHERE term_taxonomy_id IN (" . implode(',', array_keys($term_ids)) . ") AND post_type IN ('" . implode("', '", $object_types) . "') AND post_status = 'publish'"); foreach ( $results as $row ) { $id = $term_ids[$row->term_taxonomy_id]; $term_items[$id][$row->object_id] = isset($term_items[$id][$row->object_id]) ? ++$term_items[$id][$row->object_id] : 1;