Added dependency plugins
This commit is contained in:
1
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/css/plugin-update-styles.css
vendored
Normal file
1
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/css/plugin-update-styles.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.check-licence-spinner{left:5px;position:relative;top:2px;margin-bottom:-2px;width:16px;height:16px}.wpmdb-original-update-row{display:none}.plugin-update-tr.wpmdbpro-custom-visible .update-message.pre-shiny-updates,.plugin-update-tr.wpmdbpro-custom .update-message.pre-shiny-updates{padding-left:40px}.plugin-update-tr.wpmdbpro-custom-visible .update-message.pre-shiny-updates::before,.plugin-update-tr.wpmdbpro-custom .update-message.pre-shiny-updates::before{margin-left:-30px;float:left}.plugin-update-tr.wpmdbpro-custom-visible .update-message.pre-shiny-updates p,.plugin-update-tr.wpmdbpro-custom .update-message.pre-shiny-updates p{display:inline-block;margin:0}.plugin-update-tr.wpmdbpro-custom-visible .update-message.pre-shiny-updates span,.plugin-update-tr.wpmdbpro-custom .update-message.pre-shiny-updates span{display:block}.plugin-update-tr.wpmdbpro-custom-visible .update-message.post-shiny-updates p::before,.plugin-update-tr.wpmdbpro-custom .update-message.post-shiny-updates p::before{position:absolute}.plugin-update-tr.wpmdbpro-custom-visible .update-message.post-shiny-updates p span,.plugin-update-tr.wpmdbpro-custom .update-message.post-shiny-updates p span{margin-left:30px;display:block}.plugins #the-list tr.wpmdbpro-has-message td,.plugins #the-list tr.wpmdbpro-has-message th{box-shadow:none;-webkit-box-shadow:none}
|
||||
1
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/css/styles.css
vendored
Normal file
1
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/css/styles.css
vendored
Normal file
File diff suppressed because one or more lines are too long
8
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/img/icon-cli.svg
vendored
Normal file
8
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/img/icon-cli.svg
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
width="412px" height="365px" viewBox="0 0 412 365" enable-background="new 0 0 412 365" xml:space="preserve">
|
||||
<path id="window-command-icon" fill="#dddddd" d="M0,0v365h412V0H0z M362,315H50V97h312V315z M191.458,206.895l-75.999,76.397
|
||||
L87.998,255.96l48.801-49.065L87.93,157.761l27.461-27.329L191.458,206.895z M326,244.027H212.5v38H326V244.027z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 721 B |
13
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/img/icon-media-files.svg
vendored
Normal file
13
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/img/icon-media-files.svg
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
width="412px" height="318.25px" viewBox="0 0 412 318.25" enable-background="new 0 0 412 318.25" xml:space="preserve">
|
||||
<path id="photo-camera-4-icon" fill="#FFFFFF" d="M289.652,180.604c0,29.392-23.909,53.3-53.3,53.3
|
||||
c-29.39,0-53.297-23.908-53.297-53.3c0-29.389,23.909-53.296,53.297-53.296C265.742,127.307,289.652,151.215,289.652,180.604z
|
||||
M412,51.25v267H0v-267h113.219c11.253,0,21.56-6.297,26.694-16.31L157.832,0h153.665l19.819,35.785
|
||||
c5.284,9.543,15.335,15.465,26.242,15.465H412z M104.831,109.5c0-11.322-9.178-20.5-20.5-20.5c-11.322,0-20.5,9.178-20.5,20.5
|
||||
s9.178,20.5,20.5,20.5C95.653,130,104.831,120.822,104.831,109.5z M335.5,180.604c0-54.667-44.477-96.854-99.146-96.854
|
||||
c-54.667,0-99.146,42.185-99.146,96.854c0,54.671,44.477,99.146,99.146,99.146C291.023,279.75,335.5,235.273,335.5,180.604z
|
||||
M92.331,7.75h-65.5v27h65.5V7.75z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
28
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/img/icon-multisite-tools.svg
vendored
Normal file
28
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/img/icon-multisite-tools.svg
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
width="14em" height="15em" viewBox="64.684 51 382.628 410" enable-background="new 64.684 51 382.628 410"
|
||||
xml:space="preserve">
|
||||
<path id="network-6-icon" fill="#ffffff" d="M225.741,122.262c-10.096-4.89-19.027-8.84-27.496-12.287C211.636,74.43,230.974,51,256.001,51
|
||||
c24.381,0,43.363,22.232,56.707,56.239c-8.562,3.61-17.354,7.632-27.344,12.62C275.139,93.088,263.473,81,256.001,81
|
||||
C248.31,81,236.177,93.811,225.741,122.262z M256.001,431c-7.471,0-19.135-12.088-29.361-38.859
|
||||
c-10.084,5.035-18.803,9.016-27.346,12.62C212.64,438.767,231.62,461,256.001,461c25.028,0,44.365-23.43,57.758-58.974
|
||||
c-8.438-3.437-17.34-7.367-27.495-12.288C275.827,418.19,263.691,431,256.001,431z M174.112,393.154
|
||||
c-33.35,12.045-83.111,23.779-102.887-5.42c-9.77-14.428-13.416-42.164,24.695-92.377c10.111-13.321,21.816-26.407,33.689-38.418
|
||||
c26.635-26.545,56.641-52.097,95.738-78.553c-18.822-10.192-39.367-19.936-59.412-27.187c-20.52-7.424-38.586-11.535-52.428-11.535
|
||||
c-8.842,0-15.404,1.843-17.553,4.93c-2.285,3.281-2.398,13.373,7.744,31.476c1.201-0.132,2.418-0.206,3.652-0.206
|
||||
c18.225,0,33,14.775,33,33c0,18.227-14.775,33-33,33s-33-14.773-33-33c0-5.902,1.559-11.439,4.273-16.233
|
||||
c-19.311-33.481-15.328-53.631-7.291-65.177c5.648-8.115,17.551-17.789,42.174-17.789c43.723,0,102.635,28.356,140.564,50.322
|
||||
C292.58,136.708,353.492,106,398.49,106c24.723,0,36.639,9.932,42.281,18.264c9.77,14.428,13.416,42.164-24.693,92.377
|
||||
C362.44,287.316,255.792,363.652,174.112,393.154z M392.185,198.504c26.183-34.497,26.984-52.643,23.75-57.418
|
||||
c-2.188-3.232-8.545-5.086-17.44-5.086c-33.951,0-85.664,24.93-115.436,41.803c21.981,14.287,42.518,29.346,61.239,44.701
|
||||
c-7.084,7.058-14.51,13.981-22.102,20.68c-20.783-16.807-43.886-33.264-67.833-48.011c-27.5,17.708-55.186,38.509-80.055,60.672
|
||||
c18.705,16.243,40.973,33.295,64.725,49.076c-9.086,5.654-18.26,11.073-28.729,16.744c-0.004-0.003-0.006-0.005-0.01-0.007
|
||||
c-0.078-0.055-0.154-0.109-0.232-0.164c-19.885-13.854-39.51-29.055-57.662-44.965c-49.02,49.168-62.828,84.795-56.336,94.383
|
||||
c2.189,3.232,8.549,5.088,17.443,5.088c40.871,0,105.748-34.459,144.129-59.173C304.759,286.484,358.495,242.895,392.185,198.504z
|
||||
M433.524,319.63c2.44-4.604,3.829-9.854,3.829-15.432c0-18.226-14.774-33-33-33c-18.225,0-33,14.774-33,33
|
||||
c0,18.227,14.775,33,33,33c1.521,0,3.017-0.112,4.48-0.312c9.611,17.505,9.453,27.296,7.209,30.519
|
||||
c-2.148,3.087-8.709,4.93-17.551,4.93c-27.856,0-66.664-16.141-91.65-28.324c-8.357,5.84-18.73,12.77-28.846,19.122
|
||||
c33.494,17.718,82.752,39.202,120.496,39.202c24.621,0,36.522-9.674,42.172-17.788C448.683,373.029,452.663,352.955,433.524,319.63z
|
||||
"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.8 KiB |
BIN
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/img/mor10.png
vendored
Normal file
BIN
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/img/mor10.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
BIN
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/img/mor10@2x.png
vendored
Normal file
BIN
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/img/mor10@2x.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.8 KiB |
BIN
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/img/welcome.jpg
vendored
Normal file
BIN
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/img/welcome.jpg
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
195
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/js/common-172.js
vendored
Normal file
195
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/js/common-172.js
vendored
Normal file
@@ -0,0 +1,195 @@
|
||||
// global vars
|
||||
var wpmdb = wpmdb || {};
|
||||
wpmdb.common = {
|
||||
hooks: [],
|
||||
call_stack: [],
|
||||
non_fatal_errors: '',
|
||||
migration_error: false
|
||||
};
|
||||
wpmdb.functions = {};
|
||||
|
||||
/**
|
||||
* Toggle proper translated strings based on migration type selected.
|
||||
*
|
||||
* To show the properly translated strings for the selected push or pull
|
||||
* migration type, we need to hide all strings then show the right
|
||||
* translated strings based on the migration type selected.
|
||||
*
|
||||
* @see https://github.com/deliciousbrains/wp-migrate-db-pro/issues/764
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function wpmdb_toggle_migration_action_text() {
|
||||
jQuery( '.action-text' ).hide();
|
||||
jQuery( '.action-text.' + jQuery( 'input[name=action]:checked' ).val() ).show();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the currently selected migration type selected.
|
||||
*
|
||||
* @return string Will return `push`, `pull`, `savefile`, or `` for exporting as a file.
|
||||
*/
|
||||
function wpmdb_migration_type() {
|
||||
var action = jQuery( 'input[name=action]:checked' );
|
||||
if ( 0 === action.length ) {
|
||||
return '';
|
||||
}
|
||||
return action.val();
|
||||
}
|
||||
|
||||
function wpmdb_call_next_hook() {
|
||||
if ( !wpmdb.common.call_stack.length ) {
|
||||
wpmdb.common.call_stack = wpmdb.common.hooks;
|
||||
}
|
||||
|
||||
var func = wpmdb.common.call_stack[ 0 ];
|
||||
wpmdb.common.call_stack.shift();
|
||||
func.call( this );
|
||||
}
|
||||
|
||||
function wpmdb_add_commas( number_string ) {
|
||||
number_string += '';
|
||||
var number_parts = number_string.split( '.' );
|
||||
var integer = number_parts[ 0 ];
|
||||
var decimal = 1 < number_parts.length ? '.' + number_parts[ 1 ] : '';
|
||||
var rgx = /(\d+)(\d{3})/;
|
||||
while ( rgx.test( integer ) ) {
|
||||
integer = integer.replace( rgx, '$1' + ',' + '$2' );
|
||||
}
|
||||
return integer + decimal;
|
||||
}
|
||||
|
||||
function wpmdb_parse_json( maybe_json ) {
|
||||
var json_object = {};
|
||||
try {
|
||||
json_object = jQuery.parseJSON( maybe_json );
|
||||
}
|
||||
catch ( e ) {
|
||||
|
||||
// We simply return false here because the json data itself will never just contain a value of "false"
|
||||
return false;
|
||||
}
|
||||
return json_object;
|
||||
}
|
||||
|
||||
/**
|
||||
* Global error method for detecting PHP or other errors in AJAX response
|
||||
*
|
||||
* @param title - the error title if not a PHP error
|
||||
* @param code - the error code if not a PHP error
|
||||
* @param text - the AJAX response text to sniff for errors
|
||||
* @param jqXHR - optional AJAX object used to enrich the error message
|
||||
*
|
||||
* @returns {string} - html error string with view error toggle element
|
||||
*/
|
||||
function wpmdbGetAjaxErrors( title, code, text, jqXHR ) {
|
||||
var jsonErrors = false;
|
||||
var html = '';
|
||||
|
||||
var validJson = wpmdb_parse_json( text );
|
||||
if ( false === validJson ) {
|
||||
jsonErrors = true;
|
||||
title = wpmdb_strings.ajax_json_message;
|
||||
code = '(#144)';
|
||||
var originalText = text;
|
||||
text = wpmdb_strings.ajax_json_errors + ' ' + code;
|
||||
text += '<br><a class="show-errors-toggle" href="#">' + wpmdb_strings.view_error_messages + '</a> ';
|
||||
text += '<div class="migration-php-errors">' + originalText + '</div>';
|
||||
}
|
||||
|
||||
// Only add local connection issue if php errors (#144) or jqXHR has been provided
|
||||
if ( jsonErrors || 'undefined' !== jqXHR ) {
|
||||
html += '<strong>' + title + '</strong>' + ' — ';
|
||||
}
|
||||
|
||||
// Only add extra error details if not php errors (#144) and jqXHR has been provided
|
||||
if ( !jsonErrors && 'undefined' !== jqXHR ) {
|
||||
html += wpmdb_strings.status + ': ' + jqXHR.status + ' ' + jqXHR.statusText;
|
||||
html += '<br /><br />' + wpmdb_strings.response + ':<br />';
|
||||
}
|
||||
|
||||
// Add code to the end of the error text if not json errors
|
||||
if ( !jsonErrors ) {
|
||||
text += ' ' + code;
|
||||
}
|
||||
|
||||
// Finally add the error message to the output
|
||||
html += text;
|
||||
|
||||
return html;
|
||||
}
|
||||
|
||||
wpmdb.preg_quote = function( str, delimiter ) {
|
||||
|
||||
// discuss at: http://phpjs.org/functions/preg_quote/
|
||||
// original by: booeyOH
|
||||
// improved by: Ates Goral (http://magnetiq.com)
|
||||
// improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
|
||||
// improved by: Brett Zamir (http://brett-zamir.me)
|
||||
// bugfixed by: Onno Marsman
|
||||
// example 1: preg_quote("$40");
|
||||
// returns 1: '\\$40'
|
||||
// example 2: preg_quote("*RRRING* Hello?");
|
||||
// returns 2: '\\*RRRING\\* Hello\\?'
|
||||
// example 3: preg_quote("\\.+*?[^]$(){}=!<>|:");
|
||||
// returns 3: '\\\\\\.\\+\\*\\?\\[\\^\\]\\$\\(\\)\\{\\}\\=\\!\\<\\>\\|\\:'
|
||||
|
||||
return String( str )
|
||||
.replace( new RegExp( '[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\' + ( delimiter || '' ) + '-]', 'g' ), '\\$&' );
|
||||
};
|
||||
|
||||
wpmdb.table_is = function( table_prefix, desired_table, given_table ) {
|
||||
if ( ( table_prefix + desired_table ).toLowerCase() === given_table.toLowerCase() ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
var escaped_given_table = wpmdb.preg_quote( given_table );
|
||||
var regex = new RegExp( table_prefix + '([0-9]+)_' + desired_table, 'i' );
|
||||
var results = regex.exec( escaped_given_table );
|
||||
return null != results;
|
||||
};
|
||||
|
||||
wpmdb.subsite_for_table = function( table_prefix, table_name ) {
|
||||
var escaped_table_name = wpmdb.preg_quote( table_name );
|
||||
var regex = new RegExp( table_prefix + '([0-9]+)_', 'i' );
|
||||
var results = regex.exec( escaped_table_name );
|
||||
|
||||
if ( null === results ) {
|
||||
return 1;
|
||||
} else {
|
||||
return results[ 1 ];
|
||||
}
|
||||
};
|
||||
|
||||
wpmdb.functions.convertKBSizeToHR = function( size, dec, kbSize, retArray ) {
|
||||
var retVal, units;
|
||||
kbSize = kbSize || 1000;
|
||||
dec = dec || 2;
|
||||
size = parseInt( size );
|
||||
|
||||
if ( kbSize > Math.abs( size ) ) {
|
||||
retVal = [ size.toFixed( 0 ), 'KB' ];
|
||||
} else {
|
||||
units = [ 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB' ];
|
||||
var u = -1;
|
||||
do {
|
||||
size /= kbSize;
|
||||
++u;
|
||||
} while ( Math.abs( size ) >= kbSize && u < units.length - 1 );
|
||||
retVal = [ Math.round( size * Math.pow( 10, dec ) ) / Math.pow( 10, dec ), units[ u ] ];
|
||||
}
|
||||
|
||||
if ( ! retArray ) {
|
||||
retVal = retVal[0] + ' ' + retVal[1];
|
||||
}
|
||||
return retVal;
|
||||
};
|
||||
|
||||
wpmdb.functions.convertKBSizeToHRFixed = function( size, dec, kbSize ) {
|
||||
dec = dec || 2;
|
||||
var hrSizeArray = wpmdb.functions.convertKBSizeToHR( size, dec, kbSize, true );
|
||||
if ( 'KB' !== hrSizeArray[1] ) {
|
||||
return hrSizeArray[ 0 ].toFixed( 2 ) + ' ' + hrSizeArray[ 1 ];
|
||||
}
|
||||
return hrSizeArray[ 0 ] + ' ' + hrSizeArray[ 1 ];
|
||||
};
|
||||
1
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/js/common-172.min.js
vendored
Normal file
1
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/js/common-172.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
function wpmdb_toggle_migration_action_text(){jQuery(".action-text").hide(),jQuery(".action-text."+jQuery("input[name=action]:checked").val()).show()}function wpmdb_migration_type(){var a=jQuery("input[name=action]:checked");return 0===a.length?"":a.val()}function wpmdb_call_next_hook(){wpmdb.common.call_stack.length||(wpmdb.common.call_stack=wpmdb.common.hooks);var a=wpmdb.common.call_stack[0];wpmdb.common.call_stack.shift(),a.call(this)}function wpmdb_add_commas(a){a+="";for(var b=a.split("."),c=b[0],d=1<b.length?"."+b[1]:"",e=/(\d+)(\d{3})/;e.test(c);)c=c.replace(e,"$1,$2");return c+d}function wpmdb_parse_json(a){var b={};try{b=jQuery.parseJSON(a)}catch(a){return!1}return b}function wpmdbGetAjaxErrors(a,b,c,d){var e=!1,f="",g=wpmdb_parse_json(c);if(!1===g){e=!0,a=wpmdb_strings.ajax_json_message,b="(#144)";var h=c;c=wpmdb_strings.ajax_json_errors+" "+b,c+='<br><a class="show-errors-toggle" href="#">'+wpmdb_strings.view_error_messages+"</a> ",c+='<div class="migration-php-errors">'+h+"</div>"}return(e||"undefined"!==d)&&(f+="<strong>"+a+"</strong> — "),e||"undefined"===d||(f+=wpmdb_strings.status+": "+d.status+" "+d.statusText,f+="<br /><br />"+wpmdb_strings.response+":<br />"),e||(c+=" "+b),f+=c}var wpmdb=wpmdb||{};wpmdb.common={hooks:[],call_stack:[],non_fatal_errors:"",migration_error:!1},wpmdb.functions={},wpmdb.preg_quote=function(a,b){return String(a).replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\"+(b||"")+"-]","g"),"\\$&")},wpmdb.table_is=function(a,b,c){if((a+b).toLowerCase()===c.toLowerCase())return!0;var d=wpmdb.preg_quote(c),e=new RegExp(a+"([0-9]+)_"+b,"i"),f=e.exec(d);return null!=f},wpmdb.subsite_for_table=function(a,b){var c=wpmdb.preg_quote(b),d=new RegExp(a+"([0-9]+)_","i"),e=d.exec(c);return null===e?1:e[1]},wpmdb.functions.convertKBSizeToHR=function(a,b,c,d){var e,f;if(c=c||1e3,b=b||2,a=parseInt(a),c>Math.abs(a))e=[a.toFixed(0),"KB"];else{f=["MB","GB","TB","PB","EB","ZB","YB"];var g=-1;do a/=c,++g;while(Math.abs(a)>=c&&g<f.length-1);e=[Math.round(a*Math.pow(10,b))/Math.pow(10,b),f[g]]}return d||(e=e[0]+" "+e[1]),e},wpmdb.functions.convertKBSizeToHRFixed=function(a,b,c){b=b||2;var d=wpmdb.functions.convertKBSizeToHR(a,b,c,!0);return"KB"!==d[1]?d[0].toFixed(2)+" "+d[1]:d[0]+" "+d[1]};
|
||||
64
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/js/hook-172.js
vendored
Normal file
64
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/js/hook-172.js
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
(function( $ ) {
|
||||
|
||||
$.wpmdb = {
|
||||
/**
|
||||
* Implement a WordPress-link Hook System for Javascript
|
||||
* TODO: Change 'tag' to 'args', allow number (priority), string (tag), object (priority+tag)
|
||||
*/
|
||||
hooks: { action: {}, filter: {} },
|
||||
add_action: function( action, callable, tag ) {
|
||||
jQuery.wpmdb.add_hook( 'action', action, callable, tag );
|
||||
},
|
||||
add_filter: function( action, callable, tag ) {
|
||||
jQuery.wpmdb.add_hook( 'filter', action, callable, tag );
|
||||
},
|
||||
do_action: function( action, args ) {
|
||||
jQuery.wpmdb.do_hook( 'action', action, null, args );
|
||||
},
|
||||
apply_filters: function( action, value, args ) {
|
||||
return jQuery.wpmdb.do_hook( 'filter', action, value, args );
|
||||
},
|
||||
remove_action: function( action, tag ) {
|
||||
jQuery.wpmdb.remove_hook( 'action', action, tag );
|
||||
},
|
||||
remove_filter: function( action, tag ) {
|
||||
jQuery.wpmdb.remove_hook( 'filter', action, tag );
|
||||
},
|
||||
add_hook: function( hook_type, action, callable, tag ) {
|
||||
if ( undefined === jQuery.wpmdb.hooks[hook_type][action] ) {
|
||||
jQuery.wpmdb.hooks[hook_type][action] = [];
|
||||
}
|
||||
var hooks = jQuery.wpmdb.hooks[hook_type][action];
|
||||
if ( undefined === tag ) {
|
||||
tag = action + '_' + hooks.length;
|
||||
}
|
||||
jQuery.wpmdb.hooks[hook_type][action].push( { tag: tag, callable: callable } );
|
||||
},
|
||||
do_hook: function( hook_type, action, value, args ) {
|
||||
if ( undefined !== jQuery.wpmdb.hooks[hook_type][action] ) {
|
||||
var hooks = jQuery.wpmdb.hooks[hook_type][action];
|
||||
for ( var i = 0; i < hooks.length; i++ ) {
|
||||
if ( 'action' === hook_type ) {
|
||||
hooks[i].callable( args );
|
||||
} else {
|
||||
value = hooks[i].callable( value, args );
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( 'filter' === hook_type ) {
|
||||
return value;
|
||||
}
|
||||
},
|
||||
remove_hook: function( hook_type, action, tag ) {
|
||||
if ( undefined !== jQuery.wpmdb.hooks[hook_type][action] ) {
|
||||
var hooks = jQuery.wpmdb.hooks[hook_type][action];
|
||||
for ( var i = hooks.length - 1; 0 < i; i-- ) {
|
||||
if ( undefined === tag || tag === hooks[i].tag ) {
|
||||
hooks.splice( i, 1 );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
})( jQuery );
|
||||
1
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/js/hook-172.min.js
vendored
Normal file
1
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/js/hook-172.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
!function(a){a.wpmdb={hooks:{action:{},filter:{}},add_action:function(a,b,c){jQuery.wpmdb.add_hook("action",a,b,c)},add_filter:function(a,b,c){jQuery.wpmdb.add_hook("filter",a,b,c)},do_action:function(a,b){jQuery.wpmdb.do_hook("action",a,null,b)},apply_filters:function(a,b,c){return jQuery.wpmdb.do_hook("filter",a,b,c)},remove_action:function(a,b){jQuery.wpmdb.remove_hook("action",a,b)},remove_filter:function(a,b){jQuery.wpmdb.remove_hook("filter",a,b)},add_hook:function(a,b,c,d){void 0===jQuery.wpmdb.hooks[a][b]&&(jQuery.wpmdb.hooks[a][b]=[]);var e=jQuery.wpmdb.hooks[a][b];void 0===d&&(d=b+"_"+e.length),jQuery.wpmdb.hooks[a][b].push({tag:d,callable:c})},do_hook:function(a,b,c,d){if(void 0!==jQuery.wpmdb.hooks[a][b])for(var e=jQuery.wpmdb.hooks[a][b],f=0;f<e.length;f++)"action"===a?e[f].callable(d):c=e[f].callable(c,d);if("filter"===a)return c},remove_hook:function(a,b,c){if(void 0!==jQuery.wpmdb.hooks[a][b])for(var d=jQuery.wpmdb.hooks[a][b],e=d.length-1;0<e;e--)void 0!==c&&c!==d[e].tag||d.splice(e,1)}}}(jQuery);
|
||||
34
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/js/multisite-172.js
vendored
Normal file
34
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/js/multisite-172.js
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
var wpmdb = wpmdb || {};
|
||||
|
||||
wpmdb.multisite = {};
|
||||
|
||||
(function( $, wpmdb ) {
|
||||
wpmdb.multisite.update_multiselect = function( element, subsites, selected_subsite_ids ) {
|
||||
$( element ).empty();
|
||||
|
||||
if ( 0 < Object.keys( subsites ).length ) {
|
||||
var table_prefix = $.wpmdb.apply_filters( 'wpmdb_get_table_prefix', null, null );
|
||||
var site_selected = false;
|
||||
$.each( subsites, function( blog_id, subsite_path ) {
|
||||
if ( $.wpmdb.apply_filters( 'wpmdb_exclude_subsite', false, blog_id ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
var selected = ' ';
|
||||
if ( ( undefined === selected_subsite_ids || null === selected_subsite_ids || 0 === selected_subsite_ids.length ) ||
|
||||
( undefined !== selected_subsite_ids && null !== selected_subsite_ids && 0 < selected_subsite_ids.length && -1 !== $.inArray( blog_id, selected_subsite_ids ) )
|
||||
) {
|
||||
selected = ' selected="selected" ';
|
||||
site_selected = true;
|
||||
}
|
||||
subsite_path += ' (' + table_prefix + ( ( '1' !== blog_id ) ? blog_id + '_' : '' ) + ')';
|
||||
$( element ).append( '<option' + selected + 'value="' + blog_id + '">' + subsite_path + '</option>' );
|
||||
} );
|
||||
|
||||
// If nothing selected (maybe IDs differ between saved profile and current config) revert to default of all selected.
|
||||
if ( false === site_selected ) {
|
||||
wpmdb.multisite.update_multiselect( element, subsites, [] );
|
||||
}
|
||||
}
|
||||
};
|
||||
})( jQuery, wpmdb );
|
||||
1
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/js/multisite-172.min.js
vendored
Normal file
1
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/js/multisite-172.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
var wpmdb=wpmdb||{};wpmdb.multisite={},function(a,b){b.multisite.update_multiselect=function(c,d,e){if(a(c).empty(),0<Object.keys(d).length){var f=a.wpmdb.apply_filters("wpmdb_get_table_prefix",null,null),g=!1;a.each(d,function(b,d){if(!a.wpmdb.apply_filters("wpmdb_exclude_subsite",!1,b)){var h=" ";(void 0===e||null===e||0===e.length||void 0!==e&&null!==e&&0<e.length&&-1!==a.inArray(b,e))&&(h=' selected="selected" ',g=!0),d+=" ("+f+("1"!==b?b+"_":"")+")",a(c).append("<option"+h+'value="'+b+'">'+d+"</option>")}}),!1===g&&b.multisite.update_multiselect(c,d,[])}}}(jQuery,wpmdb);
|
||||
83
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/js/plugin-update-172.js
vendored
Normal file
83
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/js/plugin-update-172.js
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
(function( $ ) {
|
||||
|
||||
var doing_check_licence = false;
|
||||
var fade_duration = 650;
|
||||
|
||||
var admin_url = ajaxurl.replace( '/admin-ajax.php', '' );
|
||||
var spinner_url = admin_url + '/images/spinner';
|
||||
var spinner;
|
||||
if ( 2 < window.devicePixelRatio ) {
|
||||
spinner_url += '-2x';
|
||||
}
|
||||
spinner_url += '.gif';
|
||||
spinner = $( '<img src="' + spinner_url + '" alt="" class="check-licence-spinner" />' );
|
||||
|
||||
$( document ).ready( function() {
|
||||
|
||||
$( 'body' ).on( 'click', '.check-my-licence-again', function( e ) {
|
||||
e.preventDefault();
|
||||
$( this ).blur();
|
||||
|
||||
if ( doing_check_licence ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
doing_check_licence = true;
|
||||
|
||||
$( this ).hide();
|
||||
spinner.insertAfter( this );
|
||||
|
||||
var check_again_link = ' <a class="check-my-licence-again" href="#">' + wpmdb_update_strings.check_license_again + '</a>';
|
||||
|
||||
$.ajax( {
|
||||
url: ajaxurl,
|
||||
type: 'POST',
|
||||
dataType: 'json',
|
||||
cache: false,
|
||||
data: {
|
||||
action: 'wpmdb_check_licence',
|
||||
nonce: wpmdb_nonces.check_licence,
|
||||
context: 'update'
|
||||
},
|
||||
error: function( jqXHR, textStatus, errorThrown ) {
|
||||
doing_check_licence = false;
|
||||
$( '.wpmdb-licence-error-notice' ).fadeOut( fade_duration, function() {
|
||||
$( '.wpmdb-licence-error-notice' ).empty()
|
||||
.html( wpmdb_update_strings.license_check_problem + check_again_link )
|
||||
.fadeIn( fade_duration );
|
||||
} );
|
||||
},
|
||||
success: function( data ) {
|
||||
doing_check_licence = false;
|
||||
if ( 'undefined' !== typeof data.errors ) {
|
||||
var msg = '';
|
||||
for ( var key in data.errors ) {
|
||||
msg += data.errors[ key ];
|
||||
}
|
||||
$( '.wpmdb-licence-error-notice' ).fadeOut( fade_duration, function() {
|
||||
$( '.check-licence-spinner' ).remove();
|
||||
$( '.wpmdb-licence-error-notice' ).empty()
|
||||
.html( msg )
|
||||
.fadeIn( fade_duration );
|
||||
} );
|
||||
} else {
|
||||
|
||||
// Success
|
||||
// Fade out, empty wpmdb custom error content, swap back in the original wordpress upgrade message, fade in
|
||||
$( '.wpmdbpro-custom-visible' ).fadeOut( fade_duration, function() {
|
||||
$( '.check-licence-spinner' ).remove();
|
||||
$( '.wpmdbpro-custom-visible' ).empty()
|
||||
.html( $( '.wpmdb-original-update-row' ).html() )
|
||||
.fadeIn( fade_duration );
|
||||
} );
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
||||
} );
|
||||
|
||||
$( '.wpmdbpro-custom' ).prev().addClass( 'wpmdbpro-has-message' );
|
||||
|
||||
} );
|
||||
|
||||
})( jQuery );
|
||||
1
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/js/plugin-update-172.min.js
vendored
Normal file
1
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/js/plugin-update-172.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
!function(a){var b,c=!1,d=650,e=ajaxurl.replace("/admin-ajax.php",""),f=e+"/images/spinner";2<window.devicePixelRatio&&(f+="-2x"),f+=".gif",b=a('<img src="'+f+'" alt="" class="check-licence-spinner" />'),a(document).ready(function(){a("body").on("click",".check-my-licence-again",function(e){if(e.preventDefault(),a(this).blur(),c)return!1;c=!0,a(this).hide(),b.insertAfter(this);var f=' <a class="check-my-licence-again" href="#">'+wpmdb_update_strings.check_license_again+"</a>";a.ajax({url:ajaxurl,type:"POST",dataType:"json",cache:!1,data:{action:"wpmdb_check_licence",nonce:wpmdb_nonces.check_licence,context:"update"},error:function(b,e,g){c=!1,a(".wpmdb-licence-error-notice").fadeOut(d,function(){a(".wpmdb-licence-error-notice").empty().html(wpmdb_update_strings.license_check_problem+f).fadeIn(d)})},success:function(b){if(c=!1,"undefined"!=typeof b.errors){var e="";for(var f in b.errors)e+=b.errors[f];a(".wpmdb-licence-error-notice").fadeOut(d,function(){a(".check-licence-spinner").remove(),a(".wpmdb-licence-error-notice").empty().html(e).fadeIn(d)})}else a(".wpmdbpro-custom-visible").fadeOut(d,function(){a(".check-licence-spinner").remove(),a(".wpmdbpro-custom-visible").empty().html(a(".wpmdb-original-update-row").html()).fadeIn(d)})}})}),a(".wpmdbpro-custom").prev().addClass("wpmdbpro-has-message")})}(jQuery);
|
||||
4049
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/js/script-172.js
vendored
Normal file
4049
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/js/script-172.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/js/script-172.min.js
vendored
Normal file
3
wordpress/wp-content/plugins/wp-migrate-db-pro/asset/dist/js/script-172.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user