« first day (2601 days earlier)      last day (2642 days later) » 

04:36
I am not sure it is such a low hanging, maybe someone in some plugin uses it to prevent deletion of a specific term from a taxonomy. The question is always about the process and total luck of organized testing as this bug is there probably since custom tax were added.
now for 4.9.1 they are going to have a less than 24 hours long beta. Who is expected to be able to test it in such a short time frame with basically zero advance notice :(
 
4 hours later…
08:39
The biggest drawback with namespaces compared to classes is that namespaces are basically just a syntactical sugar that adds pefixes to your functions and vars, but since it is nothing more than that you can not do any sort of access control like private/protected.
@MarkKaplun True
annoys me right now as I have to decide whether to keep hook handlers procedural, which is what I prefer, but I also want to control the access... pitty there is no way to get both
 
4 hours later…
13:03
I don't see the issue? add_action( 'init', '\tomjn\namespace\function' ); just up the required PHP version
 
3 hours later…
15:48
Is there a way to check if the user is visiting the website from a mobile device in order to render a different "view" specifically designed for mobile devices
I have done this in Laravel
I'm asking for wordpress now
WordPress has wp_is_mobile() but some say it's unreliable. I've never ran into issues with it though.
having two different pages one for desktop one for mobile
Thanks @Howdy_McGee
16:31
can you not use responsive design or a CSS media query?
but there would be differences in the content of the two
the mobile would be a watered down version of the desktop
16:49
@TomJNowell the issue is that \tomjn\namespace\function can not be private, although I assume that going further with that I would have discovered it need to be public to be able to be called in a hook
guess a wrapper can be used but it is clumsy
classes provide an easier way to separate public and private, but then I would end up creating a class for something that is unlikely to be concidered an object under any true OOP definition
@R1ddler send both, hide mobile on desktop, and desktop on mobile
I wonder exactly what you're doing that necessitates private functions, if you've chosen to eschew OO programming then there should be no need for a private function, functions either apply changes to something, or do a chain of actions, the term private confers the problem private to whom?
17:32
@Howdy_McGee singleton is not OOP, no point in having the overhead of classes if in the end you writting pure procedural code
you should have only one singleton in your app, no more
alternatively, create the object once and only once
@TomJNowell private functions are a language construct that makes it easy to easy which functions/method can be used by a 3rd party, and which should be avoided
that is a singleton
nope a singleton enforces its singleness
ok, so I didn't understand you
what is the practical difference?
what you say, if I got it right, is to have a class with only static methods. it is doable, just ugly
17:52
Why do you want to make your hook callbacks private? To prevent others from calling the function directly or to prevent users from removing the hook?
18:44
All the exchange icons are wonky. Our icon is now apparently The Workplace icon for whatever reason.
 
2 hours later…
20:49
posted on November 29, 2017 by John Blackbourn

WordPress 4.9.1 is now available. This is a security and maintenance release for all versions since WordPress 3.7. We strongly encourage you to update your sites immediately. WordPress versions 4.9 and earlier are affected by four security issues which could potentially be exploited as part of a multi-vector attack. As part of the core team's […]


« first day (2601 days earlier)      last day (2642 days later) »