Pretty straightforward question!
What does wp-list.js do?
It’s listed in the wp_enqueue_script codex page as one of the WP included javascript libraries.
Thanks!
Pretty straightforward question!
What does wp-list.js do?
It’s listed in the wp_enqueue_script codex page as one of the WP included javascript libraries.
Thanks!
This file is for list manipulations with jQuery: add, delete or dim list items. It was introduced in Ticket #4805 to replace some prototype code.
Attached to the ticket is a sample plugin which holds the actual documentation. It doesn’t work really good … line 46Best Answerhould be:
$id = isset ( $_POST['id'] ) ? (int) $_POST['id'] : 0;
But at least you can test what the code really does in a reduced example.
The readable code for the file is in wp-includes/js/wp-lists.dev.js
.