Completed
Branch dev (58959f)
by
unknown
02:25
created

auto-load-next-post-formatting-functions.php ➔ auto_load_next_post_clean()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
cc 1
eloc 2
c 2
b 1
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
/**
3
   * Auto Load Next Post Formatting
4
   *
5
   * @since    1.0.0
6
   * @author   Sébastien Dumont
7
   * @category Core
8
   * @package  Auto Load Next Post/Functions
9
   * @license  GPL-2.0+
10
   */
11
12
if ( ! defined('ABSPATH')) {
13
	exit;
14
}
15
// Exit if accessed directly
16
17
/**
18
 * Clean variables
19
 *
20
 * @since  1.0.0
21
 * @access public
22
 * @param  string $var
23
 * @return string
24
 */
25
function auto_load_next_post_clean($var) {
26
	return sanitize_text_field($var);
27
} // END auto_load_next_post_clean()
28