# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: \wp-includes
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: wp-includes/author-template.php
--- wp-includes/author-template.php Base (BASE)
+++ wp-includes/author-template.php Locally Modified (Based On LOCAL)
@@ -369,16 +369,56 @@
  * @since 3.2.0
  * @return bool Whether or not we have more than one author
  */
-function is_multi_author() {
+function is_multi_author( $args = '' ) {
 	global $wpdb;
 
-	if ( false === ( $is_multi_author = wp_cache_get('is_multi_author', 'posts') ) ) {
-		$rows = (array) $wpdb->get_col("SELECT DISTINCT post_author FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' LIMIT 2");
-		$is_multi_author = 1 < count( $rows ) ? 1 : 0;
-		wp_cache_set('is_multi_author', $is_multi_author, 'posts');
+        $args = wp_parse_args( $args, array(
+            'post_type' => 'post',
+            'post_status' => 'publish',
+        ));
+
+        if ( 'any' == strtolower( $args['post_type'] ) )
+                $args['post_type'] = false;
+
+        if ( 'any' == strtolower( $args['post_status'] ) )
+                $args['post_status'] = false;
+
+        $args = array_filter( $args );
+
+        // Get the cache key based on $args
+        $key = md5( serialize( $args ) );
+
+        // Check for a cached check
+        $is_multi_author = wp_cache_get( 'is_multi_author', 'posts' );
+
+        if ( ! is_array( $is_multi_author ) )
+                $is_multi_author = array();
+
+        // If there is no cached check, let's do it
+	if ( ! isset( $is_multi_author[$key] ) ) {
+                $where = '';
+
+                // If the $args not empty, Build the WHERE string
+                if ( ! empty( $args ) ) {
+
+                        $where = array();
+
+                        foreach ( array_keys( $args ) as $key )
+                                $where[] = "{$key} = %s";
+
+                        $where = $wpdb->prepare( 'WHERE ' . implode( $where, ' AND ' ), array_values( $args ) );
+
+                } // end if
+
+                // Do the do
+		$rows = (array) $wpdb->get_col( "SELECT DISTINCT post_author FROM $wpdb->posts {$where} LIMIT 2" );
+		$is_multi_author[$key] = ( 1 < count( $rows ) ) ? 1 : 0;
+
+                // Cache the check result
+		wp_cache_set( 'is_multi_author', $is_multi_author, 'posts' );
 	}
 
-	return apply_filters( 'is_multi_author', (bool) $is_multi_author );
+	return apply_filters( 'is_multi_author', (bool) $is_multi_author[$key] );
 }
 
 /**
