Javascript coding error in admin-options.js
-
There is a coding error in your function custom_post_type_onomies_change_header_label around line 145:
Javascript doesn’t support default parameter values. The correct coding for this function is
jQuery.fn.custom_post_type_onomies_change_header_label = function( $default_header_label ) { if ( jQuery( this ).val() != '' ) jQuery( '#edit_custom_post_type_header .label' ).html( jQuery( this ).val() ); else if ( ! typeof($default_header_label) === 'undefined' ) jQuery( '#edit_custom_post_type_header .label' ).html( $default_header_label ); }
Very useful plugin
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Javascript coding error in admin-options.js’ is closed to new replies.