-
Click Generate new token
-
Use the repo scope and give it a name.
-
Run this command:
platform variable:create --project PROJECT-ID --level project --name env:COMPOSER_AUTH \
<?php | |
namespace Drupal\YOUR_MODULE\Commands; | |
use Drush\Commands\DrushCommands; | |
/** | |
* Rebuild the cache mechanism via drush. | |
*/ | |
class RebuildCache extends DrushCommands { |
#!/bin/bash | |
echo 'Stopping Containers' | |
# Stop all containers | |
containers=`docker ps -a -q` | |
if [ -n "$containers" ] ; then | |
docker stop $containers | |
fi | |
echo 'Deleting Containers' |
diff --git a/src/Collections/TerminusCollection.php b/src/Collections/TerminusCollection.php | |
index 4f583f50..07443b1f 100644 | |
--- a/src/Collections/TerminusCollection.php | |
+++ b/src/Collections/TerminusCollection.php | |
@@ -91,6 +91,10 @@ abstract class TerminusCollection implements ContainerAwareInterface, RequestAwa | |
public function fetch() | |
{ | |
foreach ($this->getData() as $id => $model_data) { | |
+ if ($model_data === NULL) { | |
+ continue; |
diff --git a/core/modules/class-cdn.php b/core/modules/class-cdn.php | |
index d86d910..2af3541 100644 | |
--- a/core/modules/class-cdn.php | |
+++ b/core/modules/class-cdn.php | |
@@ -430,7 +430,7 @@ class CDN extends Abstract_Module { | |
$src = apply_filters( 'smush_filter_generate_cdn_url', $src ); | |
// Support for WP installs in subdirectories: remove the site url and leave only the file path. | |
- $path = str_replace( get_site_url(), '', $src ); | |
+ $path = str_replace( WP_HOME, '', $src ); |
/** | |
* Use with a form that has an update cc feed. | |
*/ | |
function update_default_credit_card($entry, $form) { | |
if (get_user_meta( get_current_user_id(), 'stripe_customer_id', true ) !== '') { | |
// Get last 4 of cc entered. Replace with whatever entry field is your CC. | |
$last4 = str_replace('X', '', $entry["8.1"]); | |
// Init Stripe Client. | |
try { |
diff --git a/class-gf-advancedpostcreation.php b/class-gf-advancedpostcreation.php | |
index 1c58a64..b5ae638 100644 | |
--- a/class-gf-advancedpostcreation.php | |
+++ b/class-gf-advancedpostcreation.php | |
@@ -1793,14 +1793,19 @@ class GF_Advanced_Post_Creation extends GFFeedAddOn { | |
// Initialize uploaded files array. | |
$this->set_current_media(); | |
- // Prepare post object. | |
- $post = array( |
diff --git a/class-alpha.php b/class-alpha.php | |
index b70c8b1..76b888a 100644 | |
--- a/class-alpha.php | |
+++ b/class-alpha.php | |
@@ -86,7 +86,7 @@ class FacetWP_Facet_Alpha_Addon extends FacetWP_Facet | |
} | |
} | |
- return $output; | |
+ return apply_filters( 'facetwp_alpha_render', $output ); |
<?php | |
/** | |
* Use to easily alter HTML Output. | |
*/ | |
class MarkupAlter { | |
/** | |
* The content we are altering. | |
* |
Click Generate new token
Use the repo scope and give it a name.
Run this command:
platform variable:create --project PROJECT-ID --level project --name env:COMPOSER_AUTH \
<header id="header" class="header" role="banner" aria-label="{{ 'Site header'|t}}"> | |
<nav class="navbar navbar-expand-lg fixed-top" id="main-navbar"> | |
<div class="navbar-brand d-lg-none d-xl-none">YOUR SITE NAME</div> | |
<button id="navbar-toggler-id" class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#CollapsingNavbar" aria-controls="CollapsingNavbar" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button> | |
<div class="collapse navbar-collapse" id="CollapsingNavbar"> | |
{{ page.primary_menu }} | |
</div> | |
</nav> | |
</header> |