Changeset 3092 for trunk/wp-includes/functions.php
- Timestamp:
- 11/15/2005 10:55:24 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r3071 r3092 1398 1398 } 1399 1399 1400 function is_ subpost () {1401 global $wp_query; 1402 1403 return $wp_query->is_ subpost;1400 function is_attachment () { 1401 global $wp_query; 1402 1403 return $wp_query->is_attachment; 1404 1404 } 1405 1405 … … 1895 1895 } 1896 1896 1897 function get_ subpost_template() {1897 function get_attachment_template() { 1898 1898 global $posts; 1899 $type = explode('/', $posts[0]->post_ type);1899 $type = explode('/', $posts[0]->post_mime_type); 1900 1900 if ( $template = get_query_template($type[0]) ) 1901 1901 return $template; … … 1905 1905 return $template; 1906 1906 else 1907 return get_query_template(' subpost');1907 return get_query_template('attachment'); 1908 1908 } 1909 1909
Note: See TracChangeset
for help on using the changeset viewer.