PUM_Admin_Themes::fix_deprecated_fields( $content = '' )


Description Description


Source Source

File: classes/Admin/Themes.php

	public static function fix_deprecated_fields( $content = '' ) {

		// Remove "Background" heading.
		$content = str_replace( '<tr class="title-divider">
			<th colspan="2">
				<h3 class="title">Background</h3>
			</th>
		</tr>', '', $content );

		// Fix broken opacity fields.
		$content = str_replace( array( 'class="bg_opacity"','class="bg_overlay_opacity"') ,  array('class="bg_opacity pum-field-rangeslider"','class="bg_overlay_opacity pum-field-rangeslider"'), $content );

		// TEMPORARY. REMOVE THIS
		$content = '<table class="form-table"><tbody>' . $content . '</tbody></table>';

		return $content;


	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.