Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/jetpack/modules/carousel
File: jetpack-carousel.php
'white' => __( 'White', 'jetpack' ),
[1500] Fix | Delete
)
[1501] Fix | Delete
);
[1502] Fix | Delete
}
[1503] Fix | Delete
[1504] Fix | Delete
/**
[1505] Fix | Delete
* Sanitizing the Carousel backgound color selection.
[1506] Fix | Delete
*
[1507] Fix | Delete
* @param string $value The color string to sanitize.
[1508] Fix | Delete
*
[1509] Fix | Delete
* @return string Sanitized value, 'white' or 'black'.
[1510] Fix | Delete
*/
[1511] Fix | Delete
public function carousel_background_color_sanitize( $value ) {
[1512] Fix | Delete
return ( 'white' === $value ) ? 'white' : 'black';
[1513] Fix | Delete
}
[1514] Fix | Delete
[1515] Fix | Delete
/**
[1516] Fix | Delete
* Callback to display text for the carousel_enable_it settings field.
[1517] Fix | Delete
*/
[1518] Fix | Delete
public function carousel_enable_it_callback() {
[1519] Fix | Delete
$this->settings_checkbox( 'carousel_enable_it', __( 'Display images in full-size carousel slideshow.', 'jetpack' ) );
[1520] Fix | Delete
}
[1521] Fix | Delete
[1522] Fix | Delete
/**
[1523] Fix | Delete
* Sanitize input for the `carousel_enable_it` setting.
[1524] Fix | Delete
*
[1525] Fix | Delete
* @param mixed $value User input.
[1526] Fix | Delete
*
[1527] Fix | Delete
* @return int Sanitized value, only 1 or 0.
[1528] Fix | Delete
*/
[1529] Fix | Delete
public function carousel_enable_it_sanitize( $value ) {
[1530] Fix | Delete
return $this->sanitize_1or0_option( $value );
[1531] Fix | Delete
}
[1532] Fix | Delete
}
[1533] Fix | Delete
[1534] Fix | Delete
new Jetpack_Carousel();
[1535] Fix | Delete
[1536] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function