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 | |
function convertRestrictedFont($filename) { | |
$font = fopen($filename,'r+'); | |
if ($font === false) { | |
throw new Exception('Could not open font file.'); | |
} | |
fseek($font, 12, 0); | |
while (!feof($font)) { |
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 | |
/** | |
* getting the Script and Style suffix | |
* Adds a conditional ".min" suffix to the file name when SCRIPT_DEBUG is NOT set to TRUE. | |
* | |
* @return String $suffix | |
*/ | |
function wpcf7_get_script_suffix(){ | |
return defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; |
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 | |
/** | |
* adding a date-filter to the comment_query to fetch comments from last week | |
* | |
* @param Array $clauses | |
* @return Array $clauses | |
*/ | |
function chrico_filter_comments_clauses_get_comments_last_week( $clauses ){ | |
$last_week = gmdate( 'W' ) - 1; | |
$query_args = array( |