Blog

  • Unfortunate Picture Positioning #381 (NSFW)

    Unfortunate Picture Positioning #381 (NSFW)

    I was just perusing a website and, there at the  bottom, was the usual click-bait that you all-too-often see nowadays. However, the positioning of these two is, erm, interesting…

    bad-positioning
  • Twisted: The Untold Story of a Royal Vizier (NSFW)

    Twisted: The Untold Story of a Royal Vizier (NSFW)

    A recent US musical has been recorded and put onto YouTube for free. It’s a re-telling of Aladdin from the side of Jafar, in a similar way to the musical Wicked. It’s rather adult (language wise) but is very, very funny. And quite how they got away with the Disney references I’m really no sure 🙂

  • Between Amazon and the Post Office I have NO idea where my parcels are!

    Between Amazon and the Post Office I have NO idea where my parcels are!

    Recently I’ve needed to order a number of items from Amazon. However, between them and the Post Office receiving them has been made rather difficult.

    (more…)
  • How to work out the current state of a plugin

    How to work out the current state of a plugin

    It’s a rare instance where you need to know, from your own code, the state of a plugin but, for instance, this may be something particularly relevant to a theme.

    The usual way is to use the PHP command functions_exists to check whether a specific function is present. Of course, hard-coding this is probably not the best idea as function names change. Instead the WordPress function is_plugin_active is a better solution and you only need to specify the (non-changing) plugin slug for this to work.

    Now, this will tell you if the plugin is active but what if you also want to know if it’s installed or not?

    (more…)
  • Why WordPress developers often get the is_admin function wrong

    Why WordPress developers often get the is_admin function wrong

    Let me first say that I’m guilty. For “performance reasons” I’m always careful to only run functions in their appropriate area of WordPress – so, something only used in the admin area will be checked via the use of is_admin. Only if this is true will I then run that code. It makes sense.

    But for plugins there is no performance improvement.

    (more…)