Permalink
Browse files

URL now inherits from Text field

  • Loading branch information...
1 parent 68b6881 commit 4a54c15fc8e84d136925da80bae046e0441e645d @funkedgeek funkedgeek committed Nov 2, 2012
Showing with 3 additions and 14 deletions.
  1. +3 −14 inc/fields/url.php
View
@@ -2,6 +2,9 @@
// Prevent loading this file directly
defined( 'ABSPATH' ) || exit;
+// Make sure "text" field is loaded
+require_once RWMB_FIELDS_DIR . 'text.php';
+
if ( ! class_exists( 'RWMB_URL_Field' ) )
{
class RWMB_URL_Field
@@ -26,20 +29,6 @@ static function html( $html, $meta, $field )
);
}
- /**
- * Normalize parameters for field
- *
- * @param array $field
- *
- * @return array
- */
- static function normalize_field( $field )
- {
- $field = wp_parse_args( $field, array(
- 'size' => 30,
- ) );
- return $field;
- }
/**
* Sanitizes url

0 comments on commit 4a54c15

Please sign in to comment.