Changeset 1703256
- Timestamp:
- 07/26/2017 05:36:54 PM (9 years ago)
- Location:
- aitch-ref/trunk
- Files:
-
- 2 edited
-
_plugin.php (modified) (1 diff)
-
lib/aitchref/AitchRef.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
aitch-ref/trunk/_plugin.php
r1703231 r1703256 4 4 Plugin URI: http://wordpress.org/extend/plugins/aitch-ref/ 5 5 Description: href junk. Requires PHP >= 5.4 and Wordpress >= 3.0 6 Version: 0.9.8 6 Version: 0.9.8.1 7 7 Author: postpostmodern, pinecone-dot-website 8 8 Author URI: http://rack.and.pinecone.website/ -
aitch-ref/trunk/lib/aitchref/AitchRef.php
r1703231 r1703256 20 20 $this->settings['urls'] = array_reverse($this->settings['urls']); 21 21 22 $this->server_url = defined( 'AITCH_REF_SERVER_URL' ) ? AITCH_REF_SERVER_URL : is_ssl() ? 'https://'.$_SERVER['HTTP_HOST'] : 'http://'.$_SERVER['HTTP_HOST'];23 22 $this->server_url = defined( 'AITCH_REF_SERVER_URL' ) ? AITCH_REF_SERVER_URL : (is_ssl() ? 'https://'.$_SERVER['HTTP_HOST'] : 'http://'.$_SERVER['HTTP_HOST']); 23 24 24 add_action( 'plugins_loaded', [$this, 'setup'] ); 25 25 } … … 32 32 public function get_setting($which) 33 33 { 34 35 34 if (!isset($this->settings[$which])) { 36 35 switch ($which) { … … 61 60 } 62 61 63 return $setting;62 return $setting; 64 63 } 65 64 … … 67 66 * 68 67 */ 69 public static function instance(){ 70 if( !self::$instance ) 68 public static function instance() 69 { 70 if (!self::$instance) { 71 71 self::$instance = new self; 72 } 72 73 73 74 return self::$instance; … … 142 143 $url2 = str_replace( $this->get_setting('urls'), $this->server_url, $url ); 143 144 } 144 145 145 146 return $url2; 146 147 }
Note: See TracChangeset
for help on using the changeset viewer.