| 1 |
<?php |
| 2 |
|
| 3 |
// Exit if accessed directly. |
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
|
| 8 |
/** |
| 9 |
* Renders the campaign description field for the Campaign post type. |
| 10 |
* |
| 11 |
* @author WP Charitable LLC |
| 12 |
* @since 1.0.0 |
| 13 |
* @package Charitable/Admin Views/Metaboxes |
| 14 |
* @version 1.8.8.6 |
| 15 |
*/ |
| 16 |
|
| 17 |
global $post; |
| 18 |
|
| 19 |
$title = isset( $view_args['title'] ) ? $view_args['title'] : ''; // phpcs:ignore |
| 20 |
$charitable_tooltip = isset( $view_args['tooltip'] ) ? '<span class="tooltip"> '. $view_args['tooltip'] . '</span>' : ''; |
| 21 |
$charitable_campaign_description = get_post_meta( $post->ID, '_campaign_description', true ); // esc_textarea was removed |
| 22 |
|
| 23 |
$charitable_textarea_name = 'content'; |
| 24 |
$charitable_textarea_rows = apply_filters( 'charitable_campaign_description_rows', 15 ); |
| 25 |
$charitable_textarea_tab_index = isset( $view_args['tab_index'] ) ? $view_args['tab_index'] : 0; |
| 26 |
|
| 27 |
wp_editor( $charitable_campaign_description, '_charitable_campaign_description', array( |
| 28 |
'textarea_name' => '_campaign_description', |
| 29 |
'textarea_rows' => $charitable_textarea_rows, |
| 30 |
'tabindex' => $charitable_textarea_tab_index, |
| 31 |
) ); |
| 32 |
|
| 33 |
|
| 34 |
?> |