Changeset 21597 for trunk/wp-includes/link-template.php
- Timestamp:
- 08/23/2012 08:01:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r21596 r21597 97 97 $sample = true; 98 98 } else { 99 $post = &get_post($id);99 $post = get_post($id); 100 100 $sample = false; 101 101 } … … 179 179 global $wp_rewrite; 180 180 181 $post = &get_post($id);181 $post = get_post($id); 182 182 183 183 if ( is_wp_error( $post ) ) … … 896 896 */ 897 897 function get_edit_post_link( $id = 0, $context = 'display' ) { 898 if ( !$post = &get_post( $id ) )898 if ( !$post = get_post( $id ) ) 899 899 return; 900 900 … … 925 925 */ 926 926 function edit_post_link( $link = null, $before = '', $after = '', $id = 0 ) { 927 if ( !$post = &get_post( $id ) )927 if ( !$post = get_post( $id ) ) 928 928 return; 929 929 … … 955 955 _deprecated_argument( __FUNCTION__, '3.0' ); 956 956 957 if ( !$post = &get_post( $id ) )957 if ( !$post = get_post( $id ) ) 958 958 return; 959 959 … … 1202 1202 function get_adjacent_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '', $previous = true) { 1203 1203 if ( $previous && is_attachment() && is_object( $GLOBALS['post'] ) ) 1204 $post = &get_post($GLOBALS['post']->post_parent);1204 $post = get_post($GLOBALS['post']->post_parent); 1205 1205 else 1206 1206 $post = get_adjacent_post($in_same_cat,$excluded_categories,$previous); … … 1367 1367 function adjacent_post_link($format, $link, $in_same_cat = false, $excluded_categories = '', $previous = true) { 1368 1368 if ( $previous && is_attachment() ) 1369 $post = &get_post($GLOBALS['post']->post_parent);1369 $post = get_post($GLOBALS['post']->post_parent); 1370 1370 else 1371 1371 $post = get_adjacent_post($in_same_cat, $excluded_categories, $previous);
Note: See TracChangeset
for help on using the changeset viewer.