From d0b6778654c5369a6265edd4d13436fb63eca355 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 10 Jul 2020 21:13:25 +0000 Subject: [PATCH] Docs: Improve description for the JS function that hides the update button for expired plugin or theme uploads. Add missing `@since` tag. Follow-up to [48417]. See #50612. git-svn-id: https://develop.svn.wordpress.org/trunk@48427 602fd350-edb4-49c9-b593-d223f7449a82 --- src/js/_enqueues/admin/common.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/js/_enqueues/admin/common.js b/src/js/_enqueues/admin/common.js index 7265ae4612..556c02ef7e 100644 --- a/src/js/_enqueues/admin/common.js +++ b/src/js/_enqueues/admin/common.js @@ -1606,8 +1606,14 @@ $document.ready( function() { }); }); -// On the "Update plugin/theme from uploaded zip" screen -// hide the "Replace current with uploaded" button and show a warning in 1 hour and 59 minutes. +/** + * Hides the update button for expired plugin or theme uploads. + * + * On the "Update plugin/theme from uploaded zip" screen, once the upload has expired, + * hides the "Replace current with uploaded" button and displays a warning. + * + * @since 5.5.0 + */ $document.ready( function( $ ) { var $overwrite, $warning;