Internal linking cleanups. Fix combination of pagination and searching. Add a margin of error (ha, get it?) to triggering the river. props koopersmith, see #11420.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16479 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin
2010-11-19 05:31:07 +00:00
parent 7cb2ad6d3a
commit 8233e4f6b5
7 changed files with 145 additions and 133 deletions

View File

@@ -1078,8 +1078,8 @@ case 'wp-link-ajax':
$args = array();
if ( isset( $_POST['title'] ) )
$args['s'] = stripslashes( $_POST['title'] );
if ( isset( $_POST['search'] ) )
$args['s'] = stripslashes( $_POST['search'] );
$args['pagenum'] = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1;
$results = wp_link_query( $args );