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
Make Docs | |
http://make.wordpress.org/docs/ | |
Progress Spreadsheet | |
https://docs.google.com/spreadsheet/ccc?key=0AnxB9WffF3jOdDR5ZGgtakxzNHFOTVczSy1fd3ZfSVE#gid=0 | |
IRC Freenode | |
/j #wordpress-sfd |
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 | |
$io = new \Composer\IO\BufferIO(); | |
try { | |
$composer = \Composer\Factory::create($io, null, false); | |
} catch (\InvalidArgumentException $e) { | |
if ($required) { | |
$io->write($e->getMessage()); | |
exit(1); |
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": "tomjn/ptahsiteexample", | |
"description": "Just another WordPress site", | |
"license": "GPL-2.0+", | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "http://wpackagist.org" | |
}, | |
{ |
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 | |
function get_composer_json() { | |
$plugins = get_plugins(); | |
$data = array(); | |
$data['rarst/wordpress'] = '>='.get_bloginfo( 'version' ); | |
$data['php'] = '>=5.2.4'; | |
foreach ( $plugins as $plugin ) { | |
$key = 'wpackagist/'.sanitize_title( $plugin['Name'] ); | |
$data[ $key ] = $plugin['Version']; |
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
{ | |
// - Tab close state | |
"class": "tab_control", | |
"settings": ["show_tab_close_buttons"], | |
"content_margin": [20, 0, 20, 7] | |
}, | |
{ | |
// - Hover tab state | |
"class": "tab_control", | |
"attributes": ["hover"], |
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
{ | |
"caret_style": "phase", | |
"color_scheme": "Packages/Theme - Void/Color Scheme - Void/Void.tmTheme", | |
"draw_white_space": "all", | |
"fade_fold_buttons": true, | |
"file_exclude_patterns": | |
[ | |
"*.pyc", | |
"*.pyo", | |
"*.exe", |
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 | |
$query = new WP_Query( array( | |
'post_type' => 'page' | |
)); | |
if ( $query->have_posts() ) { | |
while ( $query->have_posts() ) { | |
$query->the_post(); | |
the_title(); | |
} |
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 | |
if ( have_posts() ) { | |
while( have_posts() ) { | |
the_post(); | |
the_title(); | |
} | |
} |
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 | |
$pages = new query_loop( array( | |
'post_type' => 'page' | |
)); | |
foreach( $pages as $id => $post ) { | |
the_title(); | |
// etc... | |
} |
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 | |
$posts = new posts_loop(); | |
foreach( $posts as $id => $post ) { | |
the_title(); | |
// etc... | |
} | |
// put this below in your functions.php: |