wp/wp-includes/widgets/class-wp-widget-block.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
   200 	 */
   200 	 */
   201 	public function form( $instance ) {
   201 	public function form( $instance ) {
   202 		$instance = wp_parse_args( (array) $instance, $this->default_instance );
   202 		$instance = wp_parse_args( (array) $instance, $this->default_instance );
   203 		?>
   203 		?>
   204 		<p>
   204 		<p>
   205 			<label for="<?php echo $this->get_field_id( 'content' ); ?>"><?php echo __( 'Block HTML:' ); ?></label>
   205 			<label for="<?php echo $this->get_field_id( 'content' ); ?>">
       
   206 				<?php
       
   207 				/* translators: HTML code of the block, not an option that blocks HTML. */
       
   208 				_e( 'Block HTML:' );
       
   209 				?>
       
   210 			</label>
   206 			<textarea id="<?php echo $this->get_field_id( 'content' ); ?>" name="<?php echo $this->get_field_name( 'content' ); ?>" rows="6" cols="50" class="widefat code"><?php echo esc_textarea( $instance['content'] ); ?></textarea>
   211 			<textarea id="<?php echo $this->get_field_id( 'content' ); ?>" name="<?php echo $this->get_field_name( 'content' ); ?>" rows="6" cols="50" class="widefat code"><?php echo esc_textarea( $instance['content'] ); ?></textarea>
   207 		</p>
   212 		</p>
   208 		<?php
   213 		<?php
   209 	}
   214 	}
   210 
   215