WordPress を post した author 別取ってくる様に無理矢理変更

~/wordpress/wp-includes/link-template.php の get_adjacent_post() の下記の部分を

	$where = apply_filters( "get_{$adjacent}_post_where", $wpdb->prepare("WHERE p.post_date $op %s AND p.post_type = 'post' AND p.post_status = 'publish' $posts_in_ex_cats_sql", $current_post_date), $in_same_cat, $excluded_categories );

下記に変更

	$where = apply_filters( "get_{$adjacent}_post_where", $wpdb->prepare("WHERE p.post_date $op %s AND p.post_type = 'post' AND p.post_status = 'publish' $posts_in_ex_cats_sql AND p.post_author = " . $post->post_author, $current_post_date), $in_same_cat, $excluded_categories);


post した author 別に取って来れる様になりました。


でも support していても良い様なもんなのにな〜。
$excluded_categories って言う引数はあるけど、どうも categorie で絞り込む様だから、これではなさそうだな。


mimic28号でした。