Update #range-min
if low value is adjusted.
#15
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What was changed
When the slider low value is changed, the
#range-min
number input is now updated.Steps to reproduce the issue
Expected behavior
The request sent to the server should have a
start
value that is 1 less than the "Post range:"range-min
input field.If the post range
range-min
displayed value is 5, then the first item displayed should be the 5th item in the category.Actual behavior
The request sent to the server has
start
set to the same value as the "Post range:"range-min
input field.If the post range
range-min
displayed value is 5, then the first item displayed is the 6th item in the category.The
range-min
that is displayed to the user starts counting from 1. Theget_more_posts
ajax action and the_get_order()
function start counting from 0.If items are reordered, the last item is duplicated in the
wp_postmeta
database table. This causes future reordering attempts to fail and the following error to be sent to the PHP log.WordPress database error Unknown column 'undefined' in 'field list' for query REPLACE INTO wp_postmeta ...
This fixes issue #12.
This probably addresses review Used to Work.