[wp-trac] [WordPress Trac] #20014: Possibly add support for dragging of meta boxes to touch-based interfaces
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 2 20:04:19 UTC 2012
#20014: Possibly add support for dragging of meta boxes to touch-based interfaces
-----------------------------------------+--------------------
Reporter: georgestephanis | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.4
Component: UI | Version: 3.3.1
Severity: normal | Resolution:
Keywords: tableteers commit has-patch |
-----------------------------------------+--------------------
Comment (by azaozz):
Replying to [comment:16 markoheijnen]:
> I rather have one global that knows everything about the browser then
several globals that knows something about the browser.
Right, instead of a global there can be a static inside a function,
similar to how $current_user works at the moment:
{{{
function wp_current_browser() {
static $current_browser = null;
if ( $current_browser !== null )
return $current_browser;
$current_browser = array(...);
$current_browser = apply_filters('wp_current_browser',
$current_browser);
}
}}}
Still not sure that's the best way to do it though.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20014#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list