« first day (1434 days earlier)      last day (3506 days later) » 

5:12 AM
@kaiser you working on a theme that has that? I feel for you!
 
 
2 hours later…
6:48 AM
Creating WP themes with MVC :). Directory structure is something like this
-- ThemeName
----- app
----- public
----- style.css
----- functions.php
----- index.php
Wondering if I could get rid requirement of having style.css, index.php, functions.php on root of the theme.
 
nope
 
I want to use composer but need a way so people who are using the theme don't have to install composer. any idea?
 
distribute "built" archive
 
dumping of dependent files inside the theme right?
 
yeah
 
 
4 hours later…
10:31 AM
function custommm_functiooonn($content){} well, at least it's unique.
 
11:19 AM
enqueue/register scripts/styles, where would they go? Controller or view?
 
model
 
11:42 AM
MVC — so obvious it takes only three guesses to pick correct of three options
 
:)
 
yet I missed one :/
 
more importantly, why?
 
12:27 PM
sudo aptßget update
when switching from an English to a German keyboard...
 
@kaiser set keymap de for a quick workaround should work
 
How-to?
 
just type »set keymap de« into the cli
 
12:53 PM
ah. kool. will give that a try. thanks!
 
Almost nobody uses jQuery UI anymore, this is for the "almost": jQuery UI (less.js) theme for WP admin https://github.com/Giuseppe-Mazzapica/jquery-ui-wp-admin-theme/tree/master
 
1:12 PM
@kaiser np, if that doesn't work try
setxkbmap de
but both of those are just temporarily, if you are having trouble making it persistent run
dpkg-reconfigure keyboard-configuration
 
if I'm on /hello/test.php, and need to redirect to example.com, is it possible to do a PHP redirect and make example.com think the request came from /test.php not /hello/test.php ?
 
afaik the referrer comes from the browser, so without actually adding another redirect hop via /test.php I do not think this is possible.
 
it's the redirect hop I'm trying to refactor out
example.com expects the user to be redirected from a particular location
 
1:27 PM
what about: header('Referer: xyz.com')? Shooting in the dark though..
 
Referer is a Request Header, not a Response Header. So you can only alter it at the target (example.com) which probably doesn't help at all here
 
makes sense, probably should've known that
 
hmmm
what if the redirect was triggered in javascript?
 
1:45 PM
Can't see why this should change anything. The header is still sent by the browser.
But try yourself. Firebug>Network>Header>Request Header
 
found an answer on Stack Overflow suggesting to use history.pushState/replaceState, which if that works would be neat
 
The comment says that this only works while staying on the same domain.
 
plus it isn't available in all browsers
 
hmm, indeed and true
 
2:12 PM
> Myself and my employer thank you for any input immensely.
 
2:41 PM
@ialocin nice. thanks a ton
 
@TomJNowell set Content-Location before you send the Location. Some browsers might adjust their referer.
 
3:12 PM
@kaiser np, I switch to Linux as my operating system quite a long time ago, sometimes it comes in handy
 
3:33 PM
But she's not returning me anything. – we grown-ups know that this is normal.
5
 

« first day (1434 days earlier)      last day (3506 days later) »