From 0d2a3aecccb0af6c18f7a09229bbf9a3b7db65f1 Mon Sep 17 00:00:00 2001 From: Mohammad Jangda <batmoo@gmail.com> Date: Fri, 12 Apr 2013 00:51:18 -0400 Subject: [PATCH] XML Pull: for xpath, grab the last entry and clone that --- includes/class-syndication-wp-xml-client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-syndication-wp-xml-client.php b/includes/class-syndication-wp-xml-client.php index 9c5ae36..7e5cdaf 100644 --- a/includes/class-syndication-wp-xml-client.php +++ b/includes/class-syndication-wp-xml-client.php @@ -593,7 +593,7 @@ class Syndication_WP_XML_Client implements Syndication_Client { $( '.syn-pull-xpath-add-new' ).on( 'click', function( e ) { e.preventDefault(); - var $last_form = $( '.syn-xml-client-xpath-form:first' ), + var $last_form = $( '.syn-xml-client-xpath-form:last' ), $new_form = $last_form.clone(), original_row_count = parseInt( $last_form.attr( 'data-row-count' ) ); -- GitLab