defaults = array( 'title' => __( 'Author List', 'advance-widget-pack' ), 'exc' => '', 'noauth' => '50', ); $widget_ops = array( 'classname' => 'author_list awp_widget', 'description' => __( 'Displays author list', 'advance-widget-pack' ), ); $control_ops = array( 'width' => 200, 'height' => 250, ); parent::__construct( false, __( 'AWP Author List', 'advance-widget-pack' ), $widget_ops, $control_ops ); } function form( $instance ) { $instance = wp_parse_args( (array) $instance, $this->defaults ); $title = $instance['title']; $noauth = $instance['noauth']; $exc = $instance['exc']; ?>

defaults ); $title = apply_filters( 'widget_title', $instance['title'] ); echo $args['before_widget']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- sidebar-provided wrapper markup, trusted per WP core convention. if ( $title ) { echo $args['before_title'] . esc_html( $title ) . $args['after_title']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- title text is esc_html()'d; before/after_title are sidebar-provided wrapper markup. } awp_get_author_list( $instance['noauth'], $instance['exc'] ); echo $args['after_widget']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- sidebar-provided wrapper markup, trusted per WP core convention. } }