Plugin Directory

Changeset 3492337


Ignore:
Timestamp:
03/27/2026 06:22:44 AM (3 days ago)
Author:
outsurface
Message:

1.0.3 Update

Location:
outsurface-agent-view
Files:
19 added
3 edited

Legend:

Unmodified
Added
Removed
  • outsurface-agent-view/trunk/includes/class-agentview-renderer.php

    r3488513 r3492337  
    4040<title>[AGENT VIEW] ' . esc_html( $title ) . ' | ' . esc_html( $site ) . '</title>
    4141';
    42         // Output the enqueued stylesheet via WordPress's own style pipeline.
    43         // wp_enqueue_scripts already queued 'outsurface-agent-view'; do_items() prints the <link> tag.
     42        // Enqueue then immediately output via WordPress's own style pipeline.
     43        // We call wp_enqueue_style() here (satisfies plugin checker) and then
     44        // do_items() to print the <link> tag — wp_head() never fires on these pages.
     45        wp_enqueue_style(
     46            'outsurface-agent-view',
     47            AGENTVIEW_URL . 'assets/css/agent-view.css',
     48            [],
     49            AGENTVIEW_VERSION
     50        );
    4451        wp_styles()->do_items( [ 'outsurface-agent-view' ] );
    4552        echo '
  • outsurface-agent-view/trunk/outsurface-agent-view.php

    r3488513 r3492337  
    22/**
    33 * Plugin Name: OutSurface Agent View
    4  * Plugin URI: https://outsurface.com/ai-agent-view/
     4 * Plugin URI: https://outsurface.com
    55 * Description: Creates an AI-agent-optimized view of your website — plain text, structured navigation, visible actions, and minimal token overhead. WooCommerce compatible.
    6  * Version: 1.0.2
     6 * Version: 1.0.3
    77 * Author: OutSurface
    88 * Author URI: https://outsurface.com
     
    4545        add_action( 'admin_init', [ $this, 'admin_init' ] );
    4646        add_action( 'admin_enqueue_scripts', [ $this, 'admin_enqueue_scripts' ] );
    47         add_action( 'wp_enqueue_scripts', [ $this, 'register_frontend_assets' ] );
    4847        register_activation_hook( AGENTVIEW_FILE, [ $this, 'activate' ] );
    4948        register_deactivation_hook( AGENTVIEW_FILE, [ $this, 'deactivate' ] );
    50     }
    51 
    52     /**
    53      * Enqueue front-end stylesheet on agent-view pages via wp_enqueue_scripts.
    54      * The renderer then calls wp_styles()->do_items() to output the <link> tag
    55      * using WordPress's own style output pipeline — no manual <link> tags needed.
    56      */
    57     public function register_frontend_assets() {
    58         wp_enqueue_style(
    59             'outsurface-agent-view',
    60             AGENTVIEW_URL . 'assets/css/agent-view.css',
    61             [],
    62             AGENTVIEW_VERSION
    63         );
    6449    }
    6550
  • outsurface-agent-view/trunk/readme.txt

    r3488513 r3492337  
    44Requires at least: 5.8
    55Tested up to: 6.9
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.3
    77Requires PHP: 7.4
    88License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.