herb miller

WordPress plugin specialist

  • Home
  • About
    • Online CV
    • Contact
    • Find me
  • Shop
    • Seriously Bonkers – softback book
    • Seriously Bonkers – signed book
    • Seriously Bonkers – PDF
  • Dev env
    • Local development
    • WordPress plugins
    • Server environments
    • Development hardware
    • WAMP configuration
    • Tools and languages
    • What’s not in my development environment?
    • Anything else in your development toolkit?
  • Sites
Problem Solving – verse 30 – Problem Size

Problem Solving – verse 30 – Problem Size

I'm going to skip the questions
the PM may well raise, like
"When'll you have a fix for it,
are we talking hours or days?"

Summary

oik version 2.4 fixes a problem with pagination in WordPress 4.1.

Background

WordPress 4.1 ( “Dinah” ) was released on the 18th December 2014. I’m proud to be listed as a contributor to this version; I’m bobbingwide.

For the last couple of days I’ve been releasing beta versions of the oik base plugin, happily reporting that it’s been tested with WordPress 4.1 and WordPress Multisite.

But yesterday I realized that some code that worked in WordPress 3.9 no longer worked with 4.1

I tracked it down to a change to the paginate_links() API, which I use in shortcodes which support pagination.

[bw_list posts_per_page=5]
1 to 5 of 217
  • Post: 20206
  • __qca cookie – what makes it appear?
  • “Probably doing it wrong” at PHPHants – 13 Nov 2013
  • [bw_code] broken?
  • [bw_code]
[1] [2] [3] … [44] Next »

The pagination links were correct on the first page, but wrong on any other. I developed the fix, tested it and released it as 2.4-beta.1223.

The change was trivial. Unlike other changes in oik 2.4, the potential for the discovering the problem was not limited to sites which were running an alpha or beta version.

Anyone who had upgraded to WordPress 4.1 could have seen the problem.

So earlier this morning, I decided it was time to make the fix available to everyone, not just beta testers.

Therefore oik v2.4 has now been released to WordPress.org.

Merry Christmas.

See also

  • TRAC #30831 paginate_links() now needs add_args=false
  • wp-a2z.com/oik_api/paginate_links
  • oik
  • Problem Solving – Top 10 questions to ask when something doesn’t work

Categories: Poems, shortcodes, WordPress, WorkTags: paginate_links

Published: December 24, 2014 | Last updated: January 5, 2015

Products

  • Seriously Bonkers - signed book £8.99 £5.99
  • Seriously Bonkers - PDF £1.00
  • Seriously Bonkers - softback book £8.99 £4.99

Recent Posts

  • Slog-bloat – server performance testing
  • WebP for my iPad
  • Image size reduction by quality
  • Localization of Full Site Editing themes
  • Fizzie – an experimental Full Site Editing theme

Recent Comments

  • Aprende gutenberg #49 - Aprende gutenberg on SB Children block – my first Single Block plugin
  • Richard Cagle on Installing Imagick for PHP 7 on Windows 10
  • WordCamp Birmingham on bucket list – WordCamp Birmingham UK 2015 (#wcbrum)
  • mick on WordPress capabilities: How to restrict Add New while allowing Edit
  • mick on WooCommerce 2.2.4 – Dynamic API Reference

Archives

Categories

WordPress 5.6.1. PHP: 7.3.27

WordPress version: 5.6.1

Gutenberg version: 9.9.3

Tide times from tidetimes.co.uk

Tide Times & Heights for Northney onTuesday, 23 February 2021
Low Tide:02:12 ( 1.90m )
High Tide:08:49 ( 3.60m )
Low Tide:14:36 ( 1.60m )
High Tide:21:28 ( 3.70m )

Tide times from tidetimes.org.uk

Tide Times & Heights for Northney on 24th February 2021
02:47 - Low Tide ( 1.60m )
09:40 - High Tide ( 3.95m )
15:06 - Low Tide ( 1.19m )
22:13 - High Tide ( 4.08m )

Follow me

  • Home
  • About
  • Blog
  • Contact
  • Find me
  • Privacy notice
  • Sitemap

Site:  herbmiller.me
© Copyright herb miller 2012-2021. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress