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 | |
/** | |
* Remove bbPress script/style from non-bbPress pages. | |
* | |
* @param \BBP_Theme_Compat $bbpress_theme bbPress' theme object. | |
*/ | |
add_action( 'bbp_theme_compat_actions', function( $bbpress_theme ) { | |
if ( is_bbpress() ) { | |
return; | |
} |
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
$ vagrant up --provider=virtualbox | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Cloning VM... | |
==> default: Matching MAC address for NAT networking... | |
==> default: Checking if box 'bento/ubuntu-16.04' is up to date... | |
==> default: Setting the name of the VM: bporg_default_1500458217639_11998 | |
==> default: Clearing any previously set network interfaces... | |
==> default: Preparing network interfaces based on configuration... | |
default: Adapter 1: nat | |
default: Adapter 2: hostonly |
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
$ composer require wp-cli/wp-cli | |
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug | |
Using version ^1.2 for wp-cli/wp-cli | |
./composer.json has been created | |
Loading composer repositories with package information | |
Updating dependencies (including require-dev) | |
Your requirements could not be resolved to an installable set of packages. | |
Problem 1 | |
- wp-cli/wp-cli v1.2.0 requires wp-cli/autoload-splitter ^0.1 -> satisfiable by wp-cli/autoload-splitter[v0.1.0, v0.1.1, v0.1.2, v0.1.3]. |
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
$ uname -a | |
Darwin Pauls-MacBook-Air.local 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64 | |
$ which -a php | |
/usr/local/php5/bin/php | |
/usr/bin/php | |
$ php -v | |
PHP 7.1.1 (cli) (built: Feb 13 2017 10:05:49) ( NTS ) | |
Copyright (c) 1997-2017 The PHP Group |
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
@vagrant: | |
ssh: [email protected] | |
path: /vagrant/wp |
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
extensions: | |
Behat\MinkExtension: | |
base_url: http://vagrant.local | |
browser_name: chrome | |
default_session: default | |
javascript_session: selenium2 | |
sessions: | |
default: | |
goutte: | |
guzzle_parameters: |
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
default: | |
suites: | |
default: | |
contexts: | |
- Behat\MinkExtension\Context\MinkContext | |
- PaulGibbs\WordpressBehatExtension\Context\ContentContext | |
- PaulGibbs\WordpressBehatExtension\Context\DashboardContext | |
- PaulGibbs\WordpressBehatExtension\Context\SiteContext | |
- PaulGibbs\WordpressBehatExtension\Context\UserContext | |
- PaulGibbs\WordpressBehatExtension\Context\WordpressContext |
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
paths: | |
# Base directory for reference. Relative to the Chassis directory. | |
base: wp | |
# Where WordPress lives. Relative to the base directory. | |
wp: . | |
# Content directory. Relative to the base directory. | |
content: wp-content |
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
<VirtualHost *:80> | |
# The ServerName directive sets the request scheme, hostname and port that | |
# the server uses to identify itself. This is used when creating | |
# redirection URLs. In the context of virtual hosts, the ServerName | |
# specifies what hostname must appear in the request's Host: header to | |
# match this virtual host. For the default virtual host (this file) this | |
# value is not decisive as it is used as a last resort host regardless. | |
# However, you must set it for any further virtual host explicitly. | |
#ServerName www.example.com |
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
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
DocumentRoot /var/www | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride None | |
</Directory> | |
<Directory /var/www/> | |
Options Indexes FollowSymLinks MultiViews |