Make WordPress Core


Ignore:
Timestamp:
12/04/2013 04:12:41 AM (12 years ago)
Author:
azaozz
Message:

Svg-painter:

  • Clean up the JS, better names, etc.
  • Convert the base64 encode/decode code from jQuery plugin to local use.
  • Add missing icon colors for the default theme.
  • Make it more error-proof.

Fixes #26333.

File:
1 edited

Legend:

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

    r26596 r26601  
    393393    $scripts->add( 'mce-view', "/wp-includes/js/mce-view$suffix.js", array( 'shortcode', 'media-models' ), false, 1 );
    394394
    395     $scripts->add( 'svg-painter', '/wp-includes/js/svg-painter.js' );
    396 
    397395    if ( is_admin() ) {
    398396        $scripts->add( 'admin-tags', "/wp-admin/js/tags$suffix.js", array('jquery', 'wp-ajax-response'), false, 1 );
     
    517515        $scripts->add( 'custom-background', "/wp-admin/js/custom-background$suffix.js", array( 'wp-color-picker', 'media-views' ), false, 1 );
    518516        $scripts->add( 'media-gallery', "/wp-admin/js/media-gallery$suffix.js", array('jquery'), false, 1 );
     517
     518        $scripts->add( 'svg-painter', '/wp-includes/js/svg-painter.js', array( 'jquery' ), false, 1 );
    519519    }
    520520}
Note: See TracChangeset for help on using the changeset viewer.