| @@ 61-63 (lines=3) @@ | ||
| 58 | ||
| 59 | // attach version and an extra query parameters |
|
| 60 | $ver = $this->get_version( $wp_scripts->registered[ $handle ]->ver, $wp_scripts->default_version ); |
|
| 61 | if ( isset( $wp_scripts->args[ $handle ] ) ) { |
|
| 62 | $ver = $ver ? $ver . '&' . $wp_scripts->args[$handle] : $wp_scripts->args[$handle]; |
|
| 63 | } |
|
| 64 | $src = add_query_arg( 'ver', $ver, $src ); |
|
| 65 | ||
| 66 | // add to an aray so we can return all this info |
|
| @@ 88-90 (lines=3) @@ | ||
| 85 | ||
| 86 | // attach version and an extra query parameters |
|
| 87 | $ver = $this->get_version( $wp_styles->registered[ $handle ]->ver, $wp_styles->default_version ); |
|
| 88 | if ( isset( $wp_styles->args[ $handle ] ) ) { |
|
| 89 | $ver = $ver ? $ver . '&' . $wp_styles->args[$handle] : $wp_styles->args[$handle]; |
|
| 90 | } |
|
| 91 | $src = add_query_arg( 'ver', $ver, $src ); |
|
| 92 | ||
| 93 | // is there a special media (print, screen, etc) for this? if not, default to 'all' |
|
| @@ 1139-1140 (lines=2) @@ | ||
| 1136 | else |
|
| 1137 | $ver = $wp_scripts->registered[ $handle ]->ver ? $wp_scripts->registered[ $handle ]->ver : $wp_scripts->default_version; |
|
| 1138 | ||
| 1139 | if ( isset( $wp_scripts->args[ $handle ] ) ) |
|
| 1140 | $ver = $ver ? $ver . '&' . $wp_scripts->args[$handle] : $wp_scripts->args[$handle]; |
|
| 1141 | ||
| 1142 | // Full script source with version info |
|
| 1143 | $script_data['src'] = add_query_arg( 'ver', $ver, $src ); |
|
| @@ 1217-1218 (lines=2) @@ | ||
| 1214 | else |
|
| 1215 | $ver = $wp_styles->registered[ $handle ]->ver ? $wp_styles->registered[ $handle ]->ver : $wp_styles->default_version; |
|
| 1216 | ||
| 1217 | if ( isset($wp_styles->args[ $handle ] ) ) |
|
| 1218 | $ver = $ver ? $ver . '&' . $wp_styles->args[$handle] : $wp_styles->args[$handle]; |
|
| 1219 | ||
| 1220 | // Full stylesheet source with version info |
|
| 1221 | $style_data['src'] = add_query_arg( 'ver', $ver, $src ); |
|