CINXE.COM
#23096 (Provide callback before setting state of the editor media manager) – WordPress Trac
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("https://web.archive.org/web"); __wm.wombat("https://core.trac.wordpress.org/ticket/23096","20140805151651","https://web.archive.org/","web","/_static/", "1407251811"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <title> #23096 (Provide callback before setting state of the editor media manager) – WordPress Trac </title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <!--[if IE]><script type="text/javascript"> if (/^#__msie303:/.test(window.location.hash)) window.location.replace(window.location.hash.replace(/^#__msie303:/, '#')); </script><![endif]--> <link rel="search" href="/web/20140805151651/https://core.trac.wordpress.org/search"/> <link rel="prev" href="/web/20140805151651/https://core.trac.wordpress.org/ticket/23095" title="Ticket #23095"/> <link rel="last" href="/ticket/29117" title="Ticket #29117"/> <link rel="help" href="/wiki/TracGuide"/> <link rel="alternate" href="/web/20140805151651/https://core.trac.wordpress.org/ticket/23096?format=csv" type="text/csv" class="csv" title="Comma-delimited Text"/><link rel="alternate" href="/web/20140805151651/https://core.trac.wordpress.org/ticket/23096?format=tab" type="text/tab-separated-values" class="tab" title="Tab-delimited Text"/><link rel="alternate" href="/web/20140805151651/https://core.trac.wordpress.org/ticket/23096?format=rss" type="application/rss+xml" class="rss" title="RSS Feed"/> <link rel="next" href="/web/20140805151651/https://core.trac.wordpress.org/ticket/23097" title="Ticket #23097"/> <link rel="start" href="/wiki"/> <link rel="stylesheet" href="https://web.archive.org/web/20140805151651cs_/https://s.w.org/style/trac/common/css/trac.css" type="text/css"/><link rel="stylesheet" href="https://web.archive.org/web/20140805151651cs_/https://s.w.org/style/trac/common/css/ticket.css" type="text/css"/> <link rel="first" href="/ticket/1" title="Ticket #1"/> <link rel="shortcut icon" href="/web/20140805151651im_/https://core.trac.wordpress.org/chrome/common/trac.ico" type="image/x-icon"/> <link rel="icon" href="/web/20140805151651im_/https://core.trac.wordpress.org/chrome/common/trac.ico" type="image/x-icon"/> <link type="application/opensearchdescription+xml" rel="search" href="/web/20140805151651/https://core.trac.wordpress.org/search/opensearch" title="Search WordPress Trac"/> <script type="text/javascript"> var auto_preview_timeout=2.0; var form_token="13e8a02810f763f197f656ed"; var comments_prefs={"comments_only":"false","comments_order":"oldest"}; </script> <link href="//web.archive.org/web/20140805151651cs_/https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,400,300,600&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic" rel="stylesheet" type="text/css"/> <link rel="stylesheet" href="//web.archive.org/web/20140805151651cs_/https://s.w.org/style/wp4.css?4"/> <!--[if lte IE 8]> <style type="text/css"> @import url("//s.w.org/style/ie.css?1"); </style> <![endif]--> <meta name="viewport" content="width=device-width"/> <link rel="stylesheet" href="//web.archive.org/web/20140805151651cs_/https://s.w.org/wp-includes/css/dashicons.min.css?20140130" type="text/css"/> <link rel="stylesheet" type="text/css" href="//web.archive.org/web/20140805151651cs_/https://s.w.org/style/trac/wp-trac.css?38f"/> <script type="text/javascript" charset="utf-8" src="https://web.archive.org/web/20140805151651js_/https://s.w.org/style/trac/common/js/jquery.js"></script> <script type="text/javascript" charset="utf-8" src="https://web.archive.org/web/20140805151651js_/https://s.w.org/style/trac/common/js/babel.js"></script> <script type="text/javascript" charset="utf-8" src="https://web.archive.org/web/20140805151651js_/https://s.w.org/style/trac/common/js/trac.js"></script> <script type="text/javascript" charset="utf-8" src="https://web.archive.org/web/20140805151651js_/https://s.w.org/style/trac/common/js/search.js"></script> <script type="text/javascript" charset="utf-8" src="https://web.archive.org/web/20140805151651js_/https://s.w.org/style/trac/common/js/folding.js"></script> <script type="text/javascript" charset="utf-8" src="https://web.archive.org/web/20140805151651js_/https://s.w.org/style/trac/common/js/wikitoolbar.js"></script> <script type="text/javascript" charset="utf-8" src="https://web.archive.org/web/20140805151651js_/https://s.w.org/style/trac/common/js/resizer.js"></script> <script type="text/javascript" charset="utf-8" src="https://web.archive.org/web/20140805151651js_/https://s.w.org/style/trac/common/js/auto_preview.js"></script> <script type="text/javascript" src="https://web.archive.org/web/20140805151651js_/https://s.w.org/style/trac/common/js/threaded_comments.js"></script> <script type="text/javascript"> jQuery(document).ready(function($) { $("div.description").find("h1,h2,h3,h4,h5,h6").addAnchor(_("Link to this section")); $(".foldable").enableFolding(false, true); /*<![CDATA[*/ $("#attachments").toggleClass("collapsed"); $("#trac-up-attachments").click(function () { $("#attachments").removeClass("collapsed"); return true; }); $("#modify").parent().toggleClass("collapsed"); $(".trac-topnav a").click(function() { $("#modify").parent().removeClass("collapsed"); }); /* only enable control elements for the currently selected action */ var actions = $("#action input[name='action']"); function updateActionFields() { actions.each(function () { $(this).siblings().find("*[id]").enable($(this).checked()); $(this).siblings().filter("*[id]").enable($(this).checked()); }); } actions.click(updateActionFields); updateActionFields(); function setRevertHandler() { $("button.trac-revert").click(function() { var div = $("div", this); var field_name = div[0].id.substr(7); var field_value = div.text(); var input = $("#propertyform *[name=field_" + field_name + "]"); if (input.length > 0) { if (input.filter("input[type=radio]").length > 0) { input.val([field_value]); } else if (input.filter("input[type=checkbox]").length > 0) { input.val(field_value == "1" ? [field_value] : []); } else { input.val(field_value); } } else { // Special case for CC checkbox input = $("#propertyform input[name=cc_update]").val([]); } input.change(); $(this).closest("li").remove(); return false; }); } setRevertHandler(); var comment_focused = false; $("#comment").focus(function() { comment_focused = true; }) .blur(function() { comment_focused = false; }); $("#propertyform").autoSubmit({preview: '1'}, function(data, reply) { var items = $(reply); // Update ticket box $("#ticket").replaceWith(items.filter('#ticket')); // Unthread, unrevert and update changelog if (!$('#trac-comments-oldest').checked()) $('#trac-comments-oldest').click().change(); $("#changelog").replaceWith(items.filter("#changelog")); if ($('#trac-comments-only-toggle').attr('checked')) $('#trac-comments-only-toggle').click().attr('checked', true); // Show warning var new_changes = $("#changelog .trac-new"); $("#trac-edit-warning").toggle(new_changes.length != 0); if (new_changes.length != 0) $("#changelog").parent().show().removeClass("collapsed"); // Update view time $("#propertyform input[name='view_time']").replaceWith(items.filter("input[name='view_time']")); // Update preview var preview = $("#ticketchange").html(items.filter('#preview').children()); var show_preview = preview.children().length != 0; $("#ticketchange").toggle(show_preview); setRevertHandler(); // Collapse property form if comment editor has focus if (show_preview && comment_focused) $("#modify").parent().addClass("collapsed"); }, "#ticketchange .trac-loading"); $("#trac-comment-editor").autoSubmit({preview_comment: '1'}, function(data, reply) { var comment = $("#trac-comment-editor").next("div.comment").html(reply); comment.toggle(comment.children().length != 0); }, "#changelog .trac-loading"); /*]]>*/ }); </script> <link rel="stylesheet" href="//web.archive.org/web/20140805151651cs_/https://s.w.org/wp-content/plugins/trac-notifications/make-core.css?ver=3"/> </head> <body id="wordpress-org" class="core trac wporg-make make-core"> <div id="wporg-header"> <div class="wrapper"> <a id="mobile-menu-button" class="" href="#" onclick="toggleMenu();"></a> <h1><a href="//web.archive.org/web/20140805151651/https://wordpress.org/">WordPress.org</a></h1> <div id="head-search"> <form action="//web.archive.org/web/20140805151651/https://wordpress.org/search/do-search.php" method="get"> <input class="text" name="search" type="text" value="" maxlength="150" placeholder="Search WordPress.org"/> <input type="submit" class="button" value=""/> </form> </div> <div style="clear:both"></div> <ul id="wporg-header-menu"> <li><a href="//web.archive.org/web/20140805151651/https://wordpress.org/showcase/" title="See some of the sites built on WordPress.">Showcase</a></li> <li><a href="//web.archive.org/web/20140805151651/https://wordpress.org/themes/" title="Find just the right look for your website.">Themes</a></li> <li><a href="//web.archive.org/web/20140805151651/https://wordpress.org/plugins/" title="Plugins can extend WordPress to do almost anything you can imagine.">Plugins</a> <div class="uparrow"></div> </li> <li><a href="//web.archive.org/web/20140805151651/https://wordpress.org/mobile/" title="Take your website on the go!">Mobile</a></li> <li><a href="//web.archive.org/web/20140805151651/https://wordpress.org/support/" title="Forums, documentation, help.">Support</a> <ul class="nav-submenu"> <li><a href="//web.archive.org/web/20140805151651/https://wordpress.org/support/" title="Support and discussion forums.">Forums</a></li> <li><a href="//web.archive.org/web/20140805151651/https://codex.wordpress.org/Main_Page" title="Documentation, tutorials, best practices.">Documentation</a></li> </ul> <div class="uparrow"></div> </li> <li><a href="//web.archive.org/web/20140805151651/https://make.wordpress.org/" title="Contribute your knowledge." class="current">Get Involved</a></li> <li><a href="//web.archive.org/web/20140805151651/https://wordpress.org/about/" title="About the WordPress Organization, and where we're going.">About</a></li> <li><a href="//web.archive.org/web/20140805151651/https://wordpress.org/news/" title="Come here for the latest scoop.">Blog</a></li> <li><a href="//web.archive.org/web/20140805151651/https://wordpress.org/hosting/" title="Find a home for your blog.">Hosting</a></li> <li id="download" class="button download-button"><a href="//web.archive.org/web/20140805151651/https://wordpress.org/download/" title="Get it. Got it? Good.">Download WordPress</a></li> </ul> <div style="clear:both"></div> </div> </div> <div id="headline"> <div class="wrapper"> <h2><a href="//web.archive.org/web/20140805151651/https://make.wordpress.org/core/">Make WordPress Core</a></h2> <div class="menu-container"><ul class="menu"> <li><a href="https://web.archive.org/web/20140805151651/http://make.wordpress.org/core/">Blog</a></li> <li><a href="https://web.archive.org/web/20140805151651/http://make.wordpress.org/core/handbook/">Handbook</a></li> <li><a class="open-ticket-report" href="https://web.archive.org/web/20140805151651/http://make.wordpress.org/core/reports/">Tickets</a></li> <li><a href="https://web.archive.org/web/20140805151651/http://make.wordpress.org/core/components/">Components</a></li> <li class="icon browser"><a title="Browse Source" href="//web.archive.org/web/20140805151651/https://core.trac.wordpress.org/browser">Browse Source</a></li> <li class="icon timeline"><a title="Trac Timeline" href="//web.archive.org/web/20140805151651/https://core.trac.wordpress.org/timeline">Trac Timeline</a></li> <li class="icon newticket"><a title="Create a New Ticket" href="//web.archive.org/web/20140805151651/https://wordpress.org/support/bb-login.php?redirect_to=https://core.trac.wordpress.org/newticket">Create a New Ticket</a></li> </ul></div> </div> </div> <div id="banner"> <form id="search" action="/web/20140805151651/https://core.trac.wordpress.org/search" method="get"> <div> <label for="proj-search">Search:</label> <input type="text" id="proj-search" name="q" size="18" value=""/> <input type="submit" value="Search"/> </div> </form> <div id="metanav" class="nav"> <ul> <li class="first"><a href="/web/20140805151651/https://core.trac.wordpress.org/login">Login</a></li><li class="last"><a href="https://web.archive.org/web/20140805151651/https://make.wordpress.org/core/notifications/">Notifications</a></li> </ul> </div> </div> <div id="mainnav" class="nav"> </div> <div id="main"> <div id="ctxtnav" class="nav"> <h2>Context Navigation</h2> <ul> <li class="first"><span>← <a class="prev" href="/web/20140805151651/https://core.trac.wordpress.org/ticket/23095" title="Ticket #23095">Previous Ticket</a></span></li><li class="last"><span><a class="next" href="/web/20140805151651/https://core.trac.wordpress.org/ticket/23097" title="Ticket #23097">Next Ticket</a> →</span></li> </ul> <hr/> </div> <div id="content" class="ticket"> <div id="ticket" class="trac-content "> <div class="date"> <p>Opened <a class="timeline" href="/web/20140805151651/https://core.trac.wordpress.org/timeline?from=2012-12-31T18%3A33%3A52Z&precision=second" title="See timeline at 12/31/12 18:33:52">19 months ago</a></p> <p>Last modified <a class="timeline" href="/web/20140805151651/https://core.trac.wordpress.org/timeline?from=2014-05-25T06%3A27%3A37Z&precision=second" title="See timeline at 05/25/14 06:27:37">2 months ago</a></p> </div> <h2> <a href="/web/20140805151651/https://core.trac.wordpress.org/ticket/23096" class="trac-id">#23096</a> <span class="trac-status"> <a href="/web/20140805151651/https://core.trac.wordpress.org/query?status=new">new</a> </span> <span class="trac-type"> <a href="/web/20140805151651/https://core.trac.wordpress.org/query?status=!closed&type=enhancement">enhancement</a> </span> </h2> <h1 id="trac-ticket-title" class="searchable"> <span class="summary">Provide callback before setting state of the editor media manager</span> </h1> <table class="properties"> <tr> <th id="h_reporter">Reported by:</th> <td headers="h_reporter" class="searchable"> <a href="//web.archive.org/web/20140805151651/https://profiles.wordpress.org/griffinjt"> <img class="avatar" src="//web.archive.org/web/20140805151651im_/https://wordpress.org/grav-redirect.php?user=griffinjt&s=36" height="36" width="36"/> </a> <a href="/web/20140805151651/https://core.trac.wordpress.org/query?status=!closed&reporter=griffinjt">griffinjt</a> </td> <th id="h_owner" class="missing">Owned by:</th> <td headers="h_owner"> </td> </tr> <tr> <th id="h_milestone"> Milestone: </th> <td headers="h_milestone"> <a class="milestone" href="/web/20140805151651/https://core.trac.wordpress.org/milestone/Awaiting%20Review">Awaiting Review</a> </td> <th id="h_priority"> Priority: </th> <td headers="h_priority"> <a href="/web/20140805151651/https://core.trac.wordpress.org/query?status=!closed&priority=normal">normal</a> </td> </tr><tr> <th id="h_severity"> Severity: </th> <td headers="h_severity"> <a href="/web/20140805151651/https://core.trac.wordpress.org/query?status=!closed&severity=normal">normal</a> </td> <th id="h_version"> Version: </th> <td headers="h_version"> <a href="/web/20140805151651/https://core.trac.wordpress.org/query?status=!closed&version=3.5">3.5</a> </td> </tr><tr> <th id="h_component"> Component: </th> <td headers="h_component"> <a href="/web/20140805151651/https://core.trac.wordpress.org/query?status=!closed&component=Media">Media</a> </td> <th id="h_keywords"> Keywords: </th> <td headers="h_keywords" class="searchable"> <a href="/web/20140805151651/https://core.trac.wordpress.org/query?status=!closed&keywords=~has-patch">has-patch</a> <a href="/web/20140805151651/https://core.trac.wordpress.org/query?status=!closed&keywords=~dev-feedback">dev-feedback</a> </td> </tr><tr> <th id="h_focuses" class="missing"> Focuses: </th> <td headers="h_focuses"> </td> <th id="h_cc" class="missing"> Cc: </th> <td headers="h_cc" class="searchable"> </td> </tr> </table> <div class="description"> <h3 id="comment:description"> Description <a href="/web/20140805151651/https://core.trac.wordpress.org/ticket/23096?action=diff&version=2" class="lastmod trac-diff" title="2013-01-01 18:09:37.451906+00:00"> (last modified by SergeyBiryukov) </a> </h3> <div class="searchable"> <p> In the current setup, there is no way to modify the current state or views when the media manager is opened from the "Add Media" button. By the time you can modify anything, all the default views have been rendered and all of the events have been fired.<br/> </p> <p> It would be helpful to check for the existence of a callback, and if it exists, run that before returning the workflow.<br/> </p> <p> My patch does this, which you could invoke in this way:<br/> </p> <pre class="wiki">wp.media.editor.extend = function(workflow){ // Manipulate the workflow here } </pre><p> Thoughts? This is only for the default media manager that is invoked by clicking the Add Media button.<br/> </p> </div> </div> </div> <div id="attachments"> <h3 class="foldable">Attachments <span class="trac-count">(1)</span></h3> <div class="attachments"> <dl class="attachments"> <dt> <a href="/web/20140805151651/https://core.trac.wordpress.org/attachment/ticket/23096/23096.diff" title="View attachment">23096.diff</a><a href="/web/20140805151651/https://core.trac.wordpress.org/raw-attachment/ticket/23096/23096.diff" class="trac-rawlink" title="Download"></a> (<span title="604 bytes">604 bytes</span>) - added by <em>griffinjt</em> <a class="timeline" href="/web/20140805151651/https://core.trac.wordpress.org/timeline?from=2012-12-31T18%3A37%3A30Z&precision=second" title="See timeline at 12/31/12 18:37:30">19 months ago</a>. </dt> </dl> <p> Download all attachments as: <a rel="nofollow" href="/web/20140805151651/https://core.trac.wordpress.org/zip-attachment/ticket/23096/">.zip</a> </p> </div> </div> <div> <div style="position: relative"> <form id="prefs" method="get" action="/web/20140805151651/https://core.trac.wordpress.org/prefs" style="position: absolute; right: 0"> <div id="trac-comments-order"> <input type="radio" id="trac-comments-oldest" name="trac-comments-order" value="oldest" checked="checked"/> <label for="trac-comments-oldest">Oldest first</label> <input type="radio" id="trac-comments-newest" name="trac-comments-order" value="newest"/> <label for="trac-comments-newest">Newest first</label> <span id="trac-threaded-toggle" style="display: none"> <input type="radio" id="trac-comments-threaded" name="trac-comments-order" value="threaded"/> <label for="trac-comments-threaded">Threaded</label> </span> </div> <div> <input id="trac-comments-only-toggle" type="checkbox"/> <label for="trac-comments-only-toggle">Comments only</label> </div> </form> </div> <h3 class="foldable">Change History <span class="trac-count">(7)</span></h3> <div id="changelog"> <div class="change"> <h3 class="change"> <span class="threading"> </span> <span class="avatar"> <a href="//web.archive.org/web/20140805151651/https://profiles.wordpress.org/griffinjt" class="profile-link"> <img src="//web.archive.org/web/20140805151651im_/https://wordpress.org/grav-redirect.php?user=griffinjt&s=36" height="36" width="36"/> <span class="username" data-username="griffinjt">griffinjt</span></a> — <a class="timeline" href="/web/20140805151651/https://core.trac.wordpress.org/timeline?from=2012-12-31T18%3A37%3A30Z&precision=second" title="See timeline at 12/31/12 18:37:30">19 months</a> ago </span> <div class="trac-ticket-buttons"> </div> </h3> <div class="trac-ticket-buttons"></div> <ul class="changes"> <li class="trac-field-attachment"> <strong class="trac-field-attachment">Attachment</strong> <a href="/web/20140805151651/https://core.trac.wordpress.org/attachment/ticket/23096/23096.diff"><em>23096.diff</em></a><a href="/web/20140805151651/https://core.trac.wordpress.org/raw-attachment/ticket/23096/23096.diff" title="Download" class="trac-rawlink"></a> added </li> </ul> </div> <div class="change" id="trac-change-1-1356979143936458"> <h3 class="change"> <span class="threading"> <span id="comment:1" class="cnum"> <a href="#comment:1">comment:1</a> </span> </span> <span class="avatar"> <a href="//web.archive.org/web/20140805151651/https://profiles.wordpress.org/griffinjt" class="profile-link"> <img src="//web.archive.org/web/20140805151651im_/https://wordpress.org/grav-redirect.php?user=griffinjt&s=36" height="36" width="36"/> <span class="username" data-username="griffinjt">griffinjt</span></a> — <a class="timeline" href="/web/20140805151651/https://core.trac.wordpress.org/timeline?from=2012-12-31T18%3A39%3A03Z&precision=second" title="See timeline at 12/31/12 18:39:03">19 months</a> ago </span> <div class="trac-ticket-buttons"> </div> </h3> <div class="trac-ticket-buttons"></div> <div class="comment searchable"> <p> Oops, wrong syntax for code block. This should look better:<br/> </p> <pre class="wiki">wp.media.editor.extend = function(workflow){ // Manipulate workflow here } </pre> </div> </div> <div class="change" id="trac-change-2-1357063777451906"> <h3 class="change"> <span class="threading"> <span id="comment:2" class="cnum"> <a href="#comment:2">comment:2</a> </span> </span> <span class="avatar"> <a href="//web.archive.org/web/20140805151651/https://profiles.wordpress.org/SergeyBiryukov" class="profile-link"> <img src="//web.archive.org/web/20140805151651im_/https://wordpress.org/grav-redirect.php?user=SergeyBiryukov&s=36" height="36" width="36"/> <span class="username" data-username="SergeyBiryukov">SergeyBiryukov</span></a> — <a class="timeline" href="/web/20140805151651/https://core.trac.wordpress.org/timeline?from=2013-01-01T18%3A09%3A37Z&precision=second" title="See timeline at 01/01/13 18:09:37">19 months</a> ago </span> <div class="trac-ticket-buttons"> </div> </h3> <div class="trac-ticket-buttons"></div> <ul class="changes"> <li class="trac-field-description"> <strong class="trac-field-description">Description</strong> modified (<a href="/web/20140805151651/https://core.trac.wordpress.org/ticket/23096?action=diff&version=2">diff</a>) </li> </ul> </div> <div class="change" id="trac-change-3-1357063840101278"> <h3 class="change"> <span class="threading"> <span id="comment:3" class="cnum"> <a href="#comment:3">comment:3</a> </span> </span> <span class="avatar"> <a href="//web.archive.org/web/20140805151651/https://profiles.wordpress.org/SergeyBiryukov" class="profile-link"> <img src="//web.archive.org/web/20140805151651im_/https://wordpress.org/grav-redirect.php?user=SergeyBiryukov&s=36" height="36" width="36"/> <span class="username" data-username="SergeyBiryukov">SergeyBiryukov</span></a> — <a class="timeline" href="/web/20140805151651/https://core.trac.wordpress.org/timeline?from=2013-01-01T18%3A10%3A40Z&precision=second" title="See timeline at 01/01/13 18:10:40">19 months</a> ago </span> <div class="trac-ticket-buttons"> </div> </h3> <div class="trac-ticket-buttons"></div> <ul class="changes"> <li class="trac-field-version"> <strong class="trac-field-version">Version</strong> changed from <em>trunk</em> to <em>3.5</em> </li> </ul> </div> <div class="change" id="trac-change-4-1359131748879898"> <h3 class="change"> <span class="threading"> <span id="comment:4" class="cnum"> <a href="#comment:4">comment:4</a> </span> </span> <span class="avatar"> <a href="//web.archive.org/web/20140805151651/https://profiles.wordpress.org/sc0ttkclark" class="profile-link"> <img src="//web.archive.org/web/20140805151651im_/https://wordpress.org/grav-redirect.php?user=sc0ttkclark&s=36" height="36" width="36"/> <span class="username" data-username="sc0ttkclark">sc0ttkclark</span></a> — <a class="timeline" href="/web/20140805151651/https://core.trac.wordpress.org/timeline?from=2013-01-25T16%3A35%3A48Z&precision=second" title="See timeline at 01/25/13 16:35:48">19 months</a> ago </span> <div class="trac-ticket-buttons"> </div> </h3> <div class="trac-ticket-buttons"></div> <ul class="changes"> <li class="trac-field-cc"> <strong class="trac-field-cc">Cc</strong> <em>lol@…</em> added </li> </ul> <div class="comment searchable"> <p> WANT / NEED. Caps on purpose.<br/> </p> </div> </div> <div class="change" id="trac-change-5-1359132843705317"> <h3 class="change"> <span class="threading"> <span id="comment:5" class="cnum"> <a href="#comment:5">comment:5</a> </span> </span> <span class="avatar"> <a href="//web.archive.org/web/20140805151651/https://profiles.wordpress.org/husobj" class="profile-link"> <img src="//web.archive.org/web/20140805151651im_/https://wordpress.org/grav-redirect.php?user=husobj&s=36" height="36" width="36"/> <span class="username" data-username="husobj">husobj</span></a> — <a class="timeline" href="/web/20140805151651/https://core.trac.wordpress.org/timeline?from=2013-01-25T16%3A54%3A03Z&precision=second" title="See timeline at 01/25/13 16:54:03">19 months</a> ago </span> <div class="trac-ticket-buttons"> </div> </h3> <div class="trac-ticket-buttons"></div> <ul class="changes"> <li class="trac-field-cc"> <strong class="trac-field-cc">Cc</strong> <em>ben@…</em> added </li> </ul> </div> <div class="change" id="trac-change-6-1400999257486256"> <h3 class="change"> <span class="threading"> <span id="comment:6" class="cnum"> <a href="#comment:6">comment:6</a> </span> </span> <span class="avatar"> <a href="//web.archive.org/web/20140805151651/https://profiles.wordpress.org/ericlewis" class="profile-link"> <img src="//web.archive.org/web/20140805151651im_/https://wordpress.org/grav-redirect.php?user=ericlewis&s=36" height="36" width="36"/> <span class="username" data-username="ericlewis">ericlewis</span></a> — <a class="timeline" href="/web/20140805151651/https://core.trac.wordpress.org/timeline?from=2014-05-25T06%3A27%3A37Z&precision=second" title="See timeline at 05/25/14 06:27:37">2 months</a> ago </span> <div class="trac-ticket-buttons"> </div> </h3> <div class="trac-ticket-buttons"></div> <div class="comment searchable"> <p> What is your goal here? <br/> </p> <p> You can extend/override the controller <tt>media.view.MediaFrame.Whatever</tt> to do whatever you want. <br/> </p> <p> I think you may be dreaming of <a class="new ticket" href="/web/20140805151651/https://core.trac.wordpress.org/ticket/21170" title="feature request: JavaScript actions and filters (new)">#21170</a>.<br/> </p> </div> </div> </div> </div> <div id="help"><strong>Note:</strong> See <a href="/web/20140805151651/https://core.trac.wordpress.org/wiki/TracTickets">TracTickets</a> for help on using tickets.</div> </div> <div id="altlinks"> <a class="preferences-link" href="/web/20140805151651/https://core.trac.wordpress.org/prefs">Trac UI Preferences</a> <h3>Download in other formats:</h3> <ul> <li class="first"> <a rel="nofollow" href="/web/20140805151651/https://core.trac.wordpress.org/ticket/23096?format=csv" class="csv">Comma-delimited Text</a> </li><li> <a rel="nofollow" href="/web/20140805151651/https://core.trac.wordpress.org/ticket/23096?format=tab" class="tab">Tab-delimited Text</a> </li><li class="last"> <a rel="nofollow" href="/web/20140805151651/https://core.trac.wordpress.org/ticket/23096?format=rss" class="rss">RSS Feed</a> </li> </ul> </div> </div> <div id="wporg-footer"> <div class="wrapper"> <ul> <li><a href="//web.archive.org/web/20140805151651/https://wordpress.org/about/" title="An introduction to the WordPress project">About</a></li> <li><a href="//web.archive.org/web/20140805151651/https://wordpress.org/news/" title="News and Updates">Blog</a></li> <li><a href="//web.archive.org/web/20140805151651/https://wordpress.org/hosting/" title="Recommended web hosting providers">Hosting</a></li> <li><a href="https://web.archive.org/web/20140805151651/http://jobs.wordpress.net/" title="Find or post WordPress jobs">Jobs</a></li> </ul> <ul> <li><a href="//web.archive.org/web/20140805151651/https://wordpress.org/support/" title="Forums, documentation, and other resources">Support</a></li> <li><a href="//web.archive.org/web/20140805151651/https://make.wordpress.org/" title="Give back to WordPress through code, support, translation and more">Get Involved</a></li> <li><a href="//web.archive.org/web/20140805151651/https://learn.wordpress.org/" title="Workshops and training materials">Learn</a></li> </ul> <ul> <li><a href="//web.archive.org/web/20140805151651/https://wordpress.org/showcase/" title="Some of the best WordPress sites on the Web">Showcase</a></li> <li><a href="//web.archive.org/web/20140805151651/https://wordpress.org/plugins/" title="Add extra functionality to WordPress">Plugins</a></li> <li><a href="//web.archive.org/web/20140805151651/https://wordpress.org/themes/" title="Make your WordPress pretty">Themes</a></li> <li><a href="//web.archive.org/web/20140805151651/https://wordpress.org/ideas/" title="Share your ideas for improving WordPress">Ideas</a></li> </ul> <ul> <li><a href="https://web.archive.org/web/20140805151651/http://central.wordcamp.org/" title="Find a WordPress event near you">WordCamp</a></li> <li><a href="https://web.archive.org/web/20140805151651/http://wordpress.tv/" title="Videos, tutorials, and WordCamp sessions">WordPress.TV</a></li> <li><a href="//web.archive.org/web/20140805151651/https://buddypress.org/" title="A set of plugins to transform your WordPress into a social network">BuddyPress</a></li> <li><a href="//web.archive.org/web/20140805151651/https://bbpress.org/" title="Fast, slick forums built on WordPress">bbPress</a></li> </ul> <ul> <li><a href="https://web.archive.org/web/20140805151651/http://wordpress.com/?ref=wporg-footer" title="Hassle-free WordPress hosting">WordPress.com</a></li> <li><a href="https://web.archive.org/web/20140805151651/http://ma.tt/" title="Co-founder of WordPress, an example of what WordPress can do">Matt</a></li> <li><a href="//web.archive.org/web/20140805151651/https://wordpress.org/about/privacy/" title="WordPress.org Privacy Policy">Privacy</a></li> <li><a href="//web.archive.org/web/20140805151651/https://wordpress.org/about/license/" title="WordPress is open source software">License / GPLv2</a></li> </ul> </div> <h6 class="aligncenter">Code is Poetry</h6> </div> <script type="text/javascript"> var _qevents = _qevents || []; (function() { var elem = document.createElement('script'); elem.src = (document.location.protocol == "https:" ? "https://web.archive.org/web/20140805151651/https://secure" : "https://web.archive.org/web/20140805151651/http://edge") + ".quantserve.com/quant.js"; elem.async = true; elem.type = "text/javascript"; var scpt = document.getElementsByTagName('script')[0]; scpt.parentNode.insertBefore(elem, scpt); })(); </script> <script type="text/javascript">_qevents.push( { qacct:"p-18-mFEk4J448M"} );</script> <noscript><img src="//web.archive.org/web/20140805151651im_/https://pixel.quantserve.com/pixel/p-18-mFEk4J448M.gif" style="display: none;" border="0" height="1" width="1" alt=""/></noscript> <script src="//web.archive.org/web/20140805151651js_/https://s.w.org/style/trac/wp-trac.js?38f"></script> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://web.archive.org/web/20140805151651/https://ssl." : "https://web.archive.org/web/20140805151651/http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-52447-27"); pageTracker._trackPageview(); } catch(err) {}</script> <script> (function() { var settings = { endpoint: '//web.archive.org/web/20140805151651/https://make.wordpress.org/core/', authenticated: 0 }; settings.ticket = 23096; wpTrac.notifications.init(settings); })(); </script> <div id="report-popup"></div> <script> (function($){ var titles = { ryan: 'Lead Developer', markjaquith: 'Lead Developer', matt: 'Project Lead', nacin: 'Lead Developer', azaozz: 'Lead Developer', westi: 'Lead Developer', dd32: 'Core Committer', koopersmith: 'Core Committer', duck_: 'Core Committer', helen: 'Core Committer', wonderboymusic: 'Core Committer', ocean90: 'Core Committer', sergeybiryukov: 'Core Committer', johnbillion: 'Core Committer', iammattthomas: 'Core Committer', lancewillett: 'Themes Committer', drewapicture: 'Docs Committer' }; $('h3.change .profile-link').each( function() { var el = $(this); user = el.attr('href').split('/').pop().toLowerCase(); if ( user in titles ) { el.after( ' <span class="contributor-label">(' + titles[ user ] + ')</span>' ); } }); })(jQuery); </script> </body> </html><!-- FILE ARCHIVED ON 15:16:51 Aug 05, 2014 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 09:59:21 Nov 28, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 0.535 exclusion.robots: 0.026 exclusion.robots.policy: 0.017 esindex: 0.009 cdx.remote: 19.986 LoadShardBlock: 555.933 (3) PetaboxLoader3.resolve: 266.607 (4) PetaboxLoader3.datanode: 385.616 (4) load_resource: 203.635 -->