« first day (2112 days earlier)      last day (2821 days later) » 

12:15 AM
Field guide to WP 4.6, which is mostly a developer-focussed release: make.wordpress.org/core/2016/07/26/wordpress-4-6-field-guide I'm most excited about WP_Term_Query
@Howdy_McGee If you 'accept and improve', they still get 2 rep, and their edit is still shown in the edit history. You also start from their edit when improving. If you 'reject and improve', they don't get the rep, and their edit is discarded - you start from the existing state of the post when improving.
@Howdy_McGee Also, if you accept and improve, the edit is approved instantly, even if you are the only person to review it.
@Howdy_McGee And yes, edits take 2 approvals (3 on StackOverflow). You can see how an edit is going by visiting the review page eg. wordpress.stackexchange.com/review/suggested-edits/110506
 
 
5 hours later…
5:34 AM
:( a query is not an object in any useful sense. There is no reason to be proud in writing procedural code wrapped as if it is OOP.
It probably needs to just be an iterator
 
 
3 hours later…
8:50 AM
@MarkKaplun There is no OOP in WordPress.
 
 
1 hour later…
10:12 AM
that is exactly what I said, I just used more words ;)
 
10:35 AM
the point of query object is implementation, not OOP. they share code for meta queries and such.
 
 
2 hours later…
12:30 PM
@Howdy_McGee/@Darth_Vader: Thanks I'll check why I have a bug
 
1:11 PM
@Rarst, implementation of what? it is just a sweetener to hide the details of a DB query. Could easily be a simple function if no need to making it a class. At best it is a bad name for something that should have been named "meta locator" or "meta query parser". Right now what is the "meta query", is it an object representing the SQL string, or the results?
When you start with bad names it is no wonder that at some point you end up confused because you are not sure what exactly it does, or worse, there is ambiguity that given enough time it is problematic to fix, ala the usage of is_page() is it the result of the URL parsing or DB query.
 
if you want good names you are in the wrong framework
this is consistent with prior code and implementation, regardless of how well it's engineered
 
1:31 PM
The only way to be consistent is to inherit a parent class which defines the underlying assumptions. at the current state wp_meta_query is not the same as wp_user_query as although the names are similar the one does actual query and the other doesn't..
There is no real attempt to be consistant, just bad copy and paste of previous code
 
 
2 hours later…
3:46 PM
Do we allow wordpress.com questions?
 
3:56 PM
nope, unless they really involve dot org somehow
 
well we have a tag , so does that mean I should to create a meta
this question was tagged wordpress.com: wordpress.stackexchange.com/questions/233481/…
 
and description for that tag says what? :)
I don't think that's dot com Q, they don't have products and whatever
 
@Rarst touche, lol
 
SE published salary calculator to show you how miserable you are compare to their salary structure! ;)
2
Good promotion on their part though..
 
4:30 PM
lol
 
5:00 PM
shrug someone always make more money than you
 
5:14 PM
guys do you already use user approove?
 
not sure what it is
 
i see.. never used it.
 
maybe its me that I dont know how to "correctly" log-in my "user" with my custom function but it doesn't work. The tool should block the "user to log in" if its not approve..
 
I am not sure about the use case though. If a person is not approved they should be restricted form registration.
 
5:29 PM
-> guys fill registration form
-> he receive msg that he can't connect until admin approve his profil.
-> if he try to log-in he receive the same msg.
the problems if .. I'm not sure how should log-in my user.. Should I create my own "looking his status" or I try to use the plugin.. because the second part .. i'm not sure how to trigger it.
hoooo... i'm a bad guy... function is public
 
Try the plugin or create a support thread on its forum. I think the plugin may send an email about the registration to users email address. if it doesn't you can hook into registration ( or change the default registration email ) email and add the additional info.
you can not login the user using this plugin as the plugin says it will block login unless approved.
 
 
2 hours later…
7:36 PM
Any objections against killing the foreach tag? Makes me cringe every time I see it.
 
7:59 PM
Nope - anything in there would most likely be general PHP or needing to be retagged with get_posts or something of the like anyway.
 
8:12 PM
is safe? get_permalink( get_option('account_page') )== get_permalink()
is it better to use like
get_option('account_page') == $post->ID?
 
IDs are better for comparisons
 
anyone got a minute to talk htaccess customization?
I track what hits I get to my 404, 403 and 500 requests and I was looking for a way to start automatically appending to the bottom of my htaccess file after so many hits within a min. Still looking on the site to see how I can learn to append to the bottom of the file.
 
you mean adding every invalid URL? that's bad idea. .htaccess is parsed on every request, the more crap you have in it the slower whole site becomes
 
no add the IP.. still looking to see what to do really
 
well, what if there is a thousand of IPs?
 
8:28 PM
I was thinking after said time frame of 48 hours remove IP
 
why you do know that in DB ?
its a perm ban or?
Ithemes security does what you want.
 
"enumerating badness" is just meh in general (google it, there is an old and good article)
 
site is supposed to take "normal" amount of bot traffic and anything outside of normal takes serious (expensive) effort to mitigate
@Darth_Vader checks if he wrote anything stupid yes, I did :)
 
lol
@Jean-philippeEmond I have set in my 404, 403 and 500 PHP files an automatic email notification that goes to an old box and a cron creates a database evaluating bad requests. I've noticed, which seems some bad bots, hitting a couple of sites within minutes around 100 times. So blocking the IP after so many hits in X time seemed to be an idea.
 
8:38 PM
ok
@Darth_Vader: backup your htaccess before but.. you could do something like that min
 
well I wanted to update a txt file and reference it from the htaccess but after researching it doesn't seem that is allowed
 
its not the best way but if you want to do in HTACCESS.. you need to do something like that. because many plugin edit (in wordpress) the htaccess. you need to check if you are the last or not.. well.. you need to do something like that
you just need to wrote your array into the file
like implode your array with PHP_OEL and push on your .htaccess
 
9:00 PM
ya but updating the htaccess is what Im more concerned about learning right now
 
that the paste.ofcode.org does..
he take your .htaccess..
edit the line.. you just need to write the implode and the file_write
the prob is some server block the htaccess writ..
 

« first day (2112 days earlier)      last day (2821 days later) »