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
diff --git a/lib/class-wp-json-posts.php b/lib/class-wp-json-posts.php | |
index e440b25..59c6bfd 100644 | |
--- a/lib/class-wp-json-posts.php | |
+++ b/lib/class-wp-json-posts.php | |
@@ -847,14 +847,57 @@ class WP_JSON_Posts { | |
return $can_insert; | |
} | |
- // Post meta | |
- // TODO: implement this |
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
{ | |
"name": "attitude/Functions/is_assoc_array", | |
"autoload": { | |
"files": ["function-is_assoc_array.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
--- | |
################################################################################ | |
# | |
# COLLECTIONS | |
# | |
################################################################################ | |
_id: homepage | |
_type: collection | |
route: / | |
template: homepage |
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
/*! Closing the Door by Martin Adamko (c) 2014, MIT Licence */ | |
var officeOfHelena = { | |
person: { | |
name: "Helena", | |
surname: "Székhelyi" | |
} | |
}; | |
(function(office) { |
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 | |
//---------------------------------------------------------------------------------------------- | |
// Display Timestamps when Debugging WordPress for Speed | |
//---------------------------------------------------------------------------------------------- | |
// | |
// A GIST by Martin Adamko, martin(at)attitude.sk | |
// | |
// It happens from time to time you need to know where the crack is. I assume you are willing | |
// to kick in the WP source and put some 'echos' in there. But WP has 2 functions to help you |
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
diff --git a/classes/PodsAPI.php b/classes/PodsAPI.php | |
index 129badf..571bd1a 100644 | |
--- a/classes/PodsAPI.php | |
+++ b/classes/PodsAPI.php | |
@@ -3020,9 +3020,7 @@ class PodsAPI { | |
if ( !empty( $related_ids ) ) { | |
update_metadata( $object_type, $id, '_pods_' . $related_field[ 'name' ], $related_ids ); | |
- foreach ( $related_ids as $rel_id ) { | |
- add_metadata( $object_type, $id, $related_field[ 'name' ], $rel_id ); |
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
{ | |
"name": "attitude/Functions/get_file_extension" | |
} |
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
{ | |
"name": "attitude/Functions/get_file_filename" | |
} |
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: Snipet: Add/Remove User Contact Methods | |
Plugin URI: http://www.attitude.sk | |
Description: Adds phone field to the user edit screen | |
Version: 0.1.1 | |
Author: Martin Adamko | |
Author URI: http://www.attitude.sk | |
License: The MIT License (MIT) |
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: Snipet: Enable `the_post_thumbnail` | |
Plugin URI: http://www.attitude.sk | |
Description: Displays `Post thumbnail` in post | |
Version: 0.1.0 | |
Author: Mrg. art. Martin Adamko | |
Author URI: http://www.attitude.sk | |
License: The MIT License (MIT) |
OlderNewer