Make WordPress Core

Changeset 22773


Ignore:
Timestamp:
11/21/2012 04:50:58 PM (14 years ago)
Author:
koopersmith
Message:

Media: Remove unused link-formatting function from media-editor.js. see #21390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-editor.js

    r22772 r22773  
    5050(function($){
    5151        // Stores the editors' `wp.media.controller.Frame` instances.
    52         var workflows = {},
    53                 linkToUrl;
    54 
    55         linkToUrl = function( props, attachment ) {
    56                 var link = props.link || getUserSetting( 'urlbutton', 'post' ),
    57                         url;
    58 
    59                 if ( 'file' === link )
    60                         url = attachment.url;
    61                 else if ( 'post' === link )
    62                         url = attachment.link;
    63                 else if ( 'custom' === link )
    64                         url = props.linkUrl;
    65 
    66                 return url || '';
    67         };
     52        var workflows = {};
    6853
    6954        wp.media.string = {
Note: See TracChangeset for help on using the changeset viewer.