Skip to content

Commit

Permalink
Restructure PHP code into separate files (#985)
Browse files Browse the repository at this point in the history
  • Loading branch information
nylen authored Jun 5, 2017
1 parent d9e9633 commit b4f3540
Show file tree
Hide file tree
Showing 9 changed files with 678 additions and 585 deletions.
21 changes: 11 additions & 10 deletions bin/build-plugin-zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ rm -f gutenberg.zip

# Generate the plugin zip file
zip -r gutenberg.zip \
index.php \
post-content.js \
blocks/build \
components/build \
date/build \
editor/build \
element/build \
i18n/build \
utils/build \
README.md
gutenberg.php \
lib/*.php \
post-content.js \
blocks/build \
components/build \
date/build \
editor/build \
element/build \
i18n/build \
utils/build \
README.md
15 changes: 15 additions & 0 deletions gutenberg.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
/**
* Plugin Name: Gutenberg
* Plugin URI: https://github.com/WordPress/gutenberg
* Description: Prototyping since 1440. This is the development plugin for the new block editor in core. <strong>Meant for development, do not run on real sites.</strong>
* Version: 0.1.0
* Author: Gutenberg Team
*
* @package gutenberg
*/

require_once dirname( __FILE__ ) . '/lib/blocks.php';
require_once dirname( __FILE__ ) . '/lib/client-assets.php';
require_once dirname( __FILE__ ) . '/lib/i18n.php';
require_once dirname( __FILE__ ) . '/lib/register.php';
Loading

0 comments on commit b4f3540

Please sign in to comment.