Update WP and plugins

This commit is contained in:
Oliver Davies 2019-04-16 20:56:22 +01:00
parent 10a4713229
commit 1fb77fc4ff
864 changed files with 101724 additions and 78262 deletions

View file

@ -1,21 +1,21 @@
/* global ajaxurl, attachMediaBoxL10n, _wpMediaGridSettings, showNotice */
/**
* @summary Creates a dialog containing posts that can have a particular media attached to it.
* Creates a dialog containing posts that can have a particular media attached
* to it.
*
* @since 2.7.0
* @output wp-admin/js/media.js
*
* @global
* @namespace
* @namespace findPosts
*
* @requires jQuery
*/
var findPosts;
/* global ajaxurl, attachMediaBoxL10n, _wpMediaGridSettings, showNotice, findPosts */
( function( $ ){
findPosts = {
window.findPosts = {
/**
* @summary Opens a dialog to attach media to a post.
* Opens a dialog to attach media to a post.
*
* Adds an overlay prior to retrieving a list of posts to attach the media to.
*
@ -59,7 +59,7 @@ var findPosts;
},
/**
* @summary Clears the found posts lists before hiding the attach media dialog.
* Clears the found posts lists before hiding the attach media dialog.
*
* @since 2.7.0
*
@ -74,7 +74,8 @@ var findPosts;
},
/**
* @summary Binds a click event listener to the overlay which closes the attach media dialog.
* Binds a click event listener to the overlay which closes the attach media
* dialog.
*
* @since 3.5.0
*
@ -89,10 +90,11 @@ var findPosts;
},
/**
* @summary Retrieves and displays posts based on the search term.
* Retrieves and displays posts based on the search term.
*
* Sends a post request to the admin_ajax.php, requesting posts based on the search term provided by the user.
* Defaults to all posts if no search term is provided.
* Sends a post request to the admin_ajax.php, requesting posts based on the
* search term provided by the user. Defaults to all posts if no search term is
* provided.
*
* @since 2.7.0
*
@ -111,8 +113,8 @@ var findPosts;
spinner.addClass( 'is-active' );
/**
* Send a POST request to admin_ajax.php, hide the spinner and replace the list of posts with the response data.
* If an error occurs, display it.
* Send a POST request to admin_ajax.php, hide the spinner and replace the list
* of posts with the response data. If an error occurs, display it.
*/
$.ajax( ajaxurl, {
type: 'POST',
@ -133,7 +135,8 @@ var findPosts;
};
/**
* @summary Initializes the file once the DOM is fully loaded and attaches events to the various form elements.
* Initializes the file once the DOM is fully loaded and attaches events to the
* various form elements.
*
* @returns {void}
*/
@ -193,7 +196,7 @@ var findPosts;
});
/**
* @summary Enables clicking on the entire table row.
* Enables clicking on the entire table row.
*
* @returns {void}
*/