Changeset 12558 for trunk/wp-includes/class.wp-scripts.php
- Timestamp:
- 12/28/2009 12:48:20 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class.wp-scripts.php
r11383 r12558 91 91 $this->in_footer = array_diff( $this->in_footer, (array) $handle ); 92 92 93 $ver = $this->registered[$handle]->ver ? $this->registered[$handle]->ver : $this->default_version; 93 if ( null === $this->registered[$handle]->ver ) 94 $ver = ''; 95 else 96 $ver = $this->registered[$handle]->ver ? $this->registered[$handle]->ver : $this->default_version; 97 94 98 if ( isset($this->args[$handle]) ) 95 $ver .= '&' . $this->args[$handle];99 $ver = $ver ? $ver . '&' . $this->args[$handle] : '?' . $this->args[$handle]; 96 100 97 101 $src = $this->registered[$handle]->src; … … 115 119 } 116 120 117 $src = add_query_arg('ver', $ver, $src); 121 if ( !empty($ver) ) 122 $src = add_query_arg('ver', $ver, $src); 118 123 $src = esc_url(apply_filters( 'script_loader_src', $src, $handle )); 119 124
Note: See TracChangeset
for help on using the changeset viewer.