load_plugin_textdomain()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Define the internationalization functionality
5
 *
6
 * Loads and defines the internationalization files for this plugin
7
 * so that it is ready for translation.
8
 *
9
 * @link       https://github.com/austinheap/wordpress-security-txt
10
 * @since      1.0.0
11
 *
12
 * @package    WordPress_Security_Txt
13
 * @subpackage WordPress_Security_Txt/includes
14
 */
15
16
/**
17
 * Define the internationalization functionality.
18
 *
19
 * Loads and defines the internationalization files for this plugin
20
 * so that it is ready for translation.
21
 *
22
 * @since      1.0.0
23
 * @package    WordPress_Security_Txt
24
 * @subpackage WordPress_Security_Txt/includes
25
 * @author     Austin Heap <[email protected]>
26
 */
27
class WordPress_Security_Txt_i18n
28
{
29
30
31
    /**
32
     * Load the plugin text domain for translation.
33
     *
34
     * @since    1.0.0
35
     */
36
    public function load_plugin_textdomain()
37
    {
38
        load_plugin_textdomain(
0 ignored issues
show
Bug introduced by
The function load_plugin_textdomain was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

38
        /** @scrutinizer ignore-call */ 
39
        load_plugin_textdomain(
Loading history...
39
            'wordpress-security-txt',
40
            false,
41
            dirname(dirname(plugin_basename(__FILE__))) . '/languages/'
0 ignored issues
show
Bug introduced by
The function plugin_basename was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

41
            dirname(dirname(/** @scrutinizer ignore-call */ plugin_basename(__FILE__))) . '/languages/'
Loading history...
42
        );
43
    }
44
}
45