I hereby claim:
- I am technosailor on github.
- I am technosailor (https://keybase.io/technosailor) on keybase.
- I have a public key ASBukfKyoQ_Yb6W8_3tRYnyku9tkjleiNYSZ7xGRbKQCiQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
dist: trusty | |
language: php | |
php: | |
- 7.0 | |
- 7.1 | |
- 7.2 | |
- 7.3 |
add_filter( 'request' function( $query_vars ) { | |
if( isset( $query_vars['feed'] ) ) { | |
$query_vars['post_type'] = [ | |
'post', | |
'page' | |
]; | |
} | |
return $query_vars; | |
} ); |
for plugin in `wp plugin list --format=csv | cut -d , -f 1`; | |
do | |
wp vuln plugin-check $plugin; | |
done |
#!/bin/bash | |
# Usage: ./update-mysql56.sh | |
# Backup of all databases... JUST IN CASE | |
mysqldump --all-databases --single-transaction --events --user=root --password > ~/all_database_backup.sql | |
# Remove MySQL 5.5 | |
sudo apt-get remove mysql-server | |
sudo apt-get autoremove |
[audio mp3="http://technosailor.com/wp-content/uploads/MLKDream_64kb.mp3" start="675"][/audio] |
class WP_Media_Embed_Start_Time { | |
public function __construct() { | |
$this->hooks(); | |
} | |
public function hooks() { | |
add_filter( 'shortcode_atts_audio', array( $this, 'add_attributes' ), 10, 3 ); | |
add_filter( 'shortcode_atts_video', array( $this, 'add_attributes' ), 10, 3 ); | |
add_filter( 'wp_audio_shortcode', array( $this, 'add_start_time' ), 10, 5 ); |
$user_creds = array( | |
'user_login' => $member_data['member-username'], | |
'user_password' => $member_data['member-password'], | |
//'remember' => false | |
); | |
$user = wp_signon( $user_creds, true ); | |
if( is_wp_error( $user ) ) { | |
$result['redirect'] = site_url( '/login/?error=failed_login' ); |
<?php | |
$json = file_get_contents( 'http://ifconfig.me/all.json' ); | |
$data = json_decode( $json ); | |
echo $data->ip_addr; |
<?php | |
/* | |
Plugin Name: AB Edit Filter Save | |
Version: 0.1 | |
Author: Aaron Brazell | |
Author URI: http://technosailor.com | |
Description: Saves default WordPress edit page filters as usermeta | |
License: GPLv2 | |
*/ | |
class AB_Filter_Save { |