Ticket #27231: 27231.diff
File 27231.diff, 1.1 KB (added by , 11 years ago) |
---|
-
src/wp-includes/wp-db.php
17 17 /** 18 18 * @since 0.71 19 19 */ 20 define( 'OBJECT', 'OBJECT' , true);20 define( 'OBJECT', 'OBJECT' ); 21 21 22 22 /** 23 23 * @since 2.5.0 … … 1821 1821 return $this->last_result[$y] ? get_object_vars( $this->last_result[$y] ) : null; 1822 1822 } elseif ( $output == ARRAY_N ) { 1823 1823 return $this->last_result[$y] ? array_values( get_object_vars( $this->last_result[$y] ) ) : null; 1824 } elseif ( strtoupper( $output ) === OBJECT ) { 1825 // Back compat for OBJECT being previously case insensitive. 1826 return $this->last_result[$y] ? $this->last_result[$y] : null; 1824 1827 } else { 1825 1828 $this->print_error( " \$db->get_row(string query, output type, int offset) -- Output type must be one of: OBJECT, ARRAY_A, ARRAY_N" ); 1826 1829 } … … 1900 1903 } 1901 1904 } 1902 1905 return $new_array; 1906 } elseif ( strtoupper( $output ) === OBJECT ) { 1907 // Back compat for OBJECT being previously case insensitive. 1908 return $this->last_result; 1903 1909 } 1904 1910 return null; 1905 1911 }