Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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!

share|improve this question

1 Answer 1

up vote 5 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.