Is there any workaround to a core update still showing after core update if language set to anything other than US English

I build sites typically in UK English, however I typically leave them in US English because if I set system/general/site language to anything other than “English ( United States)” then when I do updates it always leaves one update and a message eg If you need to re-install version 4.2.2–en_GB, you can do so here … Read more

get_option & update_option for multiple input fields with same name

<ul> <?php $vArgs = array( ‘posts_per_page’ => -1, ‘offset’ => 0, ‘order’ => ‘DESC’, ‘orderby’ => ‘date’, ‘post_type’ => ‘video-list’, ‘post_status’ => ‘publish’, ‘suppress_filters’ => 0 ); $video_list = get_posts($vArgs); if ($video_list) { $count = 1; foreach ($video_list as $video_item) {?> <li> <div class=”admin_video_views_val bottom_view_col”> <input type=”text” name=”addon_post_views_count_meta[<?php echo $count; ?>]” id=”addon_post_views_count_meta[<?php echo $count; ?>]” … Read more

Character Encoding for wp_options

I’ve been looking for a solution to my problem for a while now. Under my wp_options page I have the following serialized entry saved: a:17:{s:11:”date_format”;s:5:”d/m/Y”;s:15:”currency_symbol”;s:1:”$”;s:14:”recaptcha_lang”;s:2:”en”;s:13:”req_div_label”;s:0:””;s:16:”req_field_symbol”;s:1:”*”;s:15:”req_error_label”;s:81:”Por favor, certifique-se de que todos os campos obrigatórios estão preenchidos.”;s:15:”req_field_error”;s:29:”Este é um campo obrigatório”;s:10:”spam_error”;s:53:”Por favor responda a pergunta anti-spam corretamente.”;s:14:”honeypot_error”;s:41:”Por favor, deixar o campo spam em branco.”;s:18:”timed_submit_error”;s:47:”Por favor, aguarde a … Read more

Modifying protexted image sizes: use “add_image_size()” or “update_option()”?

I’m finding conflicting info on whether it’s okay to override protected WordPress image sizes (thumbnail, medium, medium_large, and large) with add_image_size(). Some docs indicate it’s better to do this with update_option (). Is there a practical difference between these sets of code: function mytheme_image_sizes() { add_image_size(‘thumbnail’, 200, 200, true); add_image_size(‘medium’, 480, 480, true); } vs … Read more

Correct way check nonce (security) using old Options API

I am developing plugin for WordPress. Firstly I started using Settings API it looks good, but it is little bit complex and it doesn’t provide the way to handle options manually. I have quite complex options structure, it consists dynamic number of items/object each object has multiple fields, and I need to save array of … Read more

Remove obsolete plugins artifacts from database tables

I’m dealing with some long-running WordPress blog. It was moved to different servers several times, and the migration process haven’t followed «the WordPress way» from time to time — just a database backup and restore with clean WordPress install. So, now I see a lot of artifacts from obsolete plugins in database tables (options, cronjobs, … Read more