author | ymh <ymh.work@gmail.com> |
Tue, 15 Dec 2020 13:49:49 +0100 | |
changeset 16 | a86126ab1dd4 |
parent 9 | 177826044cd9 |
child 18 | be944660c56a |
permissions | -rw-r--r-- |
0 | 1 |
<?php |
2 |
/** |
|
3 |
* WordPress Administration Template Footer |
|
4 |
* |
|
5 |
* @package WordPress |
|
6 |
* @subpackage Administration |
|
7 |
*/ |
|
8 |
||
16 | 9 |
// Don't load directly. |
9 | 10 |
if ( ! defined( 'ABSPATH' ) ) { |
11 |
die( '-1' ); |
|
12 |
} |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
13 |
|
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
14 |
/** |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
15 |
* @global string $hook_suffix |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
16 |
*/ |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
17 |
global $hook_suffix; |
0 | 18 |
?> |
19 |
||
20 |
<div class="clear"></div></div><!-- wpbody-content --> |
|
21 |
<div class="clear"></div></div><!-- wpbody --> |
|
22 |
<div class="clear"></div></div><!-- wpcontent --> |
|
23 |
||
5 | 24 |
<div id="wpfooter" role="contentinfo"> |
0 | 25 |
<?php |
26 |
/** |
|
27 |
* Fires after the opening tag for the admin footer. |
|
28 |
* |
|
29 |
* @since 2.5.0 |
|
30 |
*/ |
|
31 |
do_action( 'in_admin_footer' ); |
|
32 |
?> |
|
33 |
<p id="footer-left" class="alignleft"> |
|
34 |
<?php |
|
16 | 35 |
$text = sprintf( |
36 |
/* translators: %s: https://wordpress.org/ */ |
|
37 |
__( 'Thank you for creating with <a href="%s">WordPress</a>.' ), |
|
38 |
__( 'https://wordpress.org/' ) |
|
39 |
); |
|
40 |
||
0 | 41 |
/** |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
42 |
* Filters the "Thank you" text displayed in the admin footer. |
0 | 43 |
* |
44 |
* @since 2.8.0 |
|
5 | 45 |
* |
46 |
* @param string $text The content that will be printed. |
|
0 | 47 |
*/ |
5 | 48 |
echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . $text . '</span>' ); |
0 | 49 |
?> |
50 |
</p> |
|
51 |
<p id="footer-upgrade" class="alignright"> |
|
52 |
<?php |
|
53 |
/** |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
54 |
* Filters the version/update text displayed in the admin footer. |
0 | 55 |
* |
5 | 56 |
* WordPress prints the current version and update information, |
57 |
* using core_update_footer() at priority 10. |
|
0 | 58 |
* |
59 |
* @since 2.3.0 |
|
5 | 60 |
* |
61 |
* @see core_update_footer() |
|
62 |
* |
|
63 |
* @param string $content The content that will be printed. |
|
0 | 64 |
*/ |
65 |
echo apply_filters( 'update_footer', '' ); |
|
66 |
?> |
|
67 |
</p> |
|
68 |
<div class="clear"></div> |
|
69 |
</div> |
|
70 |
<?php |
|
71 |
/** |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
72 |
* Prints scripts or data before the default footer scripts. |
0 | 73 |
* |
74 |
* @since 1.2.0 |
|
5 | 75 |
* |
76 |
* @param string $data The data to print. |
|
0 | 77 |
*/ |
5 | 78 |
do_action( 'admin_footer', '' ); |
0 | 79 |
|
80 |
/** |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
81 |
* Prints scripts and data queued for the footer. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
82 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
83 |
* The dynamic portion of the hook name, `$hook_suffix`, |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
84 |
* refers to the global hook suffix of the current page. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
85 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
86 |
* @since 4.6.0 |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
87 |
*/ |
16 | 88 |
do_action( "admin_print_footer_scripts-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
89 |
|
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
90 |
/** |
0 | 91 |
* Prints any scripts and data queued for the footer. |
92 |
* |
|
93 |
* @since 2.8.0 |
|
94 |
*/ |
|
5 | 95 |
do_action( 'admin_print_footer_scripts' ); |
0 | 96 |
|
97 |
/** |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
98 |
* Prints scripts or data after the default footer scripts. |
0 | 99 |
* |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
100 |
* The dynamic portion of the hook name, `$hook_suffix`, |
5 | 101 |
* refers to the global hook suffix of the current page. |
102 |
* |
|
0 | 103 |
* @since 2.8.0 |
104 |
*/ |
|
16 | 105 |
do_action( "admin_footer-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores |
0 | 106 |
|
16 | 107 |
// get_site_option() won't exist when auto upgrading from <= 2.7. |
9 | 108 |
if ( function_exists( 'get_site_option' ) ) { |
109 |
if ( false === get_site_option( 'can_compress_scripts' ) ) { |
|
0 | 110 |
compression_test(); |
9 | 111 |
} |
0 | 112 |
} |
113 |
||
114 |
?> |
|
115 |
||
116 |
<div class="clear"></div></div><!-- wpwrap --> |
|
117 |
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script> |
|
118 |
</body> |
|
119 |
</html> |