Created
October 24, 2012 06:21
-
-
Save fatihtoprak/3944343 to your computer and use it in GitHub Desktop.
wp#1 özel alan ekleme hatası çözümü
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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 && 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