Plugin Directory

Changeset 3440057


Ignore:
Timestamp:
01/15/2026 06:46:10 AM (2 months ago)
Author:
yipresser
Message:

updated to v1.5.0

Location:
admin-optimizer/trunk
Files:
10 added
9 edited

Legend:

Unmodified
Added
Removed
  • admin-optimizer/trunk/admin-optimizer.php

    r3420685 r3440057  
    44 * Plugin URI: https://www.adminoptimizer.com
    55 * Description: An all-in-one plugin to enhance your WordPress sites
    6  * Version: 1.4.2
     6 * Version: 1.5.0
    77 * Requires PHP: 7.4.0
    88 * Author: Yipresser
  • admin-optimizer/trunk/includes/helper.php

    r3396481 r3440057  
    11<?php
    22namespace Yipresser\AdminOptimizer\Helpers;
     3
     4use const Yipresser\AdminOptimizer\Admin\MODULES_OPTION;
    35
    46// Exit if accessed directly.
     
    2426        return false;
    2527    }
     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    }
    2642}
  • admin-optimizer/trunk/languages/admin-optimizer.pot

    r3398621 r3440057  
    1 # Copyright (C) 2025 Yipresser
     1# Copyright (C) 2026 Yipresser
    22# This file is distributed under the GNU General Public License v2 or later.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Admin Optimizer 1.4.0\n"
     5"Project-Id-Version: Admin Optimizer 1.5.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/admin-optimizer\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-11-19T07:20:54+00:00\n"
     12"POT-Creation-Date: 2026-01-15T06:35:32+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    150150#: modules/db-cleaner/settings/db-cleaner-settings.php:240
    151151#: modules/modified-date/settings/modified-date-settings.php:81
     152#: modules/xml-sitemap/settings/xml-sitemap-settings.php:156
    152153msgid "Pro Options"
    153154msgstr ""
     
    408409
    409410#: modules/block-login/block-login.php:79
    410 #: modules/security/security.php:139
     411#: modules/security/security.php:137
    411412msgid "Block Failed Login"
    412413msgstr ""
     
    637638#: modules/custom-login-url/custom-login-url.php:80
    638639#: modules/custom-login-url/custom-login-url.php:81
    639 #: modules/security/security.php:131
     640#: modules/security/security.php:129
    640641msgid "Custom Login URL"
    641642msgstr ""
     
    12201221
    12211222#: modules/custom-post-types/settings/post-types-settings.php:505
     1223#: modules/xml-sitemap/settings/xml-sitemap-settings.php:107
    12221224msgid "Taxonomies"
    12231225msgstr ""
     
    31123114msgstr ""
    31133115
    3114 #: modules/security/security.php:88
     3116#: modules/security/security.php:86
    31153117msgid "Security"
    31163118msgstr ""
    31173119
    3118 #: modules/security/security.php:107
     3120#: modules/security/security.php:105
    31193121msgid "Hide WP version"
    31203122msgstr ""
    31213123
    31223124#. 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:111
     3125#: modules/security/security.php:109
    31243126#, php-format
    31253127msgid "Remove WP version from the header.%1$s%2$sLearn more%3$s"
    31263128msgstr ""
    31273129
    3128 #: modules/security/security.php:115
     3130#: modules/security/security.php:113
    31293131msgid "Hide Update notice to all users, except for Administrators"
    31303132msgstr ""
    31313133
    31323134#. 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:119
     3135#: modules/security/security.php:117
    31343136#, php-format
    31353137msgid "Only show update notices to Administrators and those with update capabilities.%1$s%2$sLearn more%3$s"
    31363138msgstr ""
    31373139
    3138 #: modules/security/security.php:123
     3140#: modules/security/security.php:121
    31393141msgid "Disable XML-RPC"
    31403142msgstr ""
    31413143
    31423144#. 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:127
     3145#: modules/security/security.php:125
    31443146#, php-format
    31453147msgid "Disable XML-RPC for the whole site.%1$s%2$sLearn more%3$s"
     
    31473149
    31483150#. 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:135
     3151#: modules/security/security.php:133
    31503152#, php-format
    31513153msgid "Hide the wp-login page and create a custom login URL for all users.%1$s%2$sLearn more%3$s"
     
    31533155
    31543156#. 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:143
     3157#: modules/security/security.php:141
    31563158#, php-format
    31573159msgid "Block the user from login after repeated failed login attempt. (comes with Pro options) %1$s%2$sLearn more%3$s"
    31583160msgstr ""
    31593161
     3162#: modules/security/security.php:145
     3163msgid "Enable Two Factor Authentication (2FA)"
     3164msgstr ""
     3165
     3166#. translators: %1$s is the line break tag. %2$s is the anchor tag. %3$s is the anchor closure tag.
    31603167#: 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:153
    31663168#, php-format
    31673169msgid "Enable two factor authentication for all users. (comes with Pro options)%1$s%2$sLearn more%3$s"
    31683170msgstr ""
    31693171
    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
    31793173msgid "Site Management"
    31803174msgstr ""
    31813175
    3182 #: modules/site-management/site-management.php:83
     3176#: modules/site-management/site-management.php:86
    31833177msgid "Enable robots.txt, ads.txt and app-ads.txt on your site"
    31843178msgstr ""
    31853179
    3186 #: modules/site-management/site-management.php:86
     3180#: modules/site-management/site-management.php:89
    31873181msgid "Manage robots.txt, ads.txt, app-ads.txt directly in WordPress."
     3182msgstr ""
     3183
     3184#: modules/site-management/site-management.php:93
     3185msgid "Enable XML Sitemap on your site"
     3186msgstr ""
     3187
     3188#: modules/site-management/site-management.php:96
     3189msgid "Enable and manage XML Sitemap for your site."
    31883190msgstr ""
    31893191
     
    33383340msgstr ""
    33393341
     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
     3345msgid "XML Sitemap"
     3346msgstr ""
     3347
     3348#: modules/xml-sitemap/includes/xml-sitemap-metaboxes.php:88
     3349msgid "Exclude from XML Sitemap"
     3350msgstr ""
     3351
     3352#: modules/xml-sitemap/settings/xml-sitemap-settings.php:92
     3353msgid "Sitemap URL"
     3354msgstr ""
     3355
     3356#: modules/xml-sitemap/settings/xml-sitemap-settings.php:99
     3357msgid "Post Types"
     3358msgstr ""
     3359
     3360#: modules/xml-sitemap/settings/xml-sitemap-settings.php:102
     3361msgid "Include these post types in the sitemap (if no post types are selected, Post will be included by default)"
     3362msgstr ""
     3363
     3364#: modules/xml-sitemap/settings/xml-sitemap-settings.php:110
     3365msgid "Include these taxonomies in the sitemap"
     3366msgstr ""
     3367
     3368#: modules/xml-sitemap/settings/xml-sitemap-settings.php:115
     3369msgid "Exclude Categories"
     3370msgstr ""
     3371
     3372#: modules/xml-sitemap/settings/xml-sitemap-settings.php:118
     3373msgid "Exclude the selected categories from the sitemap"
     3374msgstr ""
     3375
     3376#: modules/xml-sitemap/settings/xml-sitemap-settings.php:123
     3377msgid "Authors"
     3378msgstr ""
     3379
     3380#: modules/xml-sitemap/settings/xml-sitemap-settings.php:126
     3381msgid "Include Authors in the sitemap?"
     3382msgstr ""
     3383
     3384#: modules/xml-sitemap/settings/xml-sitemap-settings.php:130
     3385msgid "Maximum entries per sitemap"
     3386msgstr ""
     3387
     3388#: modules/xml-sitemap/settings/xml-sitemap-settings.php:136
     3389msgid "Minimum is 1. Maximum is 5000. Default is 2000. The higher the value, the slower it takes to generate the sitemap."
     3390msgstr ""
     3391
     3392#: modules/xml-sitemap/settings/xml-sitemap-settings.php:140
     3393msgid "Add sitemap to Robot.txt"
     3394msgstr ""
     3395
     3396#: modules/xml-sitemap/settings/xml-sitemap-settings.php:143
     3397msgid "Add sitemap URL to the robots.txt file (This requires the robots.txt module to be activated)."
     3398msgstr ""
     3399
     3400#: modules/xml-sitemap/settings/xml-sitemap-settings.php:147
     3401msgid "Exclude individual post from sitemap"
     3402msgstr ""
     3403
     3404#: modules/xml-sitemap/settings/xml-sitemap-settings.php:162
     3405msgid "Exclude Noindex Posts"
     3406msgstr ""
     3407
     3408#: modules/xml-sitemap/settings/xml-sitemap-settings.php:165
     3409msgid "Posts marked as \"noindex\" by your SEO plugin will be excluded from the sitemap."
     3410msgstr ""
     3411
     3412#: modules/xml-sitemap/settings/xml-sitemap-settings.php:183
     3413msgid "Change the sitemap URL. The default is wp-sitemap.xml"
     3414msgstr ""
     3415
     3416#: modules/xml-sitemap/settings/xml-sitemap-settings.php:184
     3417msgid "If you are not seeing the sitemap, go to Settings -> Permalinks, and press Save Changes to flush the rewrite rules."
     3418msgstr ""
     3419
     3420#: modules/xml-sitemap/settings/xml-sitemap-settings.php:301
     3421msgid "Open the post in the Post Editor. On the right menu, select \"Exclude from XML Sitemap\"."
     3422msgstr ""
     3423
     3424#: modules/xml-sitemap/settings/xml-sitemap-settings.php:327
     3425msgid "Admin Optimizer - XML Sitemap"
     3426msgstr ""
     3427
     3428#: modules/xml-sitemap/settings/xml-sitemap-settings.php:332
     3429msgid "The native WP sitemap has been disabled. Check if other Sitemap or SEO plugins have disabled it."
     3430msgstr ""
     3431
    33403432#: modules/custom-post-status/block/dist/index.js:1
    33413433#: modules/custom-post-status/block/src/index.js:42
  • admin-optimizer/trunk/modules/export-import/includes/option-names.php

    r3396481 r3440057  
    2121    'adminoptim_post_cloner',
    2222    'adminoptim_ads_robots_txt',
     23    'adminoptim_xml_sitemap',
    2324];
  • admin-optimizer/trunk/modules/site-management/site-management.php

    r3396481 r3440057  
    5050            $this->modules['txt'] = new Ads_Robots_Txt();
    5151        }
     52        if ( ! empty( $this->options['enable_xml_sitemap'] ) ) {
     53            $this->modules['sitemap'] = new XML_Sitemap();
     54        }
    5255    }
    5356
     
    8689                    'label' => __( 'Manage robots.txt, ads.txt, app-ads.txt directly in WordPress.', 'admin-optimizer' ),
    8790                ],
     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                ],
    8898            ];
    8999            $fields['site-management'] = [
  • admin-optimizer/trunk/readme.txt

    r3420685 r3440057  
    77Requires PHP: 7.4.0
    88Tested up to: 6.9
    9 Stable tag: 1.4.2
     9Stable tag: 1.5.0
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6666== Site Management ==
    6767- **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.
    6869
    6970== User Management ==
     
    113114
    114115== Changelog ==
     116= 1.5.0 =
     117Added: new XML Sitemap module
     118
    115119= 1.4.2 =
    116120* The plugin now require PHP version 7.4.0
  • admin-optimizer/trunk/vendor/composer/autoload_classmap.php

    r3420685 r3440057  
    8888    'Yipresser\\AdminOptimizer\\Modules\\Users_Management' => $baseDir . '/modules/users-management/users-management.php',
    8989    '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',
    9093    'Yipresser\\AdminOptimizer\\Vendor\\RemoteMerge\\Message\\MessageInterface' => $vendorDir . '/remotemerge/totp-php/src/Message/MessageInterface.php',
    9194    'Yipresser\\AdminOptimizer\\Vendor\\RemoteMerge\\Message\\MessageStore' => $vendorDir . '/remotemerge/totp-php/src/Message/MessageStore.php',
  • admin-optimizer/trunk/vendor/composer/autoload_static.php

    r3420685 r3440057  
    160160        'Yipresser\\AdminOptimizer\\Modules\\Users_Management' => __DIR__ . '/../..' . '/modules/users-management/users-management.php',
    161161        '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',
    162165        'Yipresser\\AdminOptimizer\\Vendor\\RemoteMerge\\Message\\MessageInterface' => __DIR__ . '/..' . '/remotemerge/totp-php/src/Message/MessageInterface.php',
    163166        'Yipresser\\AdminOptimizer\\Vendor\\RemoteMerge\\Message\\MessageStore' => __DIR__ . '/..' . '/remotemerge/totp-php/src/Message/MessageStore.php',
  • admin-optimizer/trunk/vendor/composer/installed.php

    r3420685 r3440057  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'c1426d9cf3cab0dc1db3376186b73439e66e0261',
     6        'reference' => '5e2038f05dda00c626d0f4a86a8f285ae4c95857',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    7777            'pretty_version' => 'dev-master',
    7878            'version' => 'dev-master',
    79             'reference' => 'c1426d9cf3cab0dc1db3376186b73439e66e0261',
     79            'reference' => '5e2038f05dda00c626d0f4a86a8f285ae4c95857',
    8080            'type' => 'wordpress-plugin',
    8181            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.