Ticket #22957: 22957.diff
File 22957.diff, 1.1 KB (added by , 11 years ago) |
---|
-
wp-includes/link-template.php
1303 1303 * @return object 1304 1304 */ 1305 1305 function get_boundary_post( $in_same_cat = false, $excluded_categories = '', $start = true ) { 1306 $post = get_post();1307 if ( ! $post || ! is_single() || is_attachment() )1308 return null;1309 1310 1306 $cat_array = array(); 1311 1307 if( ! is_array( $excluded_categories ) ) 1312 1308 $excluded_categories = explode( ',', $excluded_categories ); -
wp-includes/deprecated.php
2719 2719 */ 2720 2720 function get_boundary_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '', $start = true) { 2721 2721 _deprecated_function( __FUNCTION__, '3.3' ); 2722 $post = get_post(); 2723 if ( ! $post || ! is_single() || is_attachment() ) 2724 return null; 2722 2725 2723 2726 $posts = get_boundary_post($in_same_cat, $excluded_categories, $start); 2724 2727 // If there is no post stop.