Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /…/wp-includes/functions.php on line 3622
If you’re getting the above notice, you’re going to need to disable _doing_it_wrong for the bbp_setup_current_user() function, here’s how!
/**
* Disables trigger_error for doing_it_wrong_trigger_error filter.
*
* @return boolean false disables the if condition to trigger the error display.
*/
function remove_bbp_setup_current_user_notice_filter() {
return false; // Disable trigger_error.
}
/**
* If bbp_setup_current_user() runs _doing_it_wrong(), disable trigger_error.
*
* @param string $function The function, here we test for bbp_setup_current_user().
* @param string $message The message (no modifications here).
* @param string $version Version (not used here).
*/
function remove_bbp_setup_current_user_notice( $function, $message, $version ) {
if( 'bbp_setup_current_user' === $function ) {
// Filter trigger_error
add_filter( 'doing_it_wrong_trigger_error', 'remove_bbp_setup_current_user_notice_filter' );
}
}
add_action( 'doing_it_wrong_run', 'remove_bbp_setup_current_user_notice', 10, 3 );
WP NoteUp, dubbed “Cube” (read more about Ice Cube) was just released to WordPress.org! Development around Cube was focused around releasing a version of NoteUp that allowed the user to format their notes, e.g.:
All the new features were accomplished because of the great CMB2 (which we use @WebDevStudios all the time). Now you can bold, italic, add links and images. You can even add bulleted lists.
I hope this allows users to really get more out of having a place to put content or takes notes without having to fudge up your content. If you enjoyed the update, let me know in the comments!
Checkout the plugin on WordPress.org, or checkout out development of 1.2 at Github
Yesterday I re-installed Mailbox after about a 3 week hiatus in which I went back to old-school Mail.app.
First, Mail.app is a great mail program, don’t get me wrong. The reason I went back to it was it’s “just works” thing it does where emails load correctly, contacts work together right, etc. But, after just a few weeks of using it I really felt like my email was getting out of control again. I got a little spoiled by Mailbox, really my email was “back to normal.” Hundreds of emails were in my Inbox, some to be buried forever as I was not going to scroll down through each one and….no, not going to do that.
Mailbox, however, with it’s deal with email later philosophy really helps me be in control of consuming my email. The problem with Mail.app is that when I get an email I don’t have time to consume it right then. I’m an extremely focused individual, I do not need to be carried off into email when I’m trying to do something else. The real kicker feature of Mailbox is the ability to delay an email until another time when you are most likely to be able to consume it.
So, after really getting a chance to compare a traditional email application to Mailbox, there is real value in being able to delay the consumption of email in order to remain in control of it. I’m much happier with Mailbox, even given it’s youth and lack of maturity in composing emails.
Checkout http://www.tabsnooze.com/ which let’s you delay content you open in tabs until another time….it’s great, does the same thing.
^^ Just what I’m listening to while I write this, just so you can get the vibe with me 🙂
So I decided to actually make time to write a little bit. Saturday. Coffee. Starbucks. Get out of the house…write something. Blog something that isn’t just WordPress stuff…
Yes, get out of the house. Ever since I got my job at WebDevStudios I have been working at home more than I really ever have. And even though I can’t express how thankful that I get to do that, you still need to get out of the confines of your work environment once in a while…
So this is just going to be an update blog on what I’m doing, how it’s going…all the things.
WebDevStudios
I still get a bit star struck that I actually work for such a great place, a great team (the A-Team) everyday. Things are going really well there. I just logged on to my WordPress install to write this and had a thought, “Shit I know where everything fucking is now.” My knowledge and familiarity with WordPress had multiplied 10 fold. I WordPress now…every damn day…and it’s great! Everyday that I work I feel more and more like an expert at this stuff, and that’s exactly something I set out for!
We’ve also been busy! Really busy. But, I’m not sure my team understands really how well we have it. Before WebDevStudios I was the project manager, the coder, the planner, the budgeter, you name it…even the recruiter (for offshore workers). I mean my work life was stretched pretty thin. I am so appreciative that we have great project managers, leads, and that WDS has such a great structure in place to really help people keep their sanity! (I elaborate on this more below.)
New things I’m learning (Friends, this will be technical, skip ahead)…
SASS: I’ll admit when I first came on, I was a bit of a CSS purist, and I still am. That means I’m not into preprocessors that much. But I’ve come to realize that for big project SASS is great for organizing large teams and I can’t express enough the power that SASS gives teams so that you don’t step on each other’s toes. Because you can use nesting in SASS you can make sure you are styling specific things vs. possibly styling very generic things and possibly changing things other people are working on. I mean it still happens, but it’s really rare. I will also say that now I wish CSS was written like SASS, it’s extremely more natural feeling to write.
Grunt all the things: Again more processors, but Grunt does save a ton of time. And on tight deadline projects, Grunt does help make things happen a lot quick. Grunt is just a great tool to get mediocre things done quickly. I am a Grunt convert for sure, though I still have lots to learn.
Bower: Easy dependency management. I’m still a bit of a noob here too, but I do know that when I want to include an external library, bower makes it super easy.
Teamwork…yeah. Working with a team has been enormously gratifying. I’ve always been the loner guy who does all the things. It’s a totally different dynamic. I mean I see sites churned out in weeks! I work for a few hours on a site and I see it being launched suddenly a few weeks later. I remember having that moment on a recent project we were working on. I saw that the site was about to be launched, and I just thought to myself, “We just started that thing, and it’s done!?”
BTW, WDS is hiring still! I didn’t think I would be doing fun stuff with them, but here I am! APPLY if you read the above without a strange look on your face.
Life
So working at WDS has introduced some new things into my life. For one thing, because I work in Arizona (where the time does not change) I get a chance to be a “westie” and a “mountain man” (terms used to refer to people in pacific and mountain time zones). Right now I’m a westie, I wake up at 7am and work until about 2 or 3pm with people in the pacific timezone. Being done with work around 2 is great! I can run errands, play with my kid, I mean it’s great! I keep wondering what it’s going to be like to be a mountain man.
I believe, just like normal physical energy, your mind has a limited amount of energy per day. Since I’m not spending all that energy stressing about budgets or project planning, etc, I have a lot of leftover mental energy. This means I can work on losing weight and I actually have some mental energy to focus on it. Having some mental energy for me is a great nice to have and really make a big difference.
I’m still a bad Buddhist lol
Although I have been learning a lot by having more time and energy to dedicate to reading, I still haven’t become that great meditator. I meditate rarely. I feel guilty actually, because I know, now, stress is not an excuse I can use. I’m still working on actually putting more and more things into practice, but I still have yet to really knuckle down and start meditating. But I’m also not beating myself up over it, I know it will come when I’m ready.
I’ve still been spending a lot of time learning about meditation. I am the kind of person that when I see a clear benefit of a goal, I’m on it and I’m into it 100%. I guess I haven’t really felt like meditation is going to turn it around for me. I read a lot, I spend a lot of time on the insight side of Buddhism. It’s something that has definitely helped me and had an effect, so I spend a lot of time there.
Tennis
So a big part of Tennis changes lately are all around trying to become more fit. I don’t feel like there’s much on the technical side of things that are going to propel me forward. Losing all this weight is going to make me faster and beat up less on my body…period. So that’s all I’m working towards really right now.
I’ve made some changes, though, technically to my game. A year ago I changed some things about how I play and it definitely helped in one area: exhaustion. The changes I made were put into place to help take less of a blow on my body, and it worked! But it had a negative effect on my game overall. Being a power-driven player, those changes made me have to work harder on strategy, etc, which I just am not good at. Coupled with weight loss I’m hoping that I can move my game back to a more aggressive power-driven style. So, I’ve been making those changes lately, and how my back feels at night is proof that it comes with a price.
But, I’m still really enjoying Tennis! Family…Code…Tennis. That’s life for me and that’s exactly the way I like it. I think the weight loss is really going to help me enjoy it more. I know the reason I don’t play well is because of my weight, so I feel like it’s really the only thing holding me back.
Fatherhood (Being Dad)
I absolutely love my kid! But I think everyone says that about their kid, no duh. I always knew how much I would like being a Dad. Being a kid who grew up without one I was really excited to experience the whole Dad thing, and it’s really turning out to be a great experience. We were even blessed with such a great kid; not fussy, happy, smiling, fun, and smart. I always look forward to the future with Lexie, I know I’m going to enjoy every step of being her Dad.
She’s just about to turn 1 year old. She’s grown so much in just one year. I try and make sure and really take in the time knowing she’s going to grow so fast!
Lexie’s personality is really starting to show too. I see a lot of her Mom in her; happy, fun loving, curious, joyful. Those are all words I would use to describe Ashley and they totally apply to Lexie. She’s walking, and just like crawling it happened in just a couple of days w/out warning! She’s even trying to climb the gates we put up to keep her out of certain areas of the house.
But, doesn’t mean I love diapers or loud screaming! This great bundle of joy still comes with her challenges. And now that she’s getting older I’ve noticed she is getting a little more attached to Mom and Dad. She’s getting “stranger danger,” so it’s a gamble whether she’s going to enjoy being handed to someone else. I recently went to try on suits with her and she just wasn’t having it, so it’s safe to say I didn’t try any suits on that day.
Wedding
So, I am getting married pretty soon. I’m so ready to have that official stamp placed on our family. Marriage has always been about family for me, and Ashley, Lexie and I are already a great family. But we’re both excited to make it official!
…and Wedding planning is no joke…..lol
End?
So after writing that I feel like that’s not a lot. My life is pretty simple right now (and that’s a good thing). It’s funny how complicated things can feel still.
But I’m glad I finally got to do some “blogging.” Blogs aren’t just for nerdy WordPress stuff people!
This time I went a little wild with some of the changes to my site, but that’s just because some of the recent changes to my life have been a bit wild. I kept most of the re-design from 31.0 Trevor Hall, but added some…funk? The theme and colors chosen are based on my recent landing of my dream job with WebDevStudios and a little splash of a New Mexico sunset.
Who is Nahko?
Nahko (and Medicine for the People) is an artist I have been listening to lately. There’s something infectious going on with his music, I think it really speaks to my spirit and where I am in my life right now. I would be lying if the music didn’t also help inspire the changes to my site!
The embedded video above is one of my favorite songs right now.
Especially after joining WebDevStudios this repeated verse (in the song) really speaks to me. You really do have to believe in good things coming your way to really go out there and make them happen for yourself.
Nerd Notes
I also did something new. Usually, with my site, I would clone down WordPress and clone down the Publish-pwd theme into the themes directory. But, I’ve opted to version control my entire site and include WordPress.
The proof-in-case situation happened last night. I updated WordPress (the new way, by merging the 4.2 branch into mine) and found out 4.2 had a bug a plugin had a bug that broke my site (link to come later). I was easily able to revert that merge and all was well again.
The other reason is to keep track of the plugins and themes I use and version control those as well. So that’s new…
I know it’s wild, but that’s the intention. Makes me wonder what 31.2 will look like.
What am I most excited for? Never having to run vagrant up --provision again. Spinning up a new build everyday can be time consuming! Simply, I was starting to feel like VVV was just getting in the way of being productive. I got things to do!
Those are My RAMS (Performance)
VVV will take up about 1GB of memory working or not (and don’t try and lower it). This isn’t really VVV’s fault, mainly my own. I bought a new Macbook Air and started with the lower-end hardware. Though things ran faster (because of the SSD), I had less RAM’s and less HD space now. On my Macbook Pro (may it rest in peace) I never had to worry about RAM, but as soon as I started hitting projects all day it became apparent I needed all the resources I could get out of my machine.
I’m probably not even using VVV all-the-way!
Ultimately, this is what it really comes down to. I just haven’t felt like it was that much better than a MAMP or XAMPP solution. Ever since I fired it up I haven’t really found anything great about it far from other solutions (except that it’s Linux), but that’s probably my fault anyways. I just don’t use a lot of the powerhouse things Vagrant probably does and I feel like I’m sacrificing a lot.
XAMPP
When I first broke up with MAMP for VVV, it seemed like a good fit (and it was the hip thing everyone was doing). I thought the right thing to do was run my dev environment in a box that worked most like the Internet does, on Linux. But, after using it for about a year, and throwing that --provision switch a few hundred times, I’m trying out XAMPP, which just runs Apache, PHP, MySQL. That’s all I really need to do what I do and sudo xampp restart gets it done in under 10 seconds!
We broke up, but we’re still friends
But that doesn’t mean you shouldn’t try out VVV! People swear by it, and there’s a reason, I’m just not sure if I’m aware of it yet… It was also built by very smart people that work on very smart projects. And, It’s still on my machine! Anytime I need to test a site outside of the typical Apache box (with NGINX becoming more and more popular), it’ll be there for me.
VVV probably does a lot of great things, but you better have a slow coffee machine–provisioning is a bitch!
TL;DR: I totally landed a dream job with WebDevStudios! It’s late, I know….
2007, I download WordPress
When I downloaded WordPress to create my first site with it, I had no idea it would become such a huge part of my life. It was easy, it had plugins, it had themes, it was something I could work with. That’s how it all started. As the years went on I would go on to push WordPress as “the future,” and it was, especially for me. I would use WordPress to build many sites, it’s in everything I would build.
2007+
For almost a decade WordPress would be the center of most of the things I did. I can’t express enough how happy I am that WordPress is Open Source. My love, and of course need, for Open Source software is what pulled me to WordPress in the early days.
During this time I’d work building WordPress sites for lots of people, friends, and even family. Towards the end I would finally start working on my own WordPress themes and plugins.
…2014, I meet WordPress addicts
I attend my first WordCamp (#wcphx) and see all these WordPress addicts, thinking how lucky they are to get to do WordPress day in and day out and work with other WordPress people.
I decide to make a change. I need to work with these people, I needed to be a part of a community who are crazy about WordPress like I am. I set out to find a dream job, one of those “do what you love, you’ll never work a day in your life” deals.
I aim high hoping for anything I could get my hands on. Let’s just say it was a trip and I learned a lot along the way. But I noticed WebDevStudios needs a front-end developer. I think it’s a long shot, but knew this would be huge if I were able to get a job with these guys…
2015, …and I did!
It was a big deal when I got the call from Dre telling me I had got the job. I’m pretty sure I said something in reply like, “This is great. I can’t wait!” But what I was really thinking was, “Holy shit! I got the job!”
It’s been an amazing couple of weeks. WordPress is now what I do and I’m excited to work and learn with the great people I’ve been getting acquainted with over at WebDevStudios. They’re a crazy bunch, but that’s right up my alley, and I’m honored to be associated with such a prestigious company.
Thank You’s
A lot of people helped me along the way, especially family and friends with their encouragement and support. They truly know the “journey” I was on trying to make WordPress what I do, especially my patient and very understanding fiance Ashley.
But, most of all, as cliche as it will sound, I do owe a lot to the WordPress community itself. Because they make a great open source platform like WordPress, they’ve opened up this opportunity for me.
Let’s say you have this situation (as I did). You are using a custom WordPress Post Type and you have set this custom post type to never publish. You’re using it as a way to save data using only the Dashboard, not ever publish the data to the theme. So the only save function you have is saving as a draft to protect it from public eyes.
Because of this situation the post’s date is always set to the modified date as it is never published. This caused a few issues for me as the application needed to pull up archives for posts based on the creation date, not the modified date.
But WordPress only gives the post a created date if it is published, so saving it as a draft updates post_date each time.
So, I had to prevent WordPress from updating post_date each time a draft was saved. I used the below to ensure that on drafts for a specific post type, here ihcrs_events, only got one post_date update when it was created, but needed to retain that date going forward.
As you can see we just update the post_date to the previous value using the wp_insert_post_data filter.
Note, pay extra careful attention to the priority of the filter, 99. This ensures the last update (there are many on save) retains the date. Using 10 or 20 will not retain the date.
I’ve been waiting for a while to publish a new plugin! I have a few, but they are old and outdated. I’ve learned a lot about making better WordPress Plugins (coding wise) and I’ve finally got a plugin with something more modern.
When I set out to develop a new plugin I wanted to build something I wanted. I’ve tried other note taking plugins, but nothing has been simple and exactly what I needed.
WP NoteUp is inspired by Simplenote and aims to be as like it as it can be. Simple and right to the point, just text.
A Pro Version
I have plans, though, to release a Pro version of the plugin that features some vanity items like note backgrounds but should also feature more features like Markup or the Visual Composer.
I know people want more than what WP NoteUp does out of the box with today’s release, sometimes I want more out of Simplenote too. So, the Pro version will have these things and give people that want more…more, and if you just want simple just go with the .Org version.
Note sure how much, not sure when I’ll get it done. But when I do, I’ll post something here.