“hasDatepicker” cannot be used as a second class

Still doing testing on my localhost test website — WordPress 6.2.2 running PHP 8.1. If you code an HTML field, using hasDatepicker as a 2nd class, it disables WP Datepicker on all fields within the form. For example, try this:

<input type="text" class="date-field hasDatepicker" /> 

where “date-field” is specified in the Settings. (Doesn’t matter if hasDatepicker is specified in settings or not.)

Note that this worked correctly in versions up through 1.9.9, but now seems to disable WP Datepicker. On the other hand, if I enter this:

<input type="text" class="date-field anyclass" /> 

WP Datepicker works fine.


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer