From b464b01c7e82df367be344ff03cab5c9c8671fda Mon Sep 17 00:00:00 2001 From: Eric Lewis Date: Sat, 9 Jan 2016 00:05:26 +0000 Subject: [PATCH] Add documentation for parseData() and ajaxDel() in wp-lists.js. Fixes #35360. Built from https://develop.svn.wordpress.org/trunk@36229 git-svn-id: http://core.svn.wordpress.org/trunk@36196 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/wp-lists.js | 14 ++++++++++++++ wp-includes/version.php | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/wp-includes/js/wp-lists.js b/wp-includes/js/wp-lists.js index f31db9b556..bf34b8c4b9 100644 --- a/wp-includes/js/wp-lists.js +++ b/wp-includes/js/wp-lists.js @@ -22,6 +22,13 @@ wpList = { return s.nonce || url._ajax_nonce || $('#' + s.element + ' input[name="_ajax_nonce"]').val() || url._wpnonce || $('#' + s.element + ' input[name="_wpnonce"]').val() || 0; }, + /** + * Extract list item data from a DOM element. + * + * @param {HTMLElement} e The DOM element. + * @param {string} t + * @return {array} + */ parseData: function(e,t) { var d = [], wpListsData; @@ -145,6 +152,13 @@ wpList = { return false; }, + /** + * Delete an item in the list via AJAX. + * + * @param {HTMLElement} e A DOM element containing item data. + * @param {Object} s + * @return {boolean} + */ ajaxDel: function( e, s ) { e = $(e); s = s || {}; diff --git a/wp-includes/version.php b/wp-includes/version.php index f5c21453ae..2d685309aa 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36228'; +$wp_version = '4.5-alpha-36229'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.