- Timestamp:
- 10/01/2015 04:18:13 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-url.php
r10142 r10163 1 1 <?php 2 2 /** 3 * BuddyPress XProfile Classes 3 * BuddyPress XProfile Classes. 4 4 * 5 5 * @package BuddyPress … … 47 47 * 48 48 * @param array $raw_properties Optional key/value array of 49 * {@link http://dev.w3.org/html5/markup/input.number.html permitted attributes} 50 * that you want to add. 49 * {@link http://dev.w3.org/html5/markup/input.number.html permitted attributes} 50 * that you want to add. 51 * 51 52 * @since 2.1.0 52 53 */ … … 88 89 * 89 90 * @param array $raw_properties Optional key/value array of permitted 90 * attributes that you want to add.91 * attributes that you want to add. 91 92 * @since 2.1.0 92 93 */ … … 107 108 * for this field type, we don't want it, so it's stubbed out. 108 109 * 110 * @since 2.1.0 111 * 109 112 * @param BP_XProfile_Field $current_field The current profile field on the add/edit screen. 110 * @param string $control_type Optional. HTML input type used to render the current field's child options.111 * @since 2.1.0113 * @param string $control_type Optional. HTML input type used to render the current 114 * field's child options. 112 115 */ 113 116 public function admin_new_field_html( BP_XProfile_Field $current_field, $control_type = '' ) {} … … 126 129 * 127 130 * @param string $submitted_value Raw value submitted by the user. 131 * 128 132 * @return string 129 133 */ 130 134 public static function pre_validate_filter( $submitted_value = '' ) { 131 135 132 // Allow empty URL values 136 // Allow empty URL values. 133 137 if ( empty( $submitted_value ) ) { 134 138 return ''; 135 139 } 136 140 137 // Run some checks on the submitted value 141 // Run some checks on the submitted value. 138 142 if ( false === strpos( $submitted_value, ':' ) 139 143 && substr( $submitted_value, 0, 1 ) !== '/' … … 153 157 * 154 158 * @param string $field_value The URL value, as saved in the database. 159 * 155 160 * @return string URL converted to a link. 156 161 */
Note: See TracChangeset
for help on using the changeset viewer.