Changeset 15116
- Timestamp:
- 06/02/2010 08:04:07 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 33 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r15075 r15116 1116 1116 ) 1117 1117 )); 1118 1118 1119 1119 $markup = ob_get_clean(); 1120 1120 1121 1121 echo json_encode(array( 1122 1122 'replace-id' => $type . '-' . $item->name, -
trunk/wp-admin/includes/nav-menu.php
r15100 r15116 695 695 <?php 696 696 $args['walker'] = $walker; 697 697 698 698 // if we're dealing with pages, let's put a checkbox for the front page at the top of the list 699 699 if ( 'page' == $post_type_name ) { … … 1107 1107 } 1108 1108 1109 /** 1109 /** 1110 1110 * Deletes orphaned draft menu items 1111 1111 * -
trunk/wp-admin/js/link.dev.js
r14940 r15116 57 57 $('a[href="#categories-pop"]').click(); 58 58 59 $('#category-add-toggle').click( function() { 59 $('#category-add-toggle').click( function() { 60 60 $(this).parents('div:first').toggleClass( 'wp-hidden-children' ); 61 61 $('#category-tabs a[href="#categories-all"]').click(); -
trunk/wp-admin/js/nav-menu.dev.js
r15080 r15116 139 139 listItemDBID = 'undefined' == typeof listItemDBIDMatch[1] ? 0 : parseInt(listItemDBIDMatch[1], 10); 140 140 if ( this.className && -1 != this.className.indexOf('add-to-top') ) 141 processMethod = api.addMenuItemToTop; 141 processMethod = api.addMenuItemToTop; 142 142 menuItems[listItemDBID] = t.closest('li').getItemData( 'add-menu-item', listItemDBID ); 143 143 }); 144 144 145 145 // Add the items 146 146 api.addItemToMenu(menuItems, processMethod, function(){ … … 250 250 start: function(e, ui) { 251 251 var height, width, parent, children, maxChildDepth, tempHolder; 252 252 253 253 // handle placement for rtl orientation 254 254 if ( api.isRTL ) … … 623 623 return false; 624 624 } else if ( target.hasClass('page-numbers') ) { 625 $.post( ajaxurl, e.target.href.replace(/.*\?/, '').replace(/action=([^&]*)/, '') + '&action=menu-get-metabox', 625 $.post( ajaxurl, e.target.href.replace(/.*\?/, '').replace(/action=([^&]*)/, '') + '&action=menu-get-metabox', 626 626 function( resp ) { 627 627 if ( -1 == resp.indexOf('replace-id') ) … … 647 647 } 648 648 ); 649 649 650 650 return false; 651 651 } … … 671 671 fixedRight = fixedLeft + fixedWidth; 672 672 active.makeTabVisible(); 673 673 674 674 // Prevent space from building up next to the last tab if there's more to show 675 675 if( tabs.last().isTabVisible() ) { -
trunk/wp-admin/js/post.dev.js
r14940 r15116 316 316 $('#' + taxonomy + '-add-toggle').click( function() { 317 317 $('#' + taxonomy + '-adder').toggleClass( 'wp-hidden-children' ); 318 $('a[href="#' + taxonomy + '-all"]', '#' + taxonomy + '-tabs').click(); 318 $('a[href="#' + taxonomy + '-all"]', '#' + taxonomy + '-tabs').click(); 319 319 $('#new'+taxonomy).focus(); 320 320 return false; -
trunk/wp-admin/ms-admin.php
r15054 r15116 19 19 $parent_file = 'ms-admin.php'; 20 20 21 add_contextual_help($current_screen, 21 add_contextual_help($current_screen, 22 22 '<p>' . __('Until WordPress 3.0, running multiple sites required using WordPress MU instead of regular WordPress. In version 3.0, these applications have merged. If you are a former MU user, you should be aware of the following changes:') . '</p>' . 23 23 '<ul><li>' . __('Site Admin is now Super Admin (we highly encourage you to get yourself a cape!).') . '</li>' . -
trunk/wp-admin/ms-options.php
r15102 r15116 19 19 $parent_file = 'ms-admin.php'; 20 20 21 add_contextual_help($current_screen, 21 add_contextual_help($current_screen, 22 22 '<p>' . __('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.') . '</p>' . 23 23 '<p>' . __('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.') . '</p>' . -
trunk/wp-admin/ms-sites.php
r15054 r15116 20 20 21 21 if ( isset( $_GET['action'] ) && 'editblog' == $_GET['action'] ) { 22 add_contextual_help($current_screen, 22 add_contextual_help($current_screen, 23 23 '<p>' . __('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.') . '</p>' . 24 24 '<p>' . __('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).') . '</p>' . … … 29 29 ); 30 30 } else { 31 add_contextual_help($current_screen, 31 add_contextual_help($current_screen, 32 32 '<p>' . __('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.') . '</p>' . 33 33 '<p>' . __('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.') . '</p>' . -
trunk/wp-admin/ms-themes.php
r15004 r15116 16 16 $parent_file = 'ms-admin.php'; 17 17 18 add_contextual_help($current_screen, 18 add_contextual_help($current_screen, 19 19 '<p>' . __('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.') . '</p>' . 20 20 '<p>' . __('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.') . '</p>' . -
trunk/wp-admin/ms-upgrade-network.php
r15004 r15116 18 18 $parent_file = 'ms-admin.php'; 19 19 20 add_contextual_help($current_screen, 20 add_contextual_help($current_screen, 21 21 '<p>' . __('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.') . '</p>' . 22 22 '<p>' . __('If a version update to core has not happened, clicking this button won’t affect anything.') . '</p>' . -
trunk/wp-admin/ms-users.php
r15102 r15116 19 19 $parent_file = 'ms-admin.php'; 20 20 21 add_contextual_help($current_screen, 21 add_contextual_help($current_screen, 22 22 '<p>' . __('This table shows all users across the network and the sites to which they are assigned.') . '</p>' . 23 23 '<p>' . __('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.') . '</p>' . -
trunk/wp-admin/my-sites.php
r15094 r15116 39 39 $parent_file = 'index.php'; 40 40 41 add_contextual_help($current_screen, 41 add_contextual_help($current_screen, 42 42 '<p>' . __('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.') . '</p>' . 43 43 '<p>' . __('Up until WordPress version 3.0, what is now called a Multi-site Network had to be installed separately as WordPress MU (multi-user).') . '</p>' . -
trunk/wp-admin/nav-menus.php
r15100 r15116 442 442 $help .= '<p>' . __('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.') . '</p>'; 443 443 $help .= '<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. 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.') . '</p>'; 444 $help .= '<p><strong>' . __('For more information:') . '</strong></p>'; 444 $help .= '<p><strong>' . __('For more information:') . '</strong></p>'; 445 445 $help .= '<p>' . __('<a href="http://codex.wordpress.org/Appearance_Menus_SubPanel">Menus Documentation</a>') . '</p>'; 446 446 $help .= '<p>' . __('<a href="http://wordpress.org/support/">Support Forums</a>') . '</p>'; … … 566 566 <div id="post-body"> 567 567 <div id="post-body-content"> 568 <?php 568 <?php 569 569 if ( is_nav_menu( $nav_menu_selected_id ) ) : 570 570 $edit_markup = wp_get_nav_menu_to_edit( $nav_menu_selected_id ); … … 578 578 echo '<p>' . __('When you have finished building your custom menu, make sure you click the Save Menu button.') . '</p>'; 579 579 echo '</div>'; 580 endif; 580 endif; 581 581 ?> 582 582 </div><!-- /#post-body-content --> -
trunk/wp-admin/network.php
r15076 r15116 90 90 $parent_file = 'tools.php'; 91 91 92 add_contextual_help($current_screen, 92 add_contextual_help($current_screen, 93 93 '<p>' . __('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.') . '</p>' . 94 94 '<p>' . __('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).') . '</p>' . -
trunk/wp-admin/options-discussion.php
r15000 r15116 16 16 $parent_file = 'options-general.php'; 17 17 18 add_contextual_help($current_screen, 18 add_contextual_help($current_screen, 19 19 '<p>' . __('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.') . '</p>' . 20 20 '<p>' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '</p>' . -
trunk/wp-admin/options-general.php
r15103 r15116 51 51 add_filter('admin_head', 'add_js'); 52 52 53 add_contextual_help($current_screen, 53 add_contextual_help($current_screen, 54 54 '<p>' . __('The fields on this screen determine some of the basics of your site setup.') . '</p>' . 55 55 '<p>' . __('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.') . '</p>' . -
trunk/wp-admin/options-media.php
r15103 r15116 16 16 $parent_file = 'options-general.php'; 17 17 18 add_contextual_help($current_screen, 18 add_contextual_help($current_screen, 19 19 '<p>' . __('You can set maximum sizes for images inserted into your written content; you can also insert an image as Full Size.') . '</p>' . 20 20 '<p>' . __('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.') . '</p>' . -
trunk/wp-admin/options-permalink.php
r15071 r15116 16 16 $parent_file = 'options-general.php'; 17 17 18 add_contextual_help($current_screen, 18 add_contextual_help($current_screen, 19 19 '<p>' . __('This screen provides some common options for your default permalinks URL structure.') . '</p>' . 20 20 '<p>' . __('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.') . '</p>' . -
trunk/wp-admin/options-privacy.php
r15094 r15116 16 16 $parent_file = 'options-general.php'; 17 17 18 add_contextual_help($current_screen, 18 add_contextual_help($current_screen, 19 19 '<p>' . __('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.') . '</p>' . 20 20 '<p>' . __('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.') . '</p>' . -
trunk/wp-admin/options-reading.php
r15000 r15116 16 16 $parent_file = 'options-general.php'; 17 17 18 add_contextual_help($current_screen, 18 add_contextual_help($current_screen, 19 19 '<p>' . __('This screen contains the settings that affect the display of your content.') . '</p>' . 20 20 '<p>' . __('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 <a href="post-new.php?post_type=page">Pages</a>. One will become the front page, and the other will be where your posts are displayed.') . '</p>' . -
trunk/wp-admin/options-writing.php
r15000 r15116 16 16 $parent_file = 'options-general.php'; 17 17 18 add_contextual_help($current_screen, 18 add_contextual_help($current_screen, 19 19 '<p>' . __('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.') . '</p>' . 20 20 '<p>' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '</p>' . -
trunk/wp-admin/plugins.php
r15017 r15116 310 310 '<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">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>' . 311 311 '<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>' . 312 '<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>' . 312 '<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>' . 313 313 '<p><strong>' . __('For more information:') . '</strong></p>' . 314 314 '<p>' . __('<a href="http://codex.wordpress.org/Managing_Plugins#Plugin_Management">Documentation on Managing Plugins</a>') . '</p>' . -
trunk/wp-admin/themes.php
r15094 r15116 38 38 if ( current_user_can('install_themes') ) 39 39 $help .= '<p>' . 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 <a href="%s">WordPress.org theme repository</a>. 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/') . '</p>'; 40 40 41 41 $help .= '<p><strong>' . __('For more information:') . '</strong></p>'; 42 42 $help .= '<p>' . __('<a href="http://codex.wordpress.org/Using_Themes">Documentation on Using Themes</a>') . '</p>'; -
trunk/wp-admin/user-edit.php
r15103 r15116 37 37 add_contextual_help($current_screen, 38 38 '<p>' . __('Your profile contains information about you (your “account”) as well as some personal options related to using WordPress.') . '</p>' . 39 '<p>' . __('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.') . '</p>' . 39 '<p>' . __('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.') . '</p>' . 40 40 '<p>' . __('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.') . '</p>' . 41 41 '<p>' . __('Required fields are indicated; the rest are optional. Profile information will only be displayed if your theme is set up to do so.') . '</p>' . 42 '<p>' . __('Remember to click the Update Profile button when you are finished.') . '</p>' . 43 '<p><strong>' . __('For more information:') . '</strong></p>' . 42 '<p>' . __('Remember to click the Update Profile button when you are finished.') . '</p>' . 43 '<p><strong>' . __('For more information:') . '</strong></p>' . 44 44 '<p>' . __('<a target="_blank" href="http://codex.wordpress.org/Users_Your_Profile_SubPanel">Documentation on User Profiles</a>') . '</p>' . 45 '<p>' . __('<a target="_blank" href="http://wordpress.org/support/">Support Forums</a>') . '</p>' 45 '<p>' . __('<a target="_blank" href="http://wordpress.org/support/">Support Forums</a>') . '</p>' 46 46 ); 47 47 -
trunk/wp-admin/user-new.php
r15103 r15116 109 109 $parent_file = 'users.php'; 110 110 111 add_contextual_help($current_screen, 112 '<p>' . __('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:') . '</p>' . 113 '<ul>' . 111 add_contextual_help($current_screen, 112 '<p>' . __('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:') . '</p>' . 113 '<ul>' . 114 114 '<li>' . __('Administrators have access to all the administration features.') . '</li>' . 115 '<li>' . __('Editors can publish posts, manage posts as well as manage other people’s posts, etc.') . '</li>' . 115 '<li>' . __('Editors can publish posts, manage posts as well as manage other people’s posts, etc.') . '</li>' . 116 116 '<li>' . __('Authors can publish and manage their own posts.') . '</li>' . 117 '<li>' . __('Contributors can write and manage their posts but not publish posts or upload media files.') . '</li>' . 118 '<li>' . __('Subscribers can read comments/comment/receive newsletters, etc.') . '</li>' . 117 '<li>' . __('Contributors can write and manage their posts but not publish posts or upload media files.') . '</li>' . 118 '<li>' . __('Subscribers can read comments/comment/receive newsletters, etc.') . '</li>' . 119 119 '</ul>' . 120 120 '<p>' . __('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.') . '</p>' . … … 122 122 '<p>' . __('Remember to click the Add User button at the bottom of this screen when you are finished.') . '</p>' . 123 123 '<p><strong>' . __('For more information:') . '</strong></p>' . 124 '<p>' . __('<a target="_blank" href="http://codex.wordpress.org/Users_Add_New_SubPanel">Documentation on Adding New Users</a>') . '</p>' . 124 '<p>' . __('<a target="_blank" href="http://codex.wordpress.org/Users_Add_New_SubPanel">Documentation on Adding New Users</a>') . '</p>' . 125 125 '<p>' . __('<a target="_blank" href="http://wordpress.org/support/">Support Forums</a>') . '</p>' 126 126 ); -
trunk/wp-admin/users.php
r15101 r15116 22 22 add_contextual_help($current_screen, 23 23 '<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 when they are logged in, based on their role.') . '</p>' . 24 '<p>' . __('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.') . '</p>' . 25 '<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>' . 24 '<p>' . __('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.') . '</p>' . 25 '<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>' . 26 26 '<p><strong>' . __('For more information:') . '</strong></p>' . 27 27 '<p>' . __('<a target="_blank" href=http://codex.wordpress.org/Users_Authors_and_Users_SubPanel">Documentation on Authors and Users</a>') . '</p>' . 28 28 '<p>' . __('<a target="_blank" href="http://codex.wordpress.org/Roles_and_Capabilities">Roles and Capabilities Descriptions</a>') . '</p>' . 29 '<p>' . __('<a target="_blank" href="http://wordpress.org/support/">Support Forums</a>') . '</p>' 29 '<p>' . __('<a target="_blank" href="http://wordpress.org/support/">Support Forums</a>') . '</p>' 30 30 ); 31 31 -
trunk/wp-includes/feed.php
r14952 r15116 192 192 /** 193 193 * Outputs the link to the comments for the current post in an xml safe way 194 * 194 * 195 195 * @since 3.0.0 196 196 * @return none -
trunk/wp-includes/functions.php
r15106 r15116 2307 2307 fclose( $ifp ); 2308 2308 clearstatcache(); 2309 2309 2310 2310 // Set correct file permissions 2311 2311 $stat = @ stat( dirname( $new_file ) ); -
trunk/wp-includes/l10n.php
r15064 r15116 367 367 368 368 load_textdomain( 'default', WP_LANG_DIR . "/$locale.mo" ); 369 369 370 370 if ( is_multisite() || ( defined( 'WP_NETWORK_ADMIN_PAGE' ) && WP_NETWORK_ADMIN_PAGE ) ) { 371 371 load_textdomain( 'default', WP_LANG_DIR . "/ms-$locale.mo" ); -
trunk/wp-includes/nav-menu-template.php
r15113 r15116 315 315 } 316 316 } 317 317 318 318 // back-compat with wp_page_menu: add "current_page_parent" to static home page link for any non-page query 319 if ( ! empty( $home_page_id ) && 'post_type' == $menu_item->type && empty( $wp_query->is_page ) && $home_page_id == $menu_item->object_id ) 319 if ( ! empty( $home_page_id ) && 'post_type' == $menu_item->type && empty( $wp_query->is_page ) && $home_page_id == $menu_item->object_id ) 320 320 $classes[] = 'current_page_parent'; 321 321 … … 344 344 if ( in_array( $parent_item->object_id, $active_parent_object_ids ) ) 345 345 $classes[] = 'current-' . $active_object . '-parent'; 346 346 347 347 if ( 'post_type' == $parent_item->type && 'page' == $parent_item->object ) { 348 348 // Back compat classes for pages to match wp_page_menu() … … 352 352 $classes[] = 'current_page_ancestor'; 353 353 } 354 354 355 355 $menu_items[$key]->classes = array_unique( $classes ); 356 356 } -
trunk/wp-includes/nav-menu.php
r15112 r15116 285 285 286 286 $args = wp_parse_args( $menu_item_data, $defaults ); 287 287 288 288 if ( 0 == $menu_id ) { 289 289 $args['menu-item-position'] = 1; … … 368 368 update_post_meta( $menu_item_db_id, '_menu_item_object', sanitize_key($args['menu-item-object']) ); 369 369 update_post_meta( $menu_item_db_id, '_menu_item_target', sanitize_key($args['menu-item-target']) ); 370 370 371 371 $args['menu-item-classes'] = array_map( 'sanitize_html_class', explode( ' ', $args['menu-item-classes'] ) ); 372 372 $args['menu-item-xfn'] = implode( ' ', array_map( 'sanitize_html_class', explode( ' ', $args['menu-item-xfn'] ) ) ); … … 374 374 update_post_meta( $menu_item_db_id, '_menu_item_xfn', $args['menu-item-xfn'] ); 375 375 update_post_meta( $menu_item_db_id, '_menu_item_url', esc_url_raw($args['menu-item-url']) ); 376 376 377 377 if ( 0 == $menu_id ) 378 378 update_post_meta( $menu_item_db_id, '_menu_item_orphaned', time() ); -
trunk/wp-includes/post-template.php
r15088 r15116 128 128 * post. The reason you should not use it as a link, is because of moving the 129 129 * blog across domains. 130 * 130 * 131 131 * Url is escaped to make it xml safe 132 132 * -
trunk/wp-includes/taxonomy.php
r15110 r15116 2396 2396 $tax_obj = get_taxonomy($taxonomy); 2397 2397 $object_types = esc_sql($tax_obj->object_type); 2398 $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'"); 2398 $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'"); 2399 2399 foreach ( $results as $row ) { 2400 2400 $id = $term_ids[$row->term_taxonomy_id];
Note: See TracChangeset
for help on using the changeset viewer.