Changeset 21597 for trunk/wp-includes/deprecated.php
- Timestamp:
- 08/23/2012 08:01:10 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/deprecated.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/deprecated.php
r21568 r21597 27 27 _deprecated_function( __FUNCTION__, '1.5.1', 'get_post()' ); 28 28 29 $post = &get_post($postid);29 $post = get_post($postid); 30 30 31 31 $postdata = array ( … … 1893 1893 _deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_link()' ); 1894 1894 $id = (int) $id; 1895 $_post = &get_post($id);1895 $_post = get_post($id); 1896 1896 1897 1897 if ( ('attachment' != $_post->post_type) || !$url = wp_get_attachment_url($_post->ID) ) … … 1922 1922 _deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_image_src()' ); 1923 1923 $id = (int) $id; 1924 if ( !$post = &get_post($id) )1924 if ( !$post = get_post($id) ) 1925 1925 return false; 1926 1926 … … 1967 1967 _deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_image()' ); 1968 1968 $id = (int) $id; 1969 if ( !$post = &get_post($id) )1969 if ( !$post = get_post($id) ) 1970 1970 return false; 1971 1971 … … 2024 2024 _deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_image()' ); 2025 2025 $id = (int) $id; 2026 if ( !$post = &get_post($id) )2026 if ( !$post = get_post($id) ) 2027 2027 return false; 2028 2028 … … 2802 2802 2803 2803 if ( ! empty( $GLOBALS['post'] ) && ! empty( $GLOBALS['post']->post_parent ) ) 2804 $post = &get_post($GLOBALS['post']->post_parent);2804 $post = get_post($GLOBALS['post']->post_parent); 2805 2805 2806 2806 if ( empty($post) )
Note: See TracChangeset
for help on using the changeset viewer.