Sabinou,
Thank you! Using both definitions worked perfectly in my case. It was neither a plugin or theme issue.
Adding more information to hopefully guide others in finding this: I’m getting 7 javascript errors on the wp-admin/post-new.php and wp-admin/post.php pages.
They are as follows:
Uncaught TypeError: Cannot read property 'length' of undefined jquery.js:2
v.extend.each jquery.js:2
e.widget jquery.ui.widget.min.js:5
(anonymous function) jquery.ui.mouse.min.js:5
(anonymous function) jquery.ui.mouse.min.js:5
Uncaught TypeError: Cannot read property 'length' of undefined jquery.js:2
v.extend.each jquery.js:2
e.widget jquery.ui.widget.min.js:5
(anonymous function) jquery.ui.sortable.min.js:5
(anonymous function) jquery.ui.sortable.min.js:5
Uncaught TypeError: Cannot read property 'length' of undefined jquery.js:2
v.extend.each jquery.js:2
e.widget jquery.ui.widget.min.js:5
(anonymous function) jquery.ui.menu.min.js:5
(anonymous function) jquery.ui.menu.min.js:5
Uncaught TypeError: Cannot read property 'length' of undefined jquery.js:2
v.extend.each jquery.js:2
e.widget jquery.ui.widget.min.js:5
(anonymous function) jquery.ui.autocomplete.min.js:5
(anonymous function) jquery.ui.autocomplete.min.js:5
Uncaught TypeError: Cannot read property 'length' of undefined jquery.js:2
v.extend.each jquery.js:2
e.widget jquery.ui.widget.min.js:5
(anonymous function) jquery.ui.resizable.min.js:5
(anonymous function) jquery.ui.resizable.min.js:5
Uncaught TypeError: Cannot read property 'length' of undefined jquery.js:2
v.extend.each jquery.js:2
e.widget jquery.ui.widget.min.js:5
(anonymous function) jquery.ui.draggable.min.js:5
(anonymous function) jquery.ui.draggable.min.js:5
Uncaught TypeError: Cannot read property 'length' of undefined jquery.js:2
v.extend.each jquery.js:2
e.widget jquery.ui.widget.min.js:5
(anonymous function) jquery.ui.dialog.min.js:5
(anonymous function) jquery.ui.dialog.min.js:5