Interviewer | Customer | Date |
---|---|---|
[name] | [name] | [DD/MM/YYYY 00:00am] |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> | |
# END WordPress |
<?php | |
/* | |
Plugin Name: WP Login Page API Disovery | |
Plugin URI: https://gist.github.com/jconroy/180d629543437eaf765dafdf82aa2524 | |
Description: Adds the WP REST API link header and link element to the wp-login.php page. | |
Author: Robot Ninja, Jason Conroy | |
Version: 1.0 | |
Author URI: https://robotninja.com | |
*/ |
modules: | |
enabled: | |
- WebDriver: | |
url: http://site-to-test.com | |
host: 'http://localhost:4444/wd/hub' | |
port: 4444 | |
browser: chrome ( 'firefox' or 'phantomjs' etc. ) |
$host = 'http://localhost:4444/wd/hub'; | |
// For Chrome | |
$capabilities = DesiredCapabilities::chrome(); | |
$capabilities->setCapability( 'acceptSslCerts', true ); | |
// For Firefox | |
//$capabilities = DesiredCapabilities::firefox(); | |
//$capabilities->setCapability( 'acceptInsecureCerts', true ); |
This issue is noted here: https://deliciousbrains.com/wp-migrate-db-pro/doc/ssl-errors/
Original reference for this fix is from: http://stackoverflow.com/questions/26461966/osx-10-10-curl-post-to-https-url-gives-sslread-error/26538127#26538127
php -i | grep "SSL Version"
<?php | |
/* | |
* dl-file.php | |
* | |
* Protect uploaded files with login. | |
* | |
* @link http://wordpress.stackexchange.com/questions/37144/protect-wordpress-uploads-if-user-is-not-logged-in | |
* | |
* @author hakre <http://hakre.wordpress.com/> | |
* @license GPL-3.0+ |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<div id="container" style="width:100%;"> | |
<div class="fb-like-box" data-href="https://www.facebook.com/adobegocreate" data-width="292" data-show-faces="true" data-stream="true" data-header="true"></div> | |
</div> |
I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.
If you want to roll up all of these into a single jQuery plugin check out Sharrre
Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.