This file contains 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 Errthling; | |
/** | |
* Get a property from either an object or an array. | |
* | |
* @param string $key The name of the property to retrieve | |
* @param array|object $data The object to retrieve the property for. | |
* @return mixed | |
*/ |
This file contains 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
# 1) Edit the site's nginx config (/etc/nginx/custom-sites/site-name.conf) to add the lines below. | |
# 2) Reload nginx: sudo service nginx reload | |
server { | |
# existing conf here | |
# Nginx fix for the SAML 2.0 Single Sign-On plugin. | |
location ^~ /wp-content/plugins/saml-20-single-sign-on { | |
location ~ ^(?<script_name>.*?\.php)(?<path_info>/.*)?$ { | |
include fastcgi_params; |