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 | |
| /** | |
| * Use to easily alter HTML Output. | |
| */ | |
| class MarkupAlter { | |
| /** | |
| * The content we are altering. | |
| * |
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
| 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 ); |
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
| 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( |
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
| /** | |
| * 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 { |
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
| 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 ); |
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
| 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; |
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
| #!/bin/bash | |
| echo 'Stopping Containers' | |
| # Stop all containers | |
| containers=`docker ps -a -q` | |
| if [ -n "$containers" ] ; then | |
| docker stop $containers | |
| fi | |
| echo 'Deleting Containers' |
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 | |
| namespace Drupal\YOUR_MODULE\Commands; | |
| use Drush\Commands\DrushCommands; | |
| /** | |
| * Rebuild the cache mechanism via drush. | |
| */ | |
| class RebuildCache extends DrushCommands { |
OlderNewer