Changeset 3440057
- Timestamp:
- 01/15/2026 06:46:10 AM (2 months ago)
- Location:
- admin-optimizer/trunk
- Files:
-
- 10 added
- 9 edited
-
admin-optimizer.php (modified) (1 diff)
-
includes/helper.php (modified) (2 diffs)
-
languages/admin-optimizer.pot (modified) (10 diffs)
-
modules/export-import/includes/option-names.php (modified) (1 diff)
-
modules/site-management/site-management.php (modified) (2 diffs)
-
modules/xml-sitemap (added)
-
modules/xml-sitemap/assets (added)
-
modules/xml-sitemap/assets/js (added)
-
modules/xml-sitemap/assets/js/sitemap-settings.min.js (added)
-
modules/xml-sitemap/includes (added)
-
modules/xml-sitemap/includes/xml-sitemap-metaboxes.php (added)
-
modules/xml-sitemap/settings (added)
-
modules/xml-sitemap/settings/xml-sitemap-settings.php (added)
-
modules/xml-sitemap/xml-sitemap.php (added)
-
readme.txt (modified) (3 diffs)
-
vendor/composer/autoload_classmap.php (modified) (1 diff)
-
vendor/composer/autoload_static.php (modified) (1 diff)
-
vendor/composer/installed.php (modified) (2 diffs)
-
vendor/remotemerge/totp-php/.php-cs-fixer.php (added)
Legend:
- Unmodified
- Added
- Removed
-
admin-optimizer/trunk/admin-optimizer.php
r3420685 r3440057 4 4 * Plugin URI: https://www.adminoptimizer.com 5 5 * Description: An all-in-one plugin to enhance your WordPress sites 6 * Version: 1. 4.26 * Version: 1.5.0 7 7 * Requires PHP: 7.4.0 8 8 * Author: Yipresser -
admin-optimizer/trunk/includes/helper.php
r3396481 r3440057 1 1 <?php 2 2 namespace Yipresser\AdminOptimizer\Helpers; 3 4 use const Yipresser\AdminOptimizer\Admin\MODULES_OPTION; 3 5 4 6 // Exit if accessed directly. … … 24 26 return false; 25 27 } 28 29 /** 30 * Check if a module is activated 31 * 32 * @param string $module_name Module name. 33 * @return boolean 34 */ 35 private function is_module_activated( string $module_name ) { 36 $modules = get_option( MODULES_OPTION, [] ); 37 if ( ! empty( $module_name ) && ! empty( $modules ) ) { 38 return array_key_exists( sanitize_text_field( $module_name ), $modules ); 39 } 40 return false; 41 } 26 42 } -
admin-optimizer/trunk/languages/admin-optimizer.pot
r3398621 r3440057 1 # Copyright (C) 202 5Yipresser1 # Copyright (C) 2026 Yipresser 2 2 # This file is distributed under the GNU General Public License v2 or later. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Admin Optimizer 1. 4.0\n"5 "Project-Id-Version: Admin Optimizer 1.5.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/admin-optimizer\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 5-11-19T07:20:54+00:00\n"12 "POT-Creation-Date: 2026-01-15T06:35:32+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 150 150 #: modules/db-cleaner/settings/db-cleaner-settings.php:240 151 151 #: modules/modified-date/settings/modified-date-settings.php:81 152 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:156 152 153 msgid "Pro Options" 153 154 msgstr "" … … 408 409 409 410 #: modules/block-login/block-login.php:79 410 #: modules/security/security.php:13 9411 #: modules/security/security.php:137 411 412 msgid "Block Failed Login" 412 413 msgstr "" … … 637 638 #: modules/custom-login-url/custom-login-url.php:80 638 639 #: modules/custom-login-url/custom-login-url.php:81 639 #: modules/security/security.php:1 31640 #: modules/security/security.php:129 640 641 msgid "Custom Login URL" 641 642 msgstr "" … … 1220 1221 1221 1222 #: modules/custom-post-types/settings/post-types-settings.php:505 1223 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:107 1222 1224 msgid "Taxonomies" 1223 1225 msgstr "" … … 3112 3114 msgstr "" 3113 3115 3114 #: modules/security/security.php:8 83116 #: modules/security/security.php:86 3115 3117 msgid "Security" 3116 3118 msgstr "" 3117 3119 3118 #: modules/security/security.php:10 73120 #: modules/security/security.php:105 3119 3121 msgid "Hide WP version" 3120 3122 msgstr "" 3121 3123 3122 3124 #. translators: %1$s is the line break tag. %2$s is the anchor tag. %3$s is the anchor closure tag. 3123 #: modules/security/security.php:1 113125 #: modules/security/security.php:109 3124 3126 #, php-format 3125 3127 msgid "Remove WP version from the header.%1$s%2$sLearn more%3$s" 3126 3128 msgstr "" 3127 3129 3128 #: modules/security/security.php:11 53130 #: modules/security/security.php:113 3129 3131 msgid "Hide Update notice to all users, except for Administrators" 3130 3132 msgstr "" 3131 3133 3132 3134 #. translators: %1$s is the line break tag. %2$s is the anchor tag. %3$s is the anchor closure tag. 3133 #: modules/security/security.php:11 93135 #: modules/security/security.php:117 3134 3136 #, php-format 3135 3137 msgid "Only show update notices to Administrators and those with update capabilities.%1$s%2$sLearn more%3$s" 3136 3138 msgstr "" 3137 3139 3138 #: modules/security/security.php:12 33140 #: modules/security/security.php:121 3139 3141 msgid "Disable XML-RPC" 3140 3142 msgstr "" 3141 3143 3142 3144 #. translators: %1$s is the line break tag. %2$s is the anchor tag. %3$s is the anchor closure tag. 3143 #: modules/security/security.php:12 73145 #: modules/security/security.php:125 3144 3146 #, php-format 3145 3147 msgid "Disable XML-RPC for the whole site.%1$s%2$sLearn more%3$s" … … 3147 3149 3148 3150 #. translators: %1$s is the line break tag. %2$s is the anchor tag. %3$s is the anchor closure tag. 3149 #: modules/security/security.php:13 53151 #: modules/security/security.php:133 3150 3152 #, php-format 3151 3153 msgid "Hide the wp-login page and create a custom login URL for all users.%1$s%2$sLearn more%3$s" … … 3153 3155 3154 3156 #. translators: %1$s is the line break tag. %2$s is the anchor tag. %3$s is the anchor closure tag. 3155 #: modules/security/security.php:14 33157 #: modules/security/security.php:141 3156 3158 #, php-format 3157 3159 msgid "Block the user from login after repeated failed login attempt. (comes with Pro options) %1$s%2$sLearn more%3$s" 3158 3160 msgstr "" 3159 3161 3162 #: modules/security/security.php:145 3163 msgid "Enable Two Factor Authentication (2FA)" 3164 msgstr "" 3165 3166 #. translators: %1$s is the line break tag. %2$s is the anchor tag. %3$s is the anchor closure tag. 3160 3167 #: modules/security/security.php:149 3161 msgid "Enable Two Factor Authentication (2FA)"3162 msgstr ""3163 3164 #. translators: %1$s is the line break tag. %2$s is the anchor tag. %3$s is the anchor closure tag.3165 #: modules/security/security.php:1533166 3168 #, php-format 3167 3169 msgid "Enable two factor authentication for all users. (comes with Pro options)%1$s%2$sLearn more%3$s" 3168 3170 msgstr "" 3169 3171 3170 #: modules/security/security.php:158 3171 msgid "Two-Factor Authentication (2FA) (Disabled)" 3172 msgstr "" 3173 3174 #: modules/security/security.php:162 3175 msgid "The two-factor authentication module requires PHP 8.1 or higher. Upgrade your PHP version to use this module." 3176 msgstr "" 3177 3178 #: modules/site-management/site-management.php:64 3172 #: modules/site-management/site-management.php:67 3179 3173 msgid "Site Management" 3180 3174 msgstr "" 3181 3175 3182 #: modules/site-management/site-management.php:8 33176 #: modules/site-management/site-management.php:86 3183 3177 msgid "Enable robots.txt, ads.txt and app-ads.txt on your site" 3184 3178 msgstr "" 3185 3179 3186 #: modules/site-management/site-management.php:8 63180 #: modules/site-management/site-management.php:89 3187 3181 msgid "Manage robots.txt, ads.txt, app-ads.txt directly in WordPress." 3182 msgstr "" 3183 3184 #: modules/site-management/site-management.php:93 3185 msgid "Enable XML Sitemap on your site" 3186 msgstr "" 3187 3188 #: modules/site-management/site-management.php:96 3189 msgid "Enable and manage XML Sitemap for your site." 3188 3190 msgstr "" 3189 3191 … … 3338 3340 msgstr "" 3339 3341 3342 #: modules/xml-sitemap/includes/xml-sitemap-metaboxes.php:62 3343 #: modules/xml-sitemap/xml-sitemap.php:89 3344 #: modules/xml-sitemap/xml-sitemap.php:90 3345 msgid "XML Sitemap" 3346 msgstr "" 3347 3348 #: modules/xml-sitemap/includes/xml-sitemap-metaboxes.php:88 3349 msgid "Exclude from XML Sitemap" 3350 msgstr "" 3351 3352 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:92 3353 msgid "Sitemap URL" 3354 msgstr "" 3355 3356 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:99 3357 msgid "Post Types" 3358 msgstr "" 3359 3360 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:102 3361 msgid "Include these post types in the sitemap (if no post types are selected, Post will be included by default)" 3362 msgstr "" 3363 3364 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:110 3365 msgid "Include these taxonomies in the sitemap" 3366 msgstr "" 3367 3368 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:115 3369 msgid "Exclude Categories" 3370 msgstr "" 3371 3372 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:118 3373 msgid "Exclude the selected categories from the sitemap" 3374 msgstr "" 3375 3376 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:123 3377 msgid "Authors" 3378 msgstr "" 3379 3380 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:126 3381 msgid "Include Authors in the sitemap?" 3382 msgstr "" 3383 3384 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:130 3385 msgid "Maximum entries per sitemap" 3386 msgstr "" 3387 3388 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:136 3389 msgid "Minimum is 1. Maximum is 5000. Default is 2000. The higher the value, the slower it takes to generate the sitemap." 3390 msgstr "" 3391 3392 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:140 3393 msgid "Add sitemap to Robot.txt" 3394 msgstr "" 3395 3396 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:143 3397 msgid "Add sitemap URL to the robots.txt file (This requires the robots.txt module to be activated)." 3398 msgstr "" 3399 3400 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:147 3401 msgid "Exclude individual post from sitemap" 3402 msgstr "" 3403 3404 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:162 3405 msgid "Exclude Noindex Posts" 3406 msgstr "" 3407 3408 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:165 3409 msgid "Posts marked as \"noindex\" by your SEO plugin will be excluded from the sitemap." 3410 msgstr "" 3411 3412 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:183 3413 msgid "Change the sitemap URL. The default is wp-sitemap.xml" 3414 msgstr "" 3415 3416 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:184 3417 msgid "If you are not seeing the sitemap, go to Settings -> Permalinks, and press Save Changes to flush the rewrite rules." 3418 msgstr "" 3419 3420 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:301 3421 msgid "Open the post in the Post Editor. On the right menu, select \"Exclude from XML Sitemap\"." 3422 msgstr "" 3423 3424 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:327 3425 msgid "Admin Optimizer - XML Sitemap" 3426 msgstr "" 3427 3428 #: modules/xml-sitemap/settings/xml-sitemap-settings.php:332 3429 msgid "The native WP sitemap has been disabled. Check if other Sitemap or SEO plugins have disabled it." 3430 msgstr "" 3431 3340 3432 #: modules/custom-post-status/block/dist/index.js:1 3341 3433 #: modules/custom-post-status/block/src/index.js:42 -
admin-optimizer/trunk/modules/export-import/includes/option-names.php
r3396481 r3440057 21 21 'adminoptim_post_cloner', 22 22 'adminoptim_ads_robots_txt', 23 'adminoptim_xml_sitemap', 23 24 ]; -
admin-optimizer/trunk/modules/site-management/site-management.php
r3396481 r3440057 50 50 $this->modules['txt'] = new Ads_Robots_Txt(); 51 51 } 52 if ( ! empty( $this->options['enable_xml_sitemap'] ) ) { 53 $this->modules['sitemap'] = new XML_Sitemap(); 54 } 52 55 } 53 56 … … 86 89 'label' => __( 'Manage robots.txt, ads.txt, app-ads.txt directly in WordPress.', 'admin-optimizer' ), 87 90 ], 91 'xml-sitmap' => [ 92 'type' => 'slider-checkbox', 93 'title' => __( 'Enable XML Sitemap on your site', 'admin-optimizer' ), 94 'id' => 'enable-xml-sitemap', 95 'name' => 'enable_xml_sitemap', 96 'label' => __( 'Enable and manage XML Sitemap for your site.', 'admin-optimizer' ), 97 ], 88 98 ]; 89 99 $fields['site-management'] = [ -
admin-optimizer/trunk/readme.txt
r3420685 r3440057 7 7 Requires PHP: 7.4.0 8 8 Tested up to: 6.9 9 Stable tag: 1. 4.29 Stable tag: 1.5.0 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 66 66 == Site Management == 67 67 - **Manage robots.txt, ads.txt and app-ads.txt**: Provide an interface for you to easily add and update the robots.txt, ads.txt and app-ads.txt files, directly from your WordPress directly. There is no need to manually upload/download physical text file anymore. 68 - **XML Sitemap**: Configure and manage the native WP XML sitemap for search engines. 68 69 69 70 == User Management == … … 113 114 114 115 == Changelog == 116 = 1.5.0 = 117 Added: new XML Sitemap module 118 115 119 = 1.4.2 = 116 120 * The plugin now require PHP version 7.4.0 -
admin-optimizer/trunk/vendor/composer/autoload_classmap.php
r3420685 r3440057 88 88 'Yipresser\\AdminOptimizer\\Modules\\Users_Management' => $baseDir . '/modules/users-management/users-management.php', 89 89 'Yipresser\\AdminOptimizer\\Modules\\Utilities' => $baseDir . '/modules/utilities/utilities.php', 90 'Yipresser\\AdminOptimizer\\Modules\\XML_Sitemap' => $baseDir . '/modules/xml-sitemap/xml-sitemap.php', 91 'Yipresser\\AdminOptimizer\\Modules\\XML_Sitemap_Metaboxes' => $baseDir . '/modules/xml-sitemap/includes/xml-sitemap-metaboxes.php', 92 'Yipresser\\AdminOptimizer\\Modules\\XML_Sitemap_Settings' => $baseDir . '/modules/xml-sitemap/settings/xml-sitemap-settings.php', 90 93 'Yipresser\\AdminOptimizer\\Vendor\\RemoteMerge\\Message\\MessageInterface' => $vendorDir . '/remotemerge/totp-php/src/Message/MessageInterface.php', 91 94 'Yipresser\\AdminOptimizer\\Vendor\\RemoteMerge\\Message\\MessageStore' => $vendorDir . '/remotemerge/totp-php/src/Message/MessageStore.php', -
admin-optimizer/trunk/vendor/composer/autoload_static.php
r3420685 r3440057 160 160 'Yipresser\\AdminOptimizer\\Modules\\Users_Management' => __DIR__ . '/../..' . '/modules/users-management/users-management.php', 161 161 'Yipresser\\AdminOptimizer\\Modules\\Utilities' => __DIR__ . '/../..' . '/modules/utilities/utilities.php', 162 'Yipresser\\AdminOptimizer\\Modules\\XML_Sitemap' => __DIR__ . '/../..' . '/modules/xml-sitemap/xml-sitemap.php', 163 'Yipresser\\AdminOptimizer\\Modules\\XML_Sitemap_Metaboxes' => __DIR__ . '/../..' . '/modules/xml-sitemap/includes/xml-sitemap-metaboxes.php', 164 'Yipresser\\AdminOptimizer\\Modules\\XML_Sitemap_Settings' => __DIR__ . '/../..' . '/modules/xml-sitemap/settings/xml-sitemap-settings.php', 162 165 'Yipresser\\AdminOptimizer\\Vendor\\RemoteMerge\\Message\\MessageInterface' => __DIR__ . '/..' . '/remotemerge/totp-php/src/Message/MessageInterface.php', 163 166 'Yipresser\\AdminOptimizer\\Vendor\\RemoteMerge\\Message\\MessageStore' => __DIR__ . '/..' . '/remotemerge/totp-php/src/Message/MessageStore.php', -
admin-optimizer/trunk/vendor/composer/installed.php
r3420685 r3440057 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' c1426d9cf3cab0dc1db3376186b73439e66e0261',6 'reference' => '5e2038f05dda00c626d0f4a86a8f285ae4c95857', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 77 77 'pretty_version' => 'dev-master', 78 78 'version' => 'dev-master', 79 'reference' => ' c1426d9cf3cab0dc1db3376186b73439e66e0261',79 'reference' => '5e2038f05dda00c626d0f4a86a8f285ae4c95857', 80 80 'type' => 'wordpress-plugin', 81 81 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.