-
This is a numbered list.
-
I'm going to include a fenced code block as part of this bullet:
Code More Code
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
<h2>Rachel Baker</h2> | |
<p>Rachel Baker (<a href="http://twitter.com/rachelbaker">@rachelbaker</a>) | |
is a Senior Strategic Engineer with <a href="http://10up.com">10up</a> and | |
an active member of the WordPress community. Rachel has lead development on | |
WordPress projects of all sizes including high-traffic communities and for | |
Fortune 500 Companies. She created the popular | |
<a href="http://bootstrapwp.rachelbaker.me/">BootstrapWP Theme</a> and has | |
been instrumental in developing the new WordPress JSON REST API coming in WordPress 4.1.</p> |
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":"Tags", | |
"slug":"post_tag", | |
"labels":{ | |
"name":"Tags", | |
"singular_name":"Tag", | |
"search_items":"Search Tags", | |
"popular_items":"Popular Tags", | |
"all_items":"All Tags", | |
"parent_item":null, |
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
function test_get_revisions_without_permission() { | |
$this->markTestSkipped( 'https://github.com/WP-API/WP-API/issues/251' ); | |
$user = wp_get_current_user(); | |
$user->add_cap( 'publish_posts', false ); | |
// Flush capabilities, https://core.trac.wordpress.org/ticket/28374 | |
$user->get_role_caps(); | |
$user->update_user_level_from_caps(); | |
$response = $this->endpoint->get_revisions( $this->post_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
<?php | |
/** | |
* Retrieve a meta for a post. | |
* | |
* @uses get_post_custom() | |
* | |
* @param int $id Post ID | |
* @param string $key | |
* @return array Post meta fields and values | |
*/ |
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 | |
/** | |
* Unit tests covering WP_JSON_Posts functionality. | |
* | |
* @package WordPress | |
* @subpackage JSON API | |
*/ | |
class WP_Test_JSON_Post extends WP_UnitTestCase { | |
public function setUp() { | |
parent::setUp(); |
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
/* --------------------------------------------------------------------- | |
Modal Base JavaScript | |
Target Browsers: All | |
Author: Rachel Baker | |
------------------------------------------------------------------------ */ | |
// Namespace Object | |
var APP = APP || {}; |
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 | |
/** | |
* Iterates over results of a query, split into many queries via LIMIT and OFFSET | |
*/ | |
class QueryIterator implements Iterator { | |
var $limit = 500; | |
var $query = ''; | |
var $global_index = 0; |
#Revert Homebrew Subversion to 1.7
Use brew tap homebrew/versions
to install Homebrew-Versions: https://github.com/Homebrew/homebrew-versions
brew install subversion17
Add to path: /usr/local/Cellar/subversion17/1.7.11
Reload bash or zsh
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
/** | |
* Extending the Local Storage Object to allow saving of objects. | |
* | |
* @param int|string key object key | |
* @param int|string value object value | |
* @return bool true|false | |
*/ | |
Storage.prototype.setObject = function(key, value) { | |
this.setItem(key, JSON.stringify(value)); | |
}; |