Skip to content

Instantly share code, notes, and snippets.

@rulatir
rulatir / template.json
Created April 28, 2022 19:23
template.json example
{
"install" : {
"child-template : ." : [
"assets",
"build_id.cache",
{ "gitignore": ".gitignore" },
"styles.json"
]
}
}
@rulatir
rulatir / Pods-issue871.patch
Created January 30, 2013 23:37
Patch for Pods issue 871.
diff -uNr ./classes/PodsAPI.php /home/rulatir/mnt/mp/wordpress/wp-content/plugins/pods/classes/PodsAPI.php
--- ./classes/PodsAPI.php 2013-01-06 06:29:06.000000000 +0100
+++ /home/rulatir/mnt/mp/wordpress/wp-content/plugins/pods/classes/PodsAPI.php 2013-01-31 00:09:26.000000000 +0100
@@ -1601,7 +1601,7 @@
$params->pod = $pod[ 'name' ];
$params->pod_data = $pod;
- $params->name = pods_clean_name( $params->name );
+ $params->name = pods_clean_name( $params->name, true, false );