Skip to content

Instantly share code, notes, and snippets.

@fatihtoprak
Created October 24, 2012 06:21
Show Gist options
  • Select an option

  • Save fatihtoprak/3944343 to your computer and use it in GitHub Desktop.

Select an option

Save fatihtoprak/3944343 to your computer and use it in GitHub Desktop.
wp#1 özel alan ekleme hatası çözümü
<?php
/*
Author: Sergey Biryukov
Author URI: http://profiles.wordpress.org/sergeybiryukov/
*/
function fix_custom_fields_in_wp342() {
global $wp_version, $hook_suffix;
if ( '3.4.2' == $wp_version &#038;&#038; in_array( $hook_suffix, array( 'post.php', 'post-new.php' ) ) ) : ?--><script type="text/javascript">// <![CDATA[
jQuery(document).delegate( '#addmetasub, #updatemeta', 'hover focus', function() {
jQuery(this).attr('id', 'meta-add-submit');
});
// ]]></script>
<?php endif; } add_action( 'admin_print_footer_scripts', 'fix_custom_fields_in_wp342' ); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment