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
| /** | |
| * Data provider. | |
| * | |
| * Description. | |
| * | |
| * @since x.x.x | |
| * | |
| * @see {method name receiving data} | |
| * | |
| * @otherPHPUnitSpecificItems |
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
| /** | |
| * Filter whether to skip parsing duplicate hooks. | |
| * | |
| * "Duplicate hooks" are characterized in WordPress core by a preceding DocBlock comment | |
| * including the phrases "This action is documented in" or "This filter is documented in". | |
| * | |
| * Passing a truthy value will skip the parsing of duplicate hooks. | |
| * | |
| * @param bool $skip Whether to skip parsing duplicate hooks. Default false. | |
| */ |
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
| drew [2:01 PM] | |
| <meeting> | |
| Who's here for dev chat? | |
| sam [2:01 PM] | |
| Hi |
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 | |
| /** | |
| * Limit plugin installations to a single authorized account. | |
| * | |
| * @param array $caps Meta capabailities. | |
| * @param string $cap Primitive capability. | |
| * @param int $user_id User ID. | |
| * @param array $args Arguments. | |
| * @return array Filtered meta capabilities. | |
| */ |
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 | |
| [13-Oct-2014 20:52:36 UTC] Array | |
| ( | |
| [content] => Array of meta query clauses. | |
| [$relation] => Array | |
| ( | |
| [content] => Optional. The MySQL keyword used to join the clauses of the query. Accepts 'AND', or 'OR'. Default 'AND'. | |
| [types] => Array | |
| ( | |
| [0] => string |
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 | |
| [13-Oct-2014 05:29:15 UTC] Array | |
| ( | |
| [content] => One or more associative arrays of date query parameters. | |
| [0] => Array | |
| ( | |
| [content] => | |
| [types] => Array | |
| ( | |
| [0] => array |
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 | |
| array(2) { | |
| [0]=> | |
| object(stdClass)#4117 (7) { | |
| ["type"]=> | |
| string(4) "core" | |
| ["slug"]=> | |
| string(7) "default" | |
| ["language"]=> | |
| string(5) "de_DE" |
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 | |
| /** | |
| * Retrieve a variable cache key via RegEx. | |
| * | |
| * A good use for this would be where an incrementer is part of the key and you can't | |
| * necessarily predict what it is, though you can predict the format it will take. | |
| */ | |
| function get_variable_cache_key() { | |
| /** | |
| * @global WP_Object_Cache $wp_object_cache |
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 | |
| $id = (int) $id; | |
| if ( empty( $id ) ) { | |
| return new WP_Error( 'json_post_invalid_id', __( 'Invalid post ID.' ), array( 'status' => 404 ) ); | |
| } | |
| $post = get_post( $id, ARRAY_A ); |