Plugin Directory

Changeset 3382807


Ignore:
Timestamp:
10/22/2025 04:46:32 PM (7 weeks ago)
Author:
seedprod
Message:

Staging 6.19.3

Location:
coming-soon/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • coming-soon/trunk/admin/includes/class-seedprod-landing-pages-table.php

    r3382013 r3382807  
    152152     */
    153153    protected function column_url( $item ) {
    154         // Use ?page_id= format like old Vue system (matching Dashboard-Pro.vue)
    155         $url = home_url( '?page_id=' . $item['ID'] );
     154        // Use get_permalink() to respect permalink settings
     155        // This will show pretty URLs when permalinks are enabled, or ?page_id= when they're not
     156        $url = get_permalink( $item['ID'] );
    156157
    157158        return sprintf(
     
    307308            );
    308309
    309             // Query to get counts - ONLY landing pages (template_type = 'lp')
     310            // Get special page IDs to exclude (Coming Soon, Maintenance, 404, Login)
     311            $csp_id    = get_option( 'seedprod_coming_soon_page_id' );
     312            $mmp_id    = get_option( 'seedprod_maintenance_mode_page_id' );
     313            $p404_id   = get_option( 'seedprod_404_page_id' );
     314            $loginp_id = get_option( 'seedprod_login_page_id' );
     315
     316            // Build exclusion list (only include non-empty IDs)
     317            $exclude_ids = array_filter( array( $csp_id, $mmp_id, $p404_id, $loginp_id ) );
     318
     319            // Build WHERE clause for exclusions
     320            $exclude_clause = '';
     321            if ( ! empty( $exclude_ids ) ) {
     322                $exclude_ids_string = implode( ',', array_map( 'absint', $exclude_ids ) );
     323                $exclude_clause     = "AND p.ID NOT IN ($exclude_ids_string)";
     324            }
     325
     326            // Query to get counts - All pages with _seedprod_page (landing pages only, excludes theme pages)
    310327            $results = $wpdb->get_results(
    311328                "SELECT p.post_status, COUNT(*) as count
    312329                FROM {$wpdb->posts} p
    313                 INNER JOIN {$wpdb->postmeta} pm_uuid ON (p.ID = pm_uuid.post_id AND pm_uuid.meta_key = '_seedprod_page_uuid')
    314                 INNER JOIN {$wpdb->postmeta} pm_type ON (p.ID = pm_type.post_id AND pm_type.meta_key = '_seedprod_page_template_type')
     330                INNER JOIN {$wpdb->postmeta} pm ON (p.ID = pm.post_id AND pm.meta_key = '_seedprod_page')
    315331                WHERE p.post_type = 'page'
    316                 AND pm_type.meta_value = 'lp'
     332                $exclude_clause
    317333                GROUP BY p.post_status",
    318334                ARRAY_A
     
    354370        $offset       = ( $current_page - 1 ) * $per_page;
    355371
    356         // Build query args - ONLY show landing pages (template_type = 'lp')
     372        // Get special page IDs to exclude (Coming Soon, Maintenance, 404, Login)
     373        $csp_id    = get_option( 'seedprod_coming_soon_page_id' );
     374        $mmp_id    = get_option( 'seedprod_maintenance_mode_page_id' );
     375        $p404_id   = get_option( 'seedprod_404_page_id' );
     376        $loginp_id = get_option( 'seedprod_login_page_id' );
     377
     378        // Build exclusion list (only include non-empty IDs)
     379        $exclude_ids = array_filter( array( $csp_id, $mmp_id, $p404_id, $loginp_id ) );
     380
     381        // Build query args - All pages with _seedprod_page (landing pages only, excludes theme pages)
    357382        $args = array(
    358383            'post_type'      => 'page',
     
    360385            'offset'         => $offset,
    361386            'post_status'    => 'any',
     387            'post__not_in'   => $exclude_ids,
    362388            'meta_query'     => array(
    363                 'relation' => 'AND',
    364389                array(
    365                     'key'     => '_seedprod_page_uuid',
     390                    'key'     => '_seedprod_page',
    366391                    'compare' => 'EXISTS',
    367392                ),
    368                 array(
    369                     'key'     => '_seedprod_page_template_type',
    370                     'value'   => 'lp',
    371                     'compare' => '=',
    372                 ),
    373393            ),
    374394        );
    375 
    376         // Note: No need to exclude special pages anymore - they have template_type cs/mm/404/loginpage, not 'lp'
    377395
    378396        // Filter by status
  • coming-soon/trunk/admin/includes/settings-functions.php

    r3381273 r3382807  
    121121    $stats['theme_templates_count'] = $wpdb->get_var( "SELECT COUNT(DISTINCT post_id) FROM $tablename WHERE meta_key = '_seedprod_is_theme_template' AND meta_value = '1'" );
    122122
    123     // Count landing pages: pages with _seedprod_page_uuid that are NOT special pages and NOT theme templates
     123    // Count landing pages: pages with _seedprod_page that are NOT special pages
     124    // Using _seedprod_page (not _seedprod_page_uuid) ensures we only count landing pages, not theme pages
    124125    // Match the logic from class-seedprod-landing-pages-table.php
    125126    if ( ! empty( $exclude_ids ) ) {
     
    129130            FROM $tablename pm
    130131            INNER JOIN $posts_table p ON pm.post_id = p.ID
    131             WHERE pm.meta_key = '_seedprod_page_uuid'
     132            WHERE pm.meta_key = '_seedprod_page'
    132133            AND p.post_type = 'page'
    133134            AND p.post_status != 'trash'
     
    139140            FROM $tablename pm
    140141            INNER JOIN $posts_table p ON pm.post_id = p.ID
    141             WHERE pm.meta_key = '_seedprod_page_uuid'
     142            WHERE pm.meta_key = '_seedprod_page'
    142143            AND p.post_type = 'page'
    143144            AND p.post_status != 'trash'"
  • coming-soon/trunk/admin/includes/template-functions.php

    r3382013 r3382807  
    613613        '_seedprod_page_type',
    614614        '_seedprod_page_template_id',
     615        '_seedprod_page_template_type',
    615616    );
    616617
  • coming-soon/trunk/coming-soon.php

    r3382013 r3382807  
    44Plugin URI: https://www.seedprod.com/lite-upgrade/?utm_source=WordPress&utm_campaign=liteplugin&utm_medium=plugin-uri-link
    55Description: The Easiest WordPress Drag & Drop Page Builder that allows you to build your website, create Landing Pages, Coming Soon Pages, Maintenance Mode Pages and more.
    6 Version:  6.19.1
     6Version:  6.19.3
    77Author: SeedProd
    88Author URI: https://www.seedprod.com/lite-upgrade/?utm_source=WordPress&utm_campaign=liteplugin&utm_medium=author-uri-link
     
    1818define( 'SEEDPROD_BUILD', 'lite' );
    1919define( 'SEEDPROD_SLUG', 'coming-soon/coming-soon.php' );
    20 define( 'SEEDPROD_VERSION', '6.19.1' );
     20define( 'SEEDPROD_VERSION', '6.19.3' );
    2121define( 'SEEDPROD_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
    2222// Example output: /Applications/MAMP/htdocs/wordpress/wp-content/plugins/seedprod/
  • coming-soon/trunk/languages/coming-soon.pot

    r3382013 r3382807  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Coming Soon Page, Maintenance Mode, Landing Pages & WordPress Website Builder by SeedProd 6.19.1\n"
     5"Project-Id-Version: Coming Soon Page, Maintenance Mode, Landing Pages & WordPress Website Builder by SeedProd 6.19.2\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/coming-soon\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-10-21T15:30:02+00:00\n"
     12"POT-Creation-Date: 2025-10-22T16:11:14+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    12781278
    12791279#: admin/includes/class-seedprod-landing-pages-table.php:123
    1280 #: admin/includes/class-seedprod-landing-pages-table.php:172
    1281 #: admin/includes/class-seedprod-landing-pages-table.php:284
     1280#: admin/includes/class-seedprod-landing-pages-table.php:173
     1281#: admin/includes/class-seedprod-landing-pages-table.php:285
    12821282#: admin/includes/class-seedprod-theme-templates-table.php:199
    12831283#: admin/partials/seedprod-admin-website-builder.php:230
     
    12861286
    12871287#: admin/includes/class-seedprod-landing-pages-table.php:130
    1288 #: admin/includes/class-seedprod-landing-pages-table.php:225
     1288#: admin/includes/class-seedprod-landing-pages-table.php:226
    12891289#: admin/includes/class-seedprod-theme-templates-table.php:186
    12901290#: admin/includes/class-seedprod-theme-templates-table.php:240
     
    12931293
    12941294#: admin/includes/class-seedprod-landing-pages-table.php:137
    1295 #: admin/includes/class-seedprod-landing-pages-table.php:226
     1295#: admin/includes/class-seedprod-landing-pages-table.php:227
    12961296#: admin/includes/class-seedprod-theme-templates-table.php:192
    12971297#: admin/includes/class-seedprod-theme-templates-table.php:241
     
    12991299msgstr ""
    13001300
    1301 #: admin/includes/class-seedprod-landing-pages-table.php:170
    1302 #: admin/includes/class-seedprod-landing-pages-table.php:260
     1301#: admin/includes/class-seedprod-landing-pages-table.php:171
     1302#: admin/includes/class-seedprod-landing-pages-table.php:261
    13031303#: admin/includes/class-seedprod-theme-templates-table.php:45
    13041304#: admin/partials/seedprod-admin-website-builder.php:216
     
    13061306msgstr ""
    13071307
    1308 #: admin/includes/class-seedprod-landing-pages-table.php:171
     1308#: admin/includes/class-seedprod-landing-pages-table.php:172
    13091309#: languages/seedprod-lite.php:948
    13101310msgid "Draft"
    13111311msgstr ""
    13121312
    1313 #: admin/includes/class-seedprod-landing-pages-table.php:173
     1313#: admin/includes/class-seedprod-landing-pages-table.php:174
    13141314msgid "Private"
    13151315msgstr ""
    13161316
    1317 #: admin/includes/class-seedprod-landing-pages-table.php:193
     1317#: admin/includes/class-seedprod-landing-pages-table.php:194
    13181318msgid "Unpublished"
    13191319msgstr ""
    13201320
    1321 #: admin/includes/class-seedprod-landing-pages-table.php:200
     1321#: admin/includes/class-seedprod-landing-pages-table.php:201
    13221322#, php-format
    13231323msgid "%s ago"
    13241324msgstr ""
    13251325
    1326 #: admin/includes/class-seedprod-landing-pages-table.php:202
     1326#: admin/includes/class-seedprod-landing-pages-table.php:203
    13271327#: languages/seedprod-lite.php:8902
    13281328msgid "F j, Y"
    13291329msgstr ""
    13301330
    1331 #: admin/includes/class-seedprod-landing-pages-table.php:204
     1331#: admin/includes/class-seedprod-landing-pages-table.php:205
    13321332msgid "F j, Y \\a\\t g:i a"
    13331333msgstr ""
    13341334
    1335 #: admin/includes/class-seedprod-landing-pages-table.php:209
     1335#: admin/includes/class-seedprod-landing-pages-table.php:210
    13361336msgid "Last Modified"
    13371337msgstr ""
    13381338
    1339 #: admin/includes/class-seedprod-landing-pages-table.php:219
     1339#: admin/includes/class-seedprod-landing-pages-table.php:220
    13401340#: admin/includes/class-seedprod-theme-templates-table.php:243
    13411341msgid "Move to Trash"
    13421342msgstr ""
    13431343
    1344 #: admin/includes/class-seedprod-landing-pages-table.php:249
     1344#: admin/includes/class-seedprod-landing-pages-table.php:250
    13451345#: admin/partials/seedprod-admin-template-selection.php:138
    13461346#: admin/partials/seedprod-admin-theme-kits-selection.php:56
     
    13501350msgstr ""
    13511351
    1352 #: admin/includes/class-seedprod-landing-pages-table.php:272
     1352#: admin/includes/class-seedprod-landing-pages-table.php:273
    13531353#: admin/partials/seedprod-admin-website-builder.php:223
    13541354msgid "Drafts"
    13551355msgstr ""
    13561356
    1357 #: admin/includes/class-seedprod-landing-pages-table.php:453
     1357#: admin/includes/class-seedprod-landing-pages-table.php:471
    13581358msgid "No landing pages found for your search."
    13591359msgstr ""
    13601360
    1361 #: admin/includes/class-seedprod-landing-pages-table.php:455
     1361#: admin/includes/class-seedprod-landing-pages-table.php:473
    13621362msgid "No landing pages found."
    13631363msgstr ""
     
    14651465#: admin/includes/license-functions.php:173
    14661466#: admin/includes/template-functions.php:551
    1467 #: admin/includes/template-functions.php:645
    1468 #: admin/includes/template-functions.php:680
    1469 #: admin/includes/template-functions.php:715
    1470 #: admin/includes/template-functions.php:750
     1467#: admin/includes/template-functions.php:646
     1468#: admin/includes/template-functions.php:681
     1469#: admin/includes/template-functions.php:716
     1470#: admin/includes/template-functions.php:751
    14711471msgid "Security check failed."
    14721472msgstr ""
     
    21802180
    21812181#: admin/includes/template-functions.php:563
    2182 #: admin/includes/template-functions.php:657
    2183 #: admin/includes/template-functions.php:692
    2184 #: admin/includes/template-functions.php:727
     2182#: admin/includes/template-functions.php:658
     2183#: admin/includes/template-functions.php:693
     2184#: admin/includes/template-functions.php:728
    21852185msgid "Invalid page ID."
    21862186msgstr ""
     
    21902190msgstr ""
    21912191
    2192 #: admin/includes/template-functions.php:629
     2192#: admin/includes/template-functions.php:630
    21932193msgid "Page duplicated successfully."
    21942194msgstr ""
    21952195
    2196 #: admin/includes/template-functions.php:650
     2196#: admin/includes/template-functions.php:651
    21972197msgid "You do not have permission to trash pages."
    21982198msgstr ""
    21992199
    2200 #: admin/includes/template-functions.php:664
     2200#: admin/includes/template-functions.php:665
    22012201msgid "Failed to trash page."
    22022202msgstr ""
    22032203
    2204 #: admin/includes/template-functions.php:669
     2204#: admin/includes/template-functions.php:670
    22052205msgid "Page moved to trash."
    22062206msgstr ""
    22072207
    2208 #: admin/includes/template-functions.php:685
     2208#: admin/includes/template-functions.php:686
    22092209msgid "You do not have permission to restore pages."
    22102210msgstr ""
    22112211
    2212 #: admin/includes/template-functions.php:699
     2212#: admin/includes/template-functions.php:700
    22132213msgid "Failed to restore page."
    22142214msgstr ""
    22152215
    2216 #: admin/includes/template-functions.php:704
     2216#: admin/includes/template-functions.php:705
    22172217msgid "Page restored successfully."
    22182218msgstr ""
    22192219
    2220 #: admin/includes/template-functions.php:720
     2220#: admin/includes/template-functions.php:721
    22212221msgid "You do not have permission to delete pages."
    22222222msgstr ""
    22232223
    2224 #: admin/includes/template-functions.php:734
     2224#: admin/includes/template-functions.php:735
    22252225msgid "Failed to delete page."
    22262226msgstr ""
    22272227
    2228 #: admin/includes/template-functions.php:739
     2228#: admin/includes/template-functions.php:740
    22292229msgid "Page deleted permanently."
    22302230msgstr ""
    22312231
    2232 #: admin/includes/template-functions.php:755
     2232#: admin/includes/template-functions.php:756
    22332233msgid "You do not have permission to perform bulk actions."
    22342234msgstr ""
    22352235
    2236 #: admin/includes/template-functions.php:763
     2236#: admin/includes/template-functions.php:764
    22372237#: admin/includes/theme-functions.php:578
    22382238msgid "Invalid request."
    22392239msgstr ""
    22402240
    2241 #: admin/includes/template-functions.php:794
     2241#: admin/includes/template-functions.php:795
    22422242#, php-format
    22432243msgid "%d pages moved to trash."
    22442244msgstr ""
    22452245
    2246 #: admin/includes/template-functions.php:797
     2246#: admin/includes/template-functions.php:798
    22472247#, php-format
    22482248msgid "%d pages restored."
    22492249msgstr ""
    22502250
    2251 #: admin/includes/template-functions.php:800
     2251#: admin/includes/template-functions.php:801
    22522252#, php-format
    22532253msgid "%d pages deleted permanently."
    22542254msgstr ""
    22552255
    2256 #: admin/includes/template-functions.php:805
     2256#: admin/includes/template-functions.php:806
    22572257#, php-format
    22582258msgid "%d pages failed."
Note: See TracChangeset for help on using the changeset viewer.