Skip to content

Commit

Permalink
Move block server-side logic into same directory as client-side logic
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Jul 25, 2017
1 parent 1c7aaf8 commit b1b056d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
File renamed without changes.
5 changes: 3 additions & 2 deletions gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
require_once dirname( __FILE__ ) . '/lib/parser.php';
require_once dirname( __FILE__ ) . '/lib/register.php';

// Register server-side code for individual blocks.
require_once dirname( __FILE__ ) . '/lib/blocks/latest-posts.php';
foreach ( glob( dirname( __FILE__ ) . '/blocks/library/*/index.php' ) as $block_logic ) {
require_once $block_logic;
}
}

0 comments on commit b1b056d

Please sign in to comment.