« first day (1282 days earlier)      last day (3670 days later) » 

12:11 AM
I wrote up the spring engine WordPress site thing darkstars.co.uk/2014/the-spring-engine-website
 
 
3 hours later…
3:36 AM
0
Q: What's the best way to approach asking a question that needs to be asked again because of age?

user658182I need to ask a question that has been asked in the past. How to let authors only see website stats for their posts? However that question is more than 3 years old. Since significant technical advances have been made since 2011, it's quite possible that there is now a solution for this when bef...

 
 
6 hours later…
10:04 AM
 
10:30 AM
@StephenHarris that's exactly what it is... isn't it? As you can specify your own custom delimiters and such.
 
 
2 hours later…
12:05 PM
function __construct() {
		@list( $this->handle, $this->src, $this->deps, $this->ver, $this->args ) = func_get_args();
ugh
 
wtf
 
wp
 
of course
idiocy
is that in script loader or something?
 
yeah
 
thought so
 
12:19 PM
that checkbox!
 
12:46 PM
is fake?
 
12:56 PM
yes
 
 
1 hour later…
2:18 PM
@gusdecool yep, we know. It is a worp in progress.
> worp - when you do work at warp speed
 
2:31 PM
@Rarst oh. nice... or something else.
 
 
2 hours later…
4:13 PM
@TomJNowell Just read about two clubs in Berlin: Renate and Berghain
 
4:27 PM
 
nice pic i like
 
4:45 PM
> It is based on the Underscores templating engine, but it modifies the syntax of it to make it look and feel just a little more like the Mustache, but without dragging an entire extra library along for the ride
Made me think it was more than that. After second reading it perhaps isn't suggesting that. Just seems odd to me that they bothered to change the syntax at all...
Meh, I give up trying to get that blockquote to work...
 
space between the > and-your-quote
...I use LoDash, a better alternative to Underscore and I use the inbuilt templating helper too, every so often I change the delimiters to meet my use case, but not in the way WP has... Not sure if the way they did it provides any extra value or not.
 
@StephenHarris quotes have to stand alone.
 
@kaiser I know...
 
@userabuser sry, was meant to tell that Stephen
 
@kaiser Does that mean, a line separating it, or be its own comment?
@userabuser I think it's just a replacement of syntax.
 
4:59 PM
@StephenHarris Looking closer it seems that way... I don't mind the Mustache syntax, its easy to read but I am just as happy with <%= prop %>, <%- prop%>... I don't mind the ES6 style delimiter too, ${ prop }
 
@StephenHarris own comment
 
5:21 PM
can anyone quickly check if wp-cli search-replace sees post meta (with --dry-run) ?.. it shows zero matches for strings that are clearly in table
 
 
1 hour later…
6:32 PM
'show_in_nav_menus' => TRUE for a CPT – why doesn’t that do anything? I have a published post in that already.
found it: if your post is named form, the argument fails. doh!
 
7:03 PM
OK, I take it back, there was a leaked user meta that has set the metabox to hidden.
 
 
2 hours later…
9:07 PM
post_submit_meta_box() is a monster of a function....
 
9:53 PM
hey guys and gals, anyone know why this person is loading jquery in their header and footer stackoverflow.com/questions/23187354/…
I believe they only want it to load once in their footer.
 
10:08 PM
@UzumakiDev foolishness
or inexperience
deregistering jQuery in WordPress is a bad idea
and enqueing it twice is needless
 
10:39 PM
@TomJNowell Why is deregistering so bad?
 
because the theme isnt the only thing that depends on jquery
and the jquery that comes with WordPress tends to be newer
other plugins and widgets cant cater to the whims of every theme developers choice of jquery, instead standardising on what WP Core has is safest
 
Ah, okay.
 
deregistering is both unnecessary and has compatability issues
though there are some who would try to argue the opposite in favor of Google CDNs
 
so if they just removed though deregister and enqueue it should just work and not load twice?
 
but that's been discussed on the main site before, it's simpler to just wp_enqueue_script('jquery');
 
10:41 PM
well yes, I was thinking CDNs
 
it probably wont load twice
but it's not an advisable thing to do
and it probably doesnt do quite what they expected it to
I wouldn't consider it a good example
 
so just remove the deregitster and keep wp_enqueue_script('jquery');? Would they even need enqueue as say one of the scripts "main_js" was dependant on jquery? Wordpress would just enqueue it for them?
 
10:57 PM
Thing to remember to don't say stupid to yourself: if you git-ignore file.php be sure you don't have an important file /a/path/File.php somewhere in the repo.
 
11:15 PM
@UzumakiDev register and enqueue main JS, if it depends on jquery, say so, and it will be loaded in the appropriate order
it's that simple, a lot of people have strange ideas and think weird things that make stuff complicated, ignore it, it'll save you much time
 
@TomJNowell The whole registering and enqueue thing was so confusing when I first stumbled upon it, so many mixed messages, as you say.
completely unrelated question, but I'm using get_post_gallery_images and it's spitting images as 150x150. It doesn't look like it takes a size parameter so I assumed it would just spit out the largest image, 150x150 is too small though, is there somewhere I declare what size gallery images I want?
 
@G.M. Well, it’s /file.php, not file.php. :P
 
11:41 PM
@UzumakiDev perhaps ask on the main site
it's late here and most of this chat rooms occupants are in european timezones
 
ah okay, yea I'm in that european timezone too :)
 
@toscho exactly. NOW I've already fixed that, after I had to rewrite a class almost from scratch...
 
very few WooCommerce questions today. nice
 

« first day (1282 days earlier)      last day (3670 days later) »