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
| // ... rest of functions.php | |
| function unwrap_iframes( $content ) { | |
| $content = preg_replace('/<p>\s*(<iframe.*>*.<\/iframe>)\s*<\/p>/iU', '\1', $content); | |
| return $content; | |
| } | |
| add_filter( 'the_content', 'unwrap_iframes' ) |
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
| /** | |
| * Fill in the deets below | |
| */ | |
| const USER_ID = `XXXXXXXX` // search for "soundcloud://users" in dev tools, check out the number after to find it | |
| const Authorization = "OAuth 1-XXXXXX-XXXXXXXX-XXXXXXXXXXXXX" // in dev tools>network, look at XHR requests and find one with "Authorization" request header | |
| const CLIENT_ID = `XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` // search for "client_id" in dev tools network tab | |
| const TRACK_LIMIT = 100 | |
| const NEW_DESCRIPTION = `Your description goes here. \n for new lines` | |
| const NEW_TAGS = `Your Tags Separated By Spaces` |
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 | |
| #-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password | |
| REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'` | |
| if [ -z "$REPO_URL" ]; then | |
| echo "-- ERROR: Could not identify Repo url." | |
| echo " It is possible this repo is already using SSH instead of HTTPS." | |
| exit | |
| fi |