From 65e67aeaa594a85f43e92d81ae23f1f5a89b7ca6 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 3 May 2018 09:26:27 +0000 Subject: [PATCH] Privacy: fix displaying of messages during personal data erasure. Props allendav. Merges [43139] to the 4.9 branch. Fixes #43943. Built from https://develop.svn.wordpress.org/branches/4.9@43140 git-svn-id: http://core.svn.wordpress.org/branches/4.9@42969 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/js/xfn.js | 2 +- wp-admin/js/xfn.min.js | 2 +- wp-includes/version.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/js/xfn.js b/wp-admin/js/xfn.js index 19f107e803..515c92dacf 100644 --- a/wp-admin/js/xfn.js +++ b/wp-admin/js/xfn.js @@ -162,7 +162,7 @@ jQuery( document ).ready( function( $ ) { classes = 'notice-warning'; } } - appendResultsAfterRow( $requestRow, 'notice-success', summaryMessage, [] ); + appendResultsAfterRow( $requestRow, 'notice-success', summaryMessage, messages ); } function on_erasure_failure() { diff --git a/wp-admin/js/xfn.min.js b/wp-admin/js/xfn.min.js index 6382fcedf3..1a1631d848 100644 --- a/wp-admin/js/xfn.min.js +++ b/wp-admin/js/xfn.min.js @@ -1 +1 @@ -jQuery(document).ready(function(a){a("#link_rel").prop("readonly",!0),a("#linkxfndiv input").bind("click keyup",function(){var b=a("#me").is(":checked"),c="";a("input.valinp").each(function(){b?a(this).prop("disabled",!0).parent().addClass("disabled"):(a(this).removeAttr("disabled").parent().removeClass("disabled"),a(this).is(":checked")&&""!==a(this).val()&&(c+=a(this).val()+" "))}),a("#link_rel").val(b?"me":c.substr(0,c.length-1))})}),jQuery(document).ready(function(a){function b(a,b){a.children().hide(),a.children("."+b).show()}function c(a){a.next().hasClass("request-results")&&a.next().remove()}function d(b,d,e,f){c(b);var g="";f.length&&(a.each(f,function(a,b){g=g+"
  • "+b+"
  • "}),g=""),b.after(function(){return'

    '+e+"

    "+g+"
    "})}var e=window.privacyToolsL10n||{};a(".export_personal_data a").click(function(f){function g(a){b(k,"export_personal_data_success"),"undefined"!=typeof a?window.location=a:p||h(e.noExportFile)}function h(a){b(k,"export_personal_data_failed"),a&&d(l,"notice-error",e.exportError,[a])}function i(b,c){a.ajax({url:window.ajaxurl,data:{action:"wp-privacy-export-personal-data",exporter:b,id:m,page:c,security:n,sendAsEmail:p},method:"post"}).done(function(a){if(!a.success)return void h(a.data);var d=a.data;d.done?b"+b+""}),g=""),b.after(function(){return'

    '+e+"

    "+g+"
    "})}var e=window.privacyToolsL10n||{};a(".export_personal_data a").click(function(f){function g(a){b(k,"export_personal_data_success"),"undefined"!=typeof a?window.location=a:p||h(e.noExportFile)}function h(a){b(k,"export_personal_data_failed"),a&&d(l,"notice-error",e.exportError,[a])}function i(b,c){a.ajax({url:window.ajaxurl,data:{action:"wp-privacy-export-personal-data",exporter:b,id:m,page:c,security:n,sendAsEmail:p},method:"post"}).done(function(a){if(!a.success)return void h(a.data);var d=a.data;d.done?b