What does wp-list.js do?

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 461 should be:

    $id = isset ( $_POST['id'] ) ? (int) $_POST['id'] : 0;

But at least you can test what the code really does in a reduced example.

enter image description here

The readable code for the file is in wp-includes/js/wp-lists.dev.js.

Leave a Comment