Henrik Carlsson's Blog

All things me.

Is this a bug in WordPress?

posted this on and tagged it with Narrating my work WordPress

I’m working on a WordPress plugin to syndicate my posts to Twitter. I know, there are lots of plugins that does that already but none of the ones I’ve found does it the way I want, so I decided to roll my own. I’ve got the basics working and have been using it on my site for quite some time now. However, I’ve encountered a problem. Here’s how I want it to work:

When I publish a link post, instead of posting a link back to my site to Twitter, it should post the link to the site that I’m linking to. The plugin ”knows” whether it’s a link post or not based on

At first glance this works fine and it worked in development. However, ones I started using it on my site I realized that it only worked some of the times and other times it wouldn’t recognize a link post.

Tonight I’ve managed to narrow it down. It seems like the problem occurs when I post with the ”Press this” bookmarklet. If I do that, even a post that clearly has been givet the ”link” post format still returns false for if ( get_post_format( $ID ) == 'link' ). If I post the exact same content using the WordPress dashboard the post is recognized as a link post and everything else works as intended.

Is this a bug in WordPress? I should investigate this further but right now I need to go to bed, so I’m throwing the question out to you, smart people on the internet, instead.

Replies and comments

Blade Runner: The Other Side of Modernity – YouTube

posted this on

Blade Runner: The Other Side of Modernity – YouTube

Nintendo – Putting Play First | Game Maker’s Toolkit – YouTube

posted this on and tagged it with Nintendo Video games

Mark Brown’s video series ”Gamemaker’s Toolkit” is very interesting to watch. In the episode Nintendo – Putting Play First I think he manages to explain to me why the games I play almost exclusively are first-party Nintendo games.

You should check it out!

Jag måste säga att jag är väldigt nöjd med utsikten från kontoret hemma.

posted this on and tagged it with Microblog snapshots

Leonard Cohen Dead at 82 – Rolling Stone

posted this on

2016 cements its status as a sad year for the arts.

Leonard Cohen Dead at 82 – Rolling Stone

Zodiac

posted this article on and tagged it with David Fincher Movie reviews Movies

Yesterday when Iris was asleep in her bed, Linn and I sat down on the couch to watch some TV. We’ve just finished the latest season on Modern Family that’s available on Netflix in Sweden1, so we needed to find something new. While browsing for a while, not managing to agree on something, Linns sleepiness got the best of her and she decided to fall asleep on the couch instead.

Even though I was really tired I decided to watch something. Initially I was going to start watching Luke Cage but while browsing a list Zodiac by David Fincher showed up. I tend to really like Fincher’s movies and since I hadn’t watched this one, and since it was still reasonably early in the evening, I went with it. At first I thought I might watch half of it or something and then continue another day but the movie drew me in.

It’s a mystery-thriller based on the actual case of a serial killer who called himself ”The Zodiac”. It features a great cast, including Jake Gyllenhaal, Mark Ruffalo, Robert Downey Jr. and Chloë Sevigny, and I loved it.

I knew very little about it when going into it. I wasn’t even sure if the text at the beginning that proclaimed it to be based on actual events were true or not2 but it totally got me hooked in just a few minutes.

The thing that I really like about David Fincher’s movies is that he thinks, or at least the movies gives the impression that he thinks, that I the viewer is an intelligent and observant person. He loves exposition but not in a bad way.

Also this movie, unlike Fight Club and Gone Girl – which are the two most Fincher movies that I saw most recently3 – is free of irony. It’s an honest thriller that has me invested in solving the crime and that, in a few instances, makes me genuinely scared.

Oh, and in case you don’t obsessive click all the links that I put in this post, you should absolutely check out this one, David Fincher – And the Other Way is Wrong, from Every Frame a Painting. It’s a great analysis of Fincher’s style and as far as I can tell it doesn’t really spoil any of his movies, so you can watch it even if you haven’t watched all his films yet.


  1. I think it’s season 7. 
  2. It is. 
  3. I saw Gone Girl for the first time, Fight Club was a rewatching. 

Do you make these 6 home mastering mistakes ? – Production Advice

posted this on and tagged it with Mastering

Home mastering is hard – but it IS possible.

Do you make these 6 home mastering mistakes ? – Production Advice

It’s going to be okay. – The Oatmeal

posted this on

It’s going to be okay. – The Oatmeal

Net neutrality is suddenly on the chopping block – The Verge

posted this on

Against almost all expectations, Donald Trump has been elected president of the United States, and suddenly, the future of the open internet looks radically different.

Net neutrality is suddenly on the chopping block – The Verge

Näthatade spelprofilen Anita Sarkeesian får 2016 års Pingvinpris prisas – Dagens Nyheter

posted this on

Den amerikansk-kanadensiska spelprofilen Anita Sarkeesian tilldelas svenska Pingvinpriset. Detta för modet att fortsätta sin kamp mot könsstereotyper i tv-spel, trots att hon utsatts för rena dödshot.

Näthatade spelprofilen Anita Sarkeesian får 2016 års Pingvinpris prisas – Dagens Nyheter