Skip to content

Commit d2aa571

Browse files
committed
enqueued wp-color-picker and fixed WP 3.8 cosmetic CSS change for metabox holder
1 parent fd6cf14 commit d2aa571

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

class.settings-api.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public function __construct() {
4040
*/
4141
function admin_enqueue_scripts() {
4242
wp_enqueue_style( 'wp-color-picker' );
43+
wp_enqueue_script( 'wp-color-picker' );
4344
wp_enqueue_script( 'jquery' );
4445
wp_enqueue_script( 'media-upload' );
4546
wp_enqueue_script( 'thickbox' );
@@ -345,7 +346,7 @@ function callback_color( $args ) {
345346

346347
echo $html;
347348
}
348-
349+
349350
/**
350351
* Sanitize callback for Settings API
351352
*/
@@ -508,6 +509,12 @@ function(){
508509
});
509510
});
510511
</script>
512+
513+
<style type="text/css">
514+
/* WordPress 3.8 Fix */
515+
.form-table th { padding: 20px 10px; }
516+
#wpbody-content .metabox-holder { padding-top: 5px; }
517+
</style>
511518
<?php
512519
}
513520

0 commit comments

Comments
 (0)