View comments-of-private-posts.php
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 | |
/** | |
* Comments of private posts | |
* | |
* @package copp | |
* @author Bernhard Kau | |
* @license GPLv3 | |
* | |
* @wordpress-plugin | |
* Plugin Name: Comments of private posts |
View google-analytics-for-wordpress-security-fix.php
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 | |
/** | |
* Google Analytics for WordPress Security Fix | |
* | |
* @package gafwsf | |
* @author Bernhard Kau | |
* @license GPLv3 | |
* | |
* @wordpress-plugin | |
* Plugin Name: Google Analytics for WordPress Security Fix |
View deletion-prevention.php
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 | |
/** | |
* Deletion Prevention | |
* | |
* @package pec | |
* @author Bernhard Kau | |
* @license GPLv3 | |
* | |
* @wordpress-plugin | |
* Plugin Name: Deletion Prevention |
View gf_dynamic.js
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
<script type="text/javascript"> | |
// let's make call to the global gwrf variable visible after enabling Gravity Forms | |
window.gwrf; | |
(function ($) { | |
gwrf = function (args) { | |
// prototype arguments, created when we instantiate it | |
this.formId = args.formId; | |
this.spinnerUrl = args.spinnerUrl; |
View wordcamp-automatic-timezone-converter-code.js
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
timeZone = wp.date.__experimentalGetSettings().timezone.abbr; | |
for( let time of document.querySelectorAll('.wcpt-time') ) { | |
let date = new Date(time.innerHTML.replace(/(\d+:\d+)( (pm|am))?/, `${new Date().toLocaleDateString([],{ year: 'numeric', month: 'long', day: 'numeric' })} $1 $3 ${timeZone}`)); | |
time.innerHTML = (`${time.innerHTML}<br/><span style="white-space: nowrap;">${new Date().toLocaleTimeString([], {hour: '2-digit', minute:'2-digit', timeZoneName:'short'})}</span>`); | |
} |
View reusable-blocks-management.php
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 | |
/** | |
* Reusable Blocks Management | |
* | |
* @package Reusable_Block_Management | |
* @author Bernhard Kau | |
* @license GPLv3 | |
* | |
* @wordpress-plugin | |
* Plugin Name: Reusable Blocks Management |
View sun-info.sh
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
#!/usr/bin/bash | |
php -r 'setlocale(LC_TIME, "de_DE.UTF-8"); date_default_timezone_set("Europe/Berlin"); print_r(array_map(function($time){ return strftime("%c", $time); }, date_sun_info(time(), 52.3918, 13.1126)));' |
View unique-title-checker-across-post-types.php
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 | |
/** | |
* Unique Title Checker Across Post Types | |
* | |
* @package unique-title-checker-across-post-types | |
* @author Bernhard Kau | |
* @license GPLv3 | |
* | |
* @wordpress-plugin | |
* Plugin Name: Unique Title Checker Across Post Types |
View unique-title-checker-only-unique-error.php
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 | |
/** | |
* Unique Title Checker Errors Only | |
* | |
* @package unique-title-checker | |
* @author Bernhard Kau | |
* @license GPLv3 | |
* | |
* @wordpress-plugin | |
* Plugin Name: Unique Title Checker Errors Only |
View capital_eszett_dangit.php
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 | |
/** | |
* Capitalize ẞ Dangit | |
* | |
* @package CapitalizeẞDangit | |
* @author Bernhard Kau | |
* @license GPLv3 | |
* | |
* @wordpress-plugin | |
* Plugin Name: Capitalize ẞ Dangit |
NewerOlder