diff --git a/includes/class-syndication-wp-xml-client.php b/includes/class-syndication-wp-xml-client.php index 9c5ae36a701c58859e3c32a1dc93deb5aaafc2fa..7e5cdaf6bfc9ad9a3b03ee132cd0a8b87e64e3b3 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' ) );