« first day (2222 days earlier)      last day (2722 days later) » 

4:25 AM
@EthanJinksO'Sullivan by not operating on an entire page. Your approach is a greedy/brute force algorithm. It gets the job done but it's expensive and blunt. The Visual Composer example you use would be better done by trying to intercept the shortcodes content, rather than the final page output. Although most people here would advise you never use Visual Composer to begin with
as for what you're trying to do in the question, SVG images don't have a size, the whole point being they're vectors and can take any size you specify. Webp images are new, and so the ability to read them will vary depending on which libraries are installed and what API you use to read them. At a minimum, the headers for the files will need to be downloaded and read to get their dimensions, if not the entire file depending on the format
 
 
2 hours later…
6:38 AM
@Rarst good :) Sorry for late answer, just saw the message. BM exposes Mockery, so it uses what Mockery provides: gist.github.com/Giuseppe-Mazzapica/… and generally speacking, everything you find in Mockery docs (docs.mockery.io/en/latest/reference/index.html) can be used in Brain Monkey as well
 
 
2 hours later…
9:01 AM
Hi.. I'm Lakshmi here
Can anyone please help me on woo-commerce permalinks?
 
9:17 AM
@gmazzap cheers :) hadn't got to properly reading Mockery docs yesterday, getting up to speed bit by bit. one thing in Brain Monkey docs ->with(Mockery\type('Closure')); didn't work for me on filter... it seems that should be method call, not function call? and still errors
 
9:43 AM
@LAKSHMI hey :) WooCommerce isn't very common topic here unfortunately, it's a big and complex plugin, usually takes someone who specializes in it for good answers/discussion
 
10:32 AM
@Rarst Do you have developed any WordPress plugins for WordPress.org? I could not find your profile on WordPress.org
 
in the past, but I have removed them from there since
 
 
2 hours later…
12:47 PM
@gmazzap Brain Monkey hooks and filters stuff really doesn't quite work for me :\ are the docs up to date?
```
Rarst\WordPress\DateTime\WpDateTimeTest::testFormatI18n
Mockery\Exception\NoMatchingExpectationException: No matching handler found for Mockery_1__apply_my_filter::apply_filter_my_filter("Filter applied", object(Rarst\WordPress\DateTime\MyClass)). Either the method was unexpected or its arguments matched no expected argument list for this method
```
 
1:01 PM
ok, I am thoroughly confused now :D need for this to settle in my head a bit...
 
 
2 hours later…
3:04 PM
@Rarst is the code public, can you somehow show me?
 
think I got through it, but needed a break :) you do seem to have some namespace issues in docs (WP stuff moved to \WP\ level now)
I am still a little lost if I can test actual return of the filter? so my method creates an object and adds its method as a callback to filter... can I access return of that callback?
Monkey's apply_filters() is pass-through, doesn't apply hooked things, if I follow it right?
so I have this now and it works $this->assertTrue( has_filter( 'pre_option_timezone_string', 'DateTimeZone->getName()', 10, 0 ) ); but can I get to what actual 'DateTimeZone->getName()' returns?
and filter doesn't fire in my code, it's being added for WP function to use, which I am mocking
 
posted on November 15, 2016 by Nick Craver

I’m Nick Craver, and you may remember me from my posts about how Stack Overflow does deployment, how we do hardware, and how we built our architecture.

 
 
3 hours later…
6:27 PM
introducing WpDateTime — DateTime extension for WordPress https://github.com/Rarst/wpdatetime
ok, I ended up writing out that thing :)
 
 
5 hours later…
11:47 PM
posted on November 15, 2016 by Matt Mullenweg

The title says it all. We had some great applications for cities to host WordCamp US after we finish up in Philadelphia this year, and the city chosen for 2017-2018 is Nashville, Tennessee. Based on the other great applications we got I’m also excited about the pipeline of communities that could host it in future […]

 

« first day (2222 days earlier)      last day (2722 days later) »