Changeset 12558 for trunk/wp-includes/class.wp-styles.php
- Timestamp:
- 12/28/2009 12:48:20 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class.wp-styles.php
r11383 r12558 36 36 return false; 37 37 38 $ver = $this->registered[$handle]->ver ? $this->registered[$handle]->ver : $this->default_version; 38 if ( null === $this->registered[$handle]->ver ) 39 $ver = ''; 40 else 41 $ver = $this->registered[$handle]->ver ? $this->registered[$handle]->ver : $this->default_version; 42 39 43 if ( isset($this->args[$handle]) ) 40 $ver .= '&' . $this->args[$handle];44 $ver = $ver ? $ver . '&' . $this->args[$handle] : '?' . $this->args[$handle]; 41 45 42 46 if ( $this->do_concat ) { … … 101 105 } 102 106 103 $src = add_query_arg('ver', $ver, $src); 107 if ( !empty($ver) ) 108 $src = add_query_arg('ver', $ver, $src); 104 109 $src = apply_filters( 'style_loader_src', $src, $handle ); 105 110 return esc_url( $src );
Note: See TracChangeset
for help on using the changeset viewer.