This file contains hidden or 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 | |
/* | |
* Convert the path enumeration of depts from dept_assign to closure table | |
*/ | |
class Department { | |
public $dept_code; |
This file contains hidden or 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 | |
// Inserts an embedded gist into the content usage [gist id="12345"] | |
function saurini_gist_func( $atts ){ | |
extract(shortcode_atts(array( | |
'id' => '1337'), $atts)); | |
// Only allow gist ids that are letters or numbers | |
if ( preg_match( '/[^0-9^a-z^A-Z]/', $id ) ) | |
return; |