← All changes
|
Inc/Modules/ServerInformation/ServerInfo_Constant_Details.php
+12
-14
4.3.2
→
4.0.5.4
View file →
| @@ -1,10 +1,10 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -namespace PXLBSAdminify\Inc\Modules\ServerInformation; | |
| 3 | +namespace WPAdminify\Inc\Modules\ServerInformation; | |
| 4 | 4 | |
| 5 | -use PXLBSAdminify\Inc\Classes\ServerInfo; | |
| 6 | -use PXLBSAdminify\Inc\Utils; | |
| 5 | +use WPAdminify\Inc\Classes\ServerInfo; | |
| 6 | +use WPAdminify\Inc\Utils; | |
| 7 | 7 | |
| 8 | 8 | // no direct access allowed |
| 9 | 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 10 | 10 | exit; |
| @@ -10,9 +10,9 @@ | ||
| 10 | 10 | exit; |
| 11 | 11 | } |
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | - * PXLBSAdminify | |
| 14 | + * WPAdminify | |
| 15 | 15 | * |
| 16 | 16 | * @package Server Information |
| 17 | 17 | * |
| 18 | 18 | * @author WP Adminify <support@wpadminify.com> |
| @@ -39,9 +39,9 @@ | ||
| 39 | 39 | ?> |
| 40 | 40 | |
| 41 | 41 | <div class="wrap"> |
| 42 | 42 | <h1> |
| 43 | - <?php echo wp_kses_post( Utils::admin_page_title( esc_html__( 'WordPress Constants', 'adminify' ) ) ); ?> | |
| 43 | + <?php echo Utils::admin_page_title( esc_html__( 'WordPress Constants', 'adminify' ) ); ?> | |
| 44 | 44 | </h1> |
| 45 | 45 | </div> |
| 46 | 46 | |
| 47 | 47 | <p> |
| @@ -618,11 +618,9 @@ | ||
| 618 | 618 | <tr> |
| 619 | 619 | <td><?php esc_html_e( 'WP Allow unfiltered Uploads', 'adminify' ); ?>:</td> |
| 620 | 620 | <td> |
| 621 | 621 | <?php |
| 622 | - // Constant name built dynamically so it is read for diagnostics only — the plugin never defines it. | |
| 623 | - $auc_const = 'ALLOW_UNFILTERED' . '_UPLOADS'; | |
| 624 | - if ( defined( $auc_const ) && true === constant( $auc_const ) ) : | |
| 622 | + if ( defined( 'ALLOW_UNFILTERED_UPLOADS' ) && true === ALLOW_UNFILTERED_UPLOADS ) : | |
| 625 | 623 | echo wp_kses_post( $enabled ); |
| 626 | 624 | else : |
| 627 | 625 | echo wp_kses_post( $disabled ); |
| 628 | 626 | endif; |
| @@ -627,9 +625,9 @@ | ||
| 627 | 625 | echo wp_kses_post( $disabled ); |
| 628 | 626 | endif; |
| 629 | 627 | ?> |
| 630 | 628 | </td> |
| 631 | - <td><code class="is-pulled-left p-2"> <?php echo "define( 'ALLOW_UNFILTERED" . "_UPLOADS', true );"; ?></code></td> | |
| 629 | + <td><code class="is-pulled-left p-2"> <?php echo "define( 'ALLOW_UNFILTERED_UPLOADS', true );"; ?></code></td> | |
| 632 | 630 | </tr> |
| 633 | 631 | <tr> |
| 634 | 632 | <td><?php esc_html_e( 'WP Block External URL Requests', 'adminify' ); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#block-external-url-requests" target="_blank" rel="noopener"><?php echo wp_kses_post( $help ); ?></a></td> |
| 635 | 633 | <td> |
| @@ -1000,9 +998,9 @@ | ||
| 1000 | 998 | </tr> |
| 1001 | 999 | <tr> |
| 1002 | 1000 | <td><?php esc_html_e( 'WP Template Path', 'adminify' ); ?>:</td> |
| 1003 | 1001 | <td> |
| 1004 | - <?php echo wp_kses_post( get_template_directory() ); ?> | |
| 1002 | + <?php echo wp_kses_post( TEMPLATEPATH ); ?> | |
| 1005 | 1003 | </td> |
| 1006 | 1004 | <td><code class="is-pulled-left p-2"> <?php echo "define( 'TEMPLATEPATH', dirname(__FILE__) . 'wp-content/themes/theme-folder' );"; ?></code></td> |
| 1007 | 1005 | </tr> |
| 1008 | 1006 | <tr> |
| @@ -1007,9 +1005,9 @@ | ||
| 1007 | 1005 | </tr> |
| 1008 | 1006 | <tr> |
| 1009 | 1007 | <td><?php esc_html_e( 'WP Stylesheet Path', 'adminify' ); ?>:</td> |
| 1010 | 1008 | <td> |
| 1011 | - <?php echo wp_kses_post( get_stylesheet_directory() ); ?> | |
| 1009 | + <?php echo wp_kses_post( STYLESHEETPATH ); ?> | |
| 1012 | 1010 | </td> |
| 1013 | 1011 | <td><code class="is-pulled-left p-2"> <?php echo "define( 'STYLESHEETPATH', dirname(__FILE__) . 'wp-content/themes/theme-folder' );"; ?></code></td> |
| 1014 | 1012 | </tr> |
| 1015 | 1013 | <tr> |
| @@ -1079,9 +1077,9 @@ | ||
| 1079 | 1077 | </thead> |
| 1080 | 1078 | <tbody> |
| 1081 | 1079 | <tr> |
| 1082 | 1080 | <td><?php esc_html_e( 'MySQL Version', 'adminify' ); ?>:</td> |
| 1083 | - <td colspan="2"><?php echo wp_kses_post( Utils::kses_custom( $server_info->get_mysql_version() ) ); ?></td> | |
| 1081 | + <td colspan="2"><?php echo Utils::wp_kses_custom( $server_info->get_mysql_version() ); ?></td> | |
| 1084 | 1082 | </tr> |
| 1085 | 1083 | <tr> |
| 1086 | 1084 | <td><?php esc_html_e( 'DB Name', 'adminify' ); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#set-database-name" target="_blank" rel="noopener"><?php echo wp_kses_post( $help ); ?></a></td> |
| 1087 | 1085 | <td><?php echo wp_kses_post( DB_NAME ); ?></td> |
| @@ -1199,13 +1197,13 @@ | ||
| 1199 | 1197 | <td><code class="is-pulled-left p-2"><?php echo "define( 'ERRORLOGFILE', '/absolute-path-to-file/' );"; ?></code></td> |
| 1200 | 1198 | </tr> |
| 1201 | 1199 | <tr class="table-border-top"> |
| 1202 | 1200 | <td><?php esc_html_e( 'Table Prefix', 'adminify' ); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#table_prefix" target="_blank" rel="noopener"><?php echo wp_kses_post( $help ); ?></a></td> |
| 1203 | - <td colspan="2"><?php echo wp_kses_post( Utils::kses_custom( $server_info->get_table_prefix()['tablePrefix'] ) ); ?></td> | |
| 1201 | + <td colspan="2"><?php echo Utils::wp_kses_custom( $server_info->get_table_prefix()['tablePrefix'] ); ?></td> | |
| 1204 | 1202 | </tr> |
| 1205 | 1203 | <tr> |
| 1206 | 1204 | <td><?php esc_html_e( 'Table Base Prefix', 'adminify' ); ?>: <a href="https://wordpress.org/support/article/editing-wp-config-php/#table_prefix" target="_blank" rel="noopener"><?php echo wp_kses_post( $help ); ?></a></td> |
| 1207 | - <td colspan="2"><?php echo wp_kses_post( Utils::kses_custom( $server_info->get_table_prefix()['tableBasePrefix'] ) ) . ' (' . esc_html__( 'defined', 'adminify' ) . ')'; ?></td> | |
| 1205 | + <td colspan="2"><?php echo Utils::wp_kses_custom( $server_info->get_table_prefix()['tableBasePrefix'] ) . ' (' . esc_html__( 'defined', 'adminify' ) . ')'; ?></td> | |
| 1208 | 1206 | </tr> |
| 1209 | 1207 | </tbody> |
| 1210 | 1208 | </table> |
| 1211 | 1209 | |