« first day (1627 days earlier)      last day (3306 days later) » 

1:08 AM
Wont it end up just being us "regular" WPSE folk who answer their questions anyway....?
 
1:50 AM
graphicdesign.stackexchange.com/election I'm almost tempted to nominate myself under the guise of cross-stack dominion
 
2:18 AM
So we can push our humorless agenda there?
 
 
2 hours later…
 
7 hours later…
10:42 AM
@Rarst do you know if "allowed_themes" filter can be used on single site installations to restrict Appearance > Themes list? "tts_allowed_themes" works great for toolbar theme switcher, now gotta take care of backend.
 
probably?
 
but i cant get that filter to fire.
wp-includes/class-wp-theme.php
1111:		$network = (array) apply_filters( 'allowed_themes', self::get_allowed_on_network() );
 
Please use 4 spaces or backticks for code
 
that's an ack output
is that code too?
 
yeah, seems MS only
ask on main, it's interesting Q
 
10:45 AM
@lkraav Ctrl + A -> Ctrl + K for code blocks
See "help" link in the bottom right
 
looks like this hack may be the only choice
1
A: Hide a theme on list of themes in wp-admin without editing core files

Rubenadd_filter( 'wp_prepare_themes_for_js', 'hideThemes'); function hideThemes($arr){ foreach($arr as $key => &$value){ //unset what you want } return $arr; }` Or alternatively: add_filter( 'wp_prepare_themes_for_js', 'hideThemes'); function hideThemes($arr){ unset($arr["t...

 
why the heck main has freaking tamagochi?.. :D
 
11:04 AM
define( 'SOME_CONSTANT_NAME', 'NAME_OF_NEW_FILTER' );
apply_filters( SOME_CONSTANT_NAME, $thing );
Most confusing code style since a long time
I guess I need to alter my Storm color profile. Strings and constants have the same color. Unable to distinguish those.
 
 
2 hours later…
1:17 PM
why would anyone do that with a constant?
 
hah, Woo had killed its internal Q&A turns out
 
wdym?
q&a for what?
 
they experimented with their own SE clone
 
@Rarst killed a while ago too, i thought
 
not that long, think was still there earlier this year
 
1:42 PM
it was
@lkraav I dunno. And what I don't understand: Why set the name of a filter all caps?
 
I got in touch with Woo about stack proposal, will see what they say
 
 
6 hours later…
7:31 PM
0
Q: Ban wordrpress tag

Pieter GoosenA new tag was created, wordrpress. Can we get that removed and banned?

 
upvotes on woocommerce area 51 banner please :)
 
8:25 PM
Any idea why using UNION with $wpdb->get_results(); would return the same column name of all results? Example: If I queried the $wpdb->posts 3 times in one query using UNION for each query... One selecting: post_name another selecting: post_title and another selecting: post_excerpt why all the results always show post_name for the key but the value might actually be for post_title or post_excerpt?
The results are accurate, just says post_name for each result... so I can't really tell which one is a slug, title or excerpt very easily.
Example of my query:

( SELECT `ID`, `post_name` FROM tps_3_posts WHERE `post_status` = 'publish' AND `post_name` LIKE '%floor-finish%' ) UNION ( SELECT `ID`, `post_name` FROM tps_3_posts WHERE `post_status` = 'publish' AND `post_name` LIKE '%floor%' ) UNION ( SELECT `ID`, `post_name` FROM tps_3_posts WHERE `post_status` = 'publish' AND `post_name` LIKE '%finish%' )
Ugh just noticed my query i demonstrated is all for post_name, but there are more UNIONS which query other stuff like post_title and post_excerpt.
 
 
1 hour later…
9:59 PM
I asked a question on Stack Overflow regarding this... Just because I felt like it has more to do than just with WordPress. In-case anyone is curious.
 

« first day (1627 days earlier)      last day (3306 days later) »