This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: client/payment-methods/index.js | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
diff --git a/client/payment-methods/index.js b/client/payment-methods/index.js | |
--- a/client/payment-methods/index.js (revision d8958789371cd08850016c48ee2bec9f9b363a0a) | |
+++ b/client/payment-methods/index.js (date 1648624598757) | |
@@ -243,7 +243,7 @@ | |
<CardBody size={ null }> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Replicate core issue 49089 | |
Plugin URI: https://core.trac.wordpress.org/ticket/49089 | |
Description: Steps to replicate: (1) Visit wp-admin/edit.php, (2) Try to edit a post with "Quick Edit" to trigger the ajax action, (3) Check PHP error log (debug.log) | |
Author: htdat | |
Version: 0.1-dev | |
*/ | |
add_action( | |
'wp_ajax_inline-save', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Plugin Name: Damn Vulnerable WordPress Plugin | |
* Description: Intentionally vulnerable plugin for plugin author education | |
* Version: 0.1 | |
* Plugin URI: http://make.wordpress.org/plugins/2013/04/09/intentionally-vulnerable-plugin/ | |
* Author: Jon Cave | |
* Author URI: http://joncave.co.uk | |
* License: GPLv2+ | |
* | |
* DO NOT RUN THIS PLUGIN ON AN INTERNET ACCESSIBLE SITE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Definition - wait X seconds | |
const wait = seconds => new Promise(resolve => setTimeout(resolve, 1000 * seconds)); | |
/* Usage */ | |
async functionA() { | |
// Do something | |
// ... | |
// Wait for 10 seconds | |
await wait(10); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const unitValue = [ | |
["PENNY", 0.01], | |
["NICKEL", 0.05], | |
["DIME", 0.1], | |
["QUARTER", 0.25], | |
["ONE", 1], | |
["FIVE", 5], | |
["TEN", 10], | |
["TWENTY", 20], | |
["ONE HUNDRED", 100] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'lazyload_is_enabled', 'htdat_disable_lazy_load_homepage', 15 ); | |
function htdat_disable_lazy_load_homepage() { | |
if ( is_front_page() ) { | |
return false; | |
} | |
return true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'wordads_ads_txt', 'dat_wordads_ads_txt'); | |
function dat_wordads_ads_txt ($ads_txt_transient) { | |
$my_text = "#Add more texts"; | |
$my_text .= "\r\n"; // new line | |
$my_text .= "google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0"; // Edit your own text here | |
$my_text .= "\r\n \r\n"; // new line | |
return $my_text . $ads_txt_transient; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function htdat_job_manager_alerts_alert_schedules ( $schedules ) { | |
$schedules['monthly'] = array( | |
'interval' => 86400 * 30, | |
'display' => __( 'Monthly', 'wp-job-manager-alerts' ) | |
); | |
return $schedules; | |
} | |
add_filter('job_manager_alerts_alert_schedules', 'htdat_job_manager_alerts_alert_schedules'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('create_job_application_notification_recipient', 'htdat_create_job_application_notification_recipient', 10, 3); | |
function htdat_create_job_application_notification_recipient ($send_to, $job_id, $application_id){ | |
$send_to = '[email protected]'; | |
return $send_to; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media screen and (min-width: 900px) { | |
.share-jetpack-whatsapp { | |
display: none !important; | |
} | |
} |
NewerOlder