- Timestamp:
- 10/07/2015 03:34:32 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-url.php
r10179 r10203 125 125 * 126 126 * @since 2.1.0 127 * @since 2.4.0 Added the `$field_id` parameter. 127 128 * 128 129 * @param string $submitted_value Raw value submitted by the user. 130 * @param int $field_id Optional. ID of the field. 129 131 * 130 132 * @return string 131 133 */ 132 public static function pre_validate_filter( $submitted_value = '' ) {134 public static function pre_validate_filter( $submitted_value = '', $field_id = '' ) { 133 135 134 136 // Allow empty URL values. … … 153 155 * 154 156 * @since 2.1.0 157 * @since 2.4.0 Added the `$field_id` parameter. 155 158 * 156 159 * @param string $field_value The URL value, as saved in the database. 160 * @param int $field_id Optional. ID of the field. 157 161 * 158 162 * @return string URL converted to a link. 159 163 */ 160 public static function display_filter( $field_value ) {164 public static function display_filter( $field_value, $field_id = '' ) { 161 165 $link = strip_tags( $field_value ); 162 166 $no_scheme = preg_replace( '#^https?://#', '', rtrim( $link, '/' ) );
Note: See TracChangeset
for help on using the changeset viewer.