WordPress/wp-includes
Andrew Nacin 4d6d80a14f Introduce is_main_network().
By default, a network ID of 1 is assumed to be the main network.
Otherwise, it is the first network listed in the wp_site table.

If PRIMARY_NETWORK_ID is defined, it is considered main network.

props jeremyfelt.
see #25030.

Built from https://develop.svn.wordpress.org/trunk@25147


git-svn-id: http://core.svn.wordpress.org/trunk@25126 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-08-28 03:35:08 +00:00
..
css New develop.svn.wordpress.org repository based on the old core.svn repository. 2013-08-07 05:49:02 +00:00
ID3 ID3 1.9.7. 2013-07-13 00:37:36 +00:00
images Copy wpspin_light to wp-includes as wpspin.gif. Use it in media views. see #22728. 2012-12-04 16:18:53 +00:00
js TinyMCE: fix editor focus issues after ontouchstart event on the parent document in iOS Safari. Fixes #25131 for 3.7. 2013-08-26 21:24:10 +00:00
pomo Avoid 'Only variables should be passed by reference' warning. fixes #23232. 2013-01-31 01:01:19 +00:00
SimplePie SimplePie: Merge 5e046a3 from upstream. props rlerdorf, see #24210. 2013-07-08 17:10:16 +00:00
Text Declare Text_Diff::trimNewlines() as static. Upstream is not back compat. props aaroncampbell. fixes #24372. 2013-05-25 22:10:53 +00:00
theme-compat Don't return encoded ampersands from get_post_comments_feed_link() to avoid canonical redirect issues. Apply esc_url() when appropriate. 2012-11-07 19:56:10 +00:00
admin-bar.php Network Admin toolbar menu: Add Plugins and Themes, remove Visit Network. 2013-08-26 15:22:11 +00:00
atomlib.php Use correct variable in atomlib library, inside an error message. props rlerdorf, see #24110. 2013-05-07 16:37:21 +00:00
author-template.php Switch to a transient for is_multi_author(). props markjaquith, fixes #24445. 2013-07-10 04:20:41 +00:00
bookmark-template.php In wp_list_bookmarks(), don't stomp the categorize argument. Fixes categorized display in the links widget. 2012-11-28 23:19:03 +00:00
bookmark.php Fix potential SQLi through improper use of API functions. 2013-07-29 18:16:47 +00:00
cache.php Correct inline docs for cache.php. props ocean90. fixes #23058. 2013-01-22 20:44:30 +00:00
canonical.php Support IIS 8 and above. 2013-07-08 20:27:06 +00:00
capabilities.php Use meta caps edit_post, read_post, and delete_post directly, rather than consulting the post type object. map_meta_cap() handles that for us. props markjaquith, kovshenin. fixes #23226. 2013-07-08 20:05:42 +00:00
category-template.php Make in_category() an alias of has_category(). fixes #16718. 2013-08-24 22:54:10 +00:00
category.php Pinking shears 2012-11-17 15:11:29 +00:00
class-feed.php Use wp_safe_remote_request() and friends instead of reject_unsafe_urls = true. 2013-07-31 06:52:13 +00:00
class-http.php Avoid a fatal error in WP_Http::request() if $response is a WP_Error instance. props dllh, nacin. fixes #24987. 2013-08-24 03:11:10 +00:00
class-IXR.php
class-json.php Patch Services_JSON to use the proper function name and avoid a fatal error. see #24210. 2013-07-08 16:55:34 +00:00
class-oembed.php Use wp_safe_remote_request() and friends instead of reject_unsafe_urls = true. 2013-07-31 06:52:13 +00:00
class-phpass.php Add strict check to phpass's CheckPassword() method to avoid issues when the method is improperly called. 2013-06-21 01:21:12 +00:00
class-phpmailer.php Update to PHPMailer 5.2.4. props bpetty. fixes #21074. 2013-02-28 18:33:13 +00:00
class-pop3.php
class-simplepie.php Update SimplePie to 1.3.1. Props rmccue, ocean90. fixes #22321 2012-11-05 14:25:25 +00:00
class-smtp.php Update to PHPMailer 5.2.4. props bpetty. fixes #21074. 2013-02-28 18:33:13 +00:00
class-snoopy.php Use correct variable in the deprecated and abandoned Snoopy HTTP client. see #24210. 2013-07-08 17:17:46 +00:00
class-wp-admin-bar.php Don't render the screen reader shortcut 'Log Out' link in the toolbar when the user is not logged in. 2013-06-19 08:15:04 +00:00
class-wp-ajax-response.php
class-wp-customize-control.php Remove /extend/ from URLs to wordpress.org/plugins, /themes, and /mobile, as those are all now top-level. see #24389. 2013-05-22 21:01:57 +00:00
class-wp-customize-manager.php Avoid empty header color after enabling header text via Customizer. props obenland, fixes #23761. 2013-07-12 20:41:46 +00:00
class-wp-customize-section.php Actually display customizer section descriptions in a meaningful way. props obenland, helen. fixes #24392. 2013-08-23 16:18:10 +00:00
class-wp-customize-setting.php Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes(). 2013-03-03 16:30:38 +00:00
class-wp-editor.php Remove the Spellchecker button from TinyMCE. 2013-07-18 22:44:40 +00:00
class-wp-embed.php Use correct escaping function. props duck_. 2013-01-22 16:37:54 +00:00
class-wp-error.php Correct inline docs for is_wp_error(). props johnbillion. fixes #24637. 2013-06-24 18:23:45 +00:00
class-wp-http-ixr-client.php
class-wp-image-editor-gd.php Fix editing images with GD when using streams. 2013-07-17 21:16:44 +00:00
class-wp-image-editor-imagick.php Remove debug. 2013-07-22 17:13:41 +00:00
class-wp-image-editor.php Pinking shears 2013-08-22 15:56:08 +00:00
class-wp-theme.php Revert [23394] until there is a consensus on target="_blank" (or not) for these external links. see #20839. 2013-07-08 13:04:07 +00:00
class-wp-walker.php Fix E_STRICT notices in walkers. props dvarga. see #24356. 2013-05-28 03:29:15 +00:00
class-wp-xmlrpc-server.php Introduce show_in_menu for register_taxonomy. 2013-08-26 22:35:10 +00:00
class-wp.php Remove double-strip on HTTP_IF_NONE_MATCH, which was done years ago (in #2597). see #21767. 2013-03-01 17:51:16 +00:00
class.wp-dependencies.php Revert [21420] and [21481]. Accepting a string caused back compat problems including the possibility of revealing previously hidden circular dependencies resulting in infinite loops. 2012-10-23 20:32:12 +00:00
class.wp-scripts.php If someone tries to localize 'jquery', which is now an alias with jquery-core and jquery-migrate dependencies, add the data to jquery-core. 2013-07-10 05:38:17 +00:00
class.wp-styles.php WP Styles: Correctly print 'after' data when scripts are concatenated. props stephenh1988. fixes #20836. 2013-04-22 19:22:09 +00:00
comment-template.php Ensure a user exists in get_comment_author(). 2013-08-27 13:17:09 +00:00
comment.php WP_Date_Query. 2013-08-27 16:39:09 +00:00
compat.php
cron.php Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes(). 2013-03-03 16:30:38 +00:00
date.php WP_Date_Query. 2013-08-27 16:39:09 +00:00
default-constants.php Make Twenty Thirteen the default theme. 2013-02-28 19:01:07 +00:00
default-filters.php Remove unnecessary loops in default-filters.php. 2013-08-27 11:59:11 +00:00
default-widgets.php Flush the cache in Recent Comments widget on edit_comment. props pento, fixes #24779. 2013-08-17 09:30:09 +00:00
deprecated.php Fix context for get_post() in the deprecated wp_get_single_post(). fixes #24602. 2013-06-19 07:58:28 +00:00
feed-atom-comments.php its <=> it's in documentation, along with a rogue the, The, and looses. props trepmal. fixes #22665. 2012-12-20 15:55:32 +00:00
feed-atom.php Don't return encoded ampersands from get_post_comments_feed_link() to avoid canonical redirect issues. Apply esc_url() when appropriate. 2012-11-07 19:56:10 +00:00
feed-rdf.php
feed-rss2-comments.php Use a CDATA second for comment authors in RSS2 comment feeds so that HTML in comments doesn't kill the XML validation. 2013-08-07 13:43:43 +00:00
feed-rss2.php
feed-rss.php
feed.php Pass the $sep function argument to the wp_title_rss and get_wp_title_rss filters. props scribu, fixes #16983. 2013-08-06 18:41:10 +00:00
formatting.php Use a better variable name in antispambot() introduced with [25055]. Props duck_ Fixes #16754 2013-08-28 01:47:09 +00:00
functions.php Introduce is_main_network(). 2013-08-28 03:35:08 +00:00
functions.wp-scripts.php Fix typo in phpdoc. props fanquake. fixes #23737. 2013-03-11 09:39:55 +00:00
functions.wp-styles.php Introduce wp_style_add_data() as a wrapper for $wp_styles->add_data(). 2013-07-18 19:46:38 +00:00
general-template.php Obey $prefix when $display = false in single_term_title(), single_post_title(), and post_type_archive_title(). props yoavf, fixes #16632. 2013-08-16 20:54:10 +00:00
http.php Additional checks when evaluating the safety of an HTTP request, to avoid false negatives. 2013-07-31 06:44:57 +00:00
kses.php Revert 23416, 23419, 23445 except for wp_reset_vars() changes. We are going a different direction with the slashing cleanup, so resetting to a clean slate. see #21767 2013-03-01 16:28:40 +00:00
l10n.php Pinking shears 2013-08-22 15:56:08 +00:00
link-template.php Pinking shears 2013-08-22 15:56:08 +00:00
load.php Documentation for [24564]. see #23811. 2013-07-08 12:59:10 +00:00
locale.php Remove ultimately unnecessary visibility keyword from a WP_Locale method because this file is included when we bail for PHP 4. props ocean90. fixes #24915. for trunk. 2013-08-01 19:47:36 +00:00
media-template.php Media: Fix embedding of audio/video players when the file was just uploaded. 2013-07-23 17:29:55 +00:00
media.php Ignore case differences when checking file extension in wp_audio_shortcode() and wp_video_shortcode(). props nofearinc, bhengh. fixes #25140. 2013-08-26 19:21:10 +00:00
meta.php Improve inline docs for function params that can be serialized when non-scalar. Fixes #18488. 2013-08-21 21:11:09 +00:00
ms-blogs.php Return esc_url_raw(), not esc_url(), from get_blogaddress_by_domain(). props tlovett1, fixes #25057. #wcpvd 2013-08-16 19:42:09 +00:00
ms-default-constants.php Multisite in a subdirectory: For subdomain installs, use a root admin cookie path, not a wp-admin specific one. 2012-12-04 00:51:02 +00:00
ms-default-filters.php Additional checks when evaluating the safety of an HTTP request, to avoid false negatives. 2013-07-31 06:44:57 +00:00
ms-deprecated.php Deprecate get_dashboard_blog(). 2013-08-06 16:07:46 +00:00
ms-files.php Use stripslashes() instead of wp_unslash() in ms-files.php to avoid formatting.php dependency. props devesine, fixes #24374. 2013-05-20 20:20:22 +00:00
ms-functions.php Avoid a PHP notice in wpmu_create_blog() if $meta is not passed. props duck_, jeremyfelt, SergeyBiryukov. fixes #20793. 2013-08-26 18:57:10 +00:00
ms-load.php Remove some old debug cruft left by yours truly. fixes #24462. 2013-06-26 19:33:58 +00:00
ms-settings.php
nav-menu-template.php If a nav menu has no items, wait until after the wp_nav_menu_items filter before deciding whether to print nothing. 2013-07-10 05:14:43 +00:00
nav-menu.php Keep the Nav Menu walker from blowing up the layout on empty-titled items. 2013-07-05 15:41:46 +00:00
option.php User state settings: 2013-08-23 21:43:09 +00:00
pluggable-deprecated.php Remove /extend/ from URLs to wordpress.org/plugins, /themes, and /mobile, as those are all now top-level. see #24389. 2013-05-22 21:01:57 +00:00
pluggable.php Logging in: when the Remember Me checkbox is checked, make sure the browser continues to send the expired cookies so the "login grace period" for POST and AJAX requests works. Fixes #24735. 2013-08-23 21:27:08 +00:00
plugin.php Close an HTML tag inside the add_filter() inline doc. props johnbillion, fixes #24772. 2013-07-16 13:59:43 +00:00
post-formats.php Allow has_post_format() to accept an array of formats to check. props ericmann. fixes #17320. 2013-07-28 20:48:09 +00:00
post-template.php Avoid PHP notices in get_sample_permalink() and get_sample_permalink_html(). Remove unused global reference. props ocean90. fixes #25005. 2013-08-15 16:25:12 +00:00
post-thumbnail-template.php Fix the PHPDoc for the_post_thumbnail(). props georgestephanis. fixes #22885 2012-12-29 17:59:08 +00:00
post.php Improve inline docs for register_post_type() and register_taxonomy(). 2013-08-26 20:24:08 +00:00
query.php WP_Date_Query. 2013-08-27 16:39:09 +00:00
registration-functions.php
registration.php
revision.php Revisions changes. 2013-07-24 06:08:14 +00:00
rewrite.php Introduce a new endpoint mask for all archives, fixes #16303. 2013-07-28 19:18:19 +00:00
rss-functions.php
rss.php Use wp_safe_remote_request() and friends instead of reject_unsafe_urls = true. 2013-07-31 06:52:13 +00:00
script-loader.php Search for wp-util.min.js in the correct directory when auto-defining SCRIPT_DEBUG. 2013-08-16 20:33:10 +00:00
shortcodes.php Variables passed by reference do not need to be set first. 2013-04-29 14:48:31 +00:00
taxonomy.php Pass $taxonomies to the get_terms_orderby filter. 2013-08-27 21:06:09 +00:00
template-loader.php Clean up [22347] a bit. see #14348 2012-10-31 23:01:13 +00:00
template.php Improve punctuation in phpdoc. see #23090. 2013-03-12 09:30:13 +00:00
theme.php Avoid PHP notices in get_sample_permalink() and get_sample_permalink_html(). Remove unused global reference. props ocean90. fixes #25005. 2013-08-15 16:25:12 +00:00
update.php Tighten our braces. Fixes #23118 props evansolomon. 2013-01-04 10:13:51 +00:00
user.php Don't override an existing WP_Error object in wp_authenticate_username_password(). 2013-07-29 03:43:22 +00:00
vars.php Support IIS 8 and above. 2013-07-08 20:27:06 +00:00
version.php 3.7-alpha-25000 is the final direct commit to core.svn.wordpress.org. 2013-08-06 19:44:26 +00:00
widgets.php Remove reference to unused variable. fixes #24965. 2013-08-06 09:38:24 +00:00
wlwmanifest.xml
wp-db.php Reset $wpdb->insert_id on a failed INSERT or REPLACE. See [24459] [24494]. 2013-07-29 18:14:05 +00:00
wp-diff.php Go back to plain text diffs between revisions instead of attempting partial rendering. 2013-05-07 20:34:58 +00:00