Changeset 1067071
- Timestamp:
- 01/13/2015 01:47:37 PM (11 years ago)
- File:
-
- 1 edited
-
enzymes/trunk/enzymes.2/enzymes.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
enzymes/trunk/enzymes.2/enzymes.php
r1064492 r1067071 113 113 function do_inclusion() 114 114 { 115 if( '' != $this->matches['template'] )116 { 117 $file_path = ABSPATH . $this->templates_path . $this->matches['template'];115 if( '' != @$this->matches['template'] ) 116 { 117 $file_path = ABSPATH . $this->templates_path . @$this->matches['template']; 118 118 if( file_exists( $file_path ) ) 119 119 { … … 139 139 function build_pathway() 140 140 { 141 if( '' != $this->matches['template'] )142 { 143 if( '/' == $this->matches['tempType'] )141 if( '' != @$this->matches['template'] ) 142 { 143 if( '/' == @$this->matches['tempType'] ) 144 144 { 145 145 // slash template … … 334 334 { 335 335 $this->matches = $matches; 336 if( '' == $matches['sub_block'] )336 if( '' == @$matches['sub_block'] ) 337 337 { 338 338 // transclusion 339 339 $this->substrate = ''; 340 $this->enzyme = '' == $matches['value']341 ? $this->item( $matches['id'], $matches['glue'],$matches['key'] )340 $this->enzyme = '' == @$matches['value'] 341 ? $this->item( @$matches['id'], @$matches['glue'], @$matches['key'] ) 342 342 : $this->unquote( $matches['value'] ); 343 343 $this->merging = 'append'; … … 346 346 else { 347 347 // execution 348 $this->substrate = '' == $matches['sub_value']349 ? $this->item( $matches['sub_id'], $matches['sub_glue'],$matches['sub_key'] )348 $this->substrate = '' == @$matches['sub_value'] 349 ? $this->item( @$matches['sub_id'], @$matches['sub_glue'], @$matches['sub_key'] ) 350 350 : $this->unquote( $matches['sub_value'] ); 351 $this->enzyme = $this->item( $matches['id'], $matches['glue'],$matches['key'] );351 $this->enzyme = $this->item( @$matches['id'], @$matches['glue'], @$matches['key'] ); 352 352 $this->merging = ''; 353 353 $this->do_evaluation(); … … 358 358 function cb_strip_blanks( $matches ) 359 359 { 360 list( $all, $before, $quoted, $after ) = $matches;360 @list( $all, $before, $quoted, $after ) = $matches; 361 361 $outside = $quoted ? $before : $after; 362 362 //for some reason IE introduces C2 (hex) chars when writing a post … … 402 402 $this->pathway = ''; 403 403 $matchesIn['rest'] = $sttmnt; 404 while( preg_match( '/'.$this->e['pathway1'].'/', $matchesIn['rest'], $matchesIn ) )404 while( preg_match( '/'.$this->e['pathway1'].'/', @$matchesIn['rest'], $matchesIn ) ) 405 405 { 406 406 $this->catalyze( $matchesIn ); … … 423 423 { 424 424 global $enzymes; 425 add_filter('wp_title', array($enzymes, 'metabolism'), 10, 2);426 add_filter('the_title', array($enzymes, 'metabolism'), 10, 2);427 add_filter('the_title_rss', array($enzymes, 'metabolism'), 10, 2);428 add_filter('the_excerpt', array($enzymes, 'metabolism'), 10, 2);429 add_filter('the_excerpt_rss', array($enzymes, 'metabolism'), 10, 2);430 add_filter('the_content', array($enzymes, 'metabolism'), 10, 2);425 add_filter('wp_title', array($enzymes, 'metabolism'), 20, 2); 426 add_filter('the_title', array($enzymes, 'metabolism'), 20, 2); 427 add_filter('the_title_rss', array($enzymes, 'metabolism'), 20, 2); 428 add_filter('the_excerpt', array($enzymes, 'metabolism'), 20, 2); 429 add_filter('the_excerpt_rss', array($enzymes, 'metabolism'), 20, 2); 430 add_filter('the_content', array($enzymes, 'metabolism'), 20, 2); 431 431 } 432 432 add_action('init', 'enzymes2_on_init', 10, 2);
Note: See TracChangeset
for help on using the changeset viewer.