Index: src/wp-includes/query.php
===================================================================
--- src/wp-includes/query.php	(revision 37323)
+++ src/wp-includes/query.php	(working copy)
@@ -1593,7 +1593,7 @@
 		$qv['monthnum'] = absint($qv['monthnum']);
 		$qv['day'] = absint($qv['day']);
 		$qv['w'] = absint($qv['w']);
-		$qv['m'] = preg_replace( '|[^0-9]|', '', $qv['m'] );
+		$qv['m'] = is_scalar( $qv['m'] ) ? preg_replace( '|[^0-9]|', '', $qv['m'] ) : '';
 		$qv['paged'] = absint($qv['paged']);
 		$qv['cat'] = preg_replace( '|[^0-9,-]|', '', $qv['cat'] ); // comma separated list of positive or negative integers
 		$qv['author'] = preg_replace( '|[^0-9,-]|', '', $qv['author'] ); // comma separated list of positive or negative integers
Index: tests/phpunit/tests/query/date.php
===================================================================
--- tests/phpunit/tests/query/date.php	(revision 37323)
+++ tests/phpunit/tests/query/date.php	(working copy)
@@ -258,6 +258,19 @@
 		$this->assertEquals( $expected_dates, wp_list_pluck( $posts, 'post_date' ) );
 	}
 
+	/**
+	 * @ticket 
+	 */
+
+	public function test_simple_m_with_array_expecting_results() {
+		$expected = $this->_get_query_result( );
+		$posts    = $this->_get_query_result( array(
+			'm' => array( '1234' ), // ignored
+		) );
+
+		$this->assertEquals( $expected, $posts );
+	}
+
 	public function test_simple_monthnum_expecting_results() {
 		$posts = $this->_get_query_result( array(
 			'monthnum' => 5,
