Changeset 27377
- Timestamp:
- 03/03/2014 05:35:12 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/wp-db.php
r27369 r27377 18 18 * @since 0.71 19 19 */ 20 define( 'OBJECT', 'OBJECT', true ); 20 define( 'OBJECT', 'OBJECT' ); 21 define( 'object', 'OBJECT' ); // Back compat. 21 22 22 23 /** … … 1822 1823 } elseif ( $output == ARRAY_N ) { 1823 1824 return $this->last_result[$y] ? array_values( get_object_vars( $this->last_result[$y] ) ) : null; 1825 } elseif ( strtoupper( $output ) === OBJECT ) { 1826 // Back compat for OBJECT being previously case insensitive. 1827 return $this->last_result[$y] ? $this->last_result[$y] : null; 1824 1828 } else { 1825 1829 $this->print_error( " \$db->get_row(string query, output type, int offset) -- Output type must be one of: OBJECT, ARRAY_A, ARRAY_N" ); … … 1901 1905 } 1902 1906 return $new_array; 1907 } elseif ( strtoupper( $output ) === OBJECT ) { 1908 // Back compat for OBJECT being previously case insensitive. 1909 return $this->last_result; 1903 1910 } 1904 1911 return null;
Note: See TracChangeset
for help on using the changeset viewer.