WordPress.org

Make WordPress Core

Changeset 4861


Ignore:
Timestamp:
02/02/2007 06:12:18 AM (13 years ago)
Author:
matt
Message:

Filter for tweaking scripts srcs that go through the script loader.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/script-loader.php

    r4813 r4861  
    8080                    $src = 0 === strpos($this->scripts[$handle]->src, 'http://') ? $this->scripts[$handle]->src : get_option( 'siteurl' ) . $this->scripts[$handle]->src;
    8181                    $src = add_query_arg('ver', $ver, $src);
     82                    $src = apply_filters( 'script_loader_src', $src );
    8283                    echo "<script type='text/javascript' src='$src'></script>\n";
    8384                }
Note: See TracChangeset for help on using the changeset viewer.