Commit 6d77794e authored by Joseph Olstad's avatar Joseph Olstad
Browse files

Issue #3271990 by Dmitrii_Zadorozhnyi, joseph.olstad: REVERT COMMIT TESTS...

Issue #3271990 by Dmitrii_Zadorozhnyi, joseph.olstad: REVERT COMMIT TESTS FAILED PHP 8.0 compatibility. Expected an object instance when accessing an instance property, but saw an expression $comment with type false
parent c403a771
Loading
Loading
Loading
Loading
+0 −2
Changes for modules/media_wysiwyg/media_wysiwyg.module: 0 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -209,7 +209,6 @@ function media_wysiwyg_form_wysiwyg_profile_form_alter(&$form, &$form_state) {
function media_wysiwyg_wysiwyg_button_element_validate($element, &$form_state) {
  if (!empty($element['#value'])) {
    $format = filter_format_load($form_state['build_info']['args'][0]->format);
    if (is_object($format)) {
    $filters = filter_list_format($format->format);
    if (empty($filters['media_filter']->status)) {
      form_error($element, t('The <em>Convert Media tags to markup</em> filter must be enabled for the <a href="@format-link">@format format</a> in order to use the Media browser WYSIWYG button.', array(
@@ -218,7 +217,6 @@ function media_wysiwyg_wysiwyg_button_element_validate($element, &$form_state) {
      )));
    }
  }
  }

  return $element;
}