[wp-trac] [WordPress Trac] #45377: Video Shortcode Ajax Issue

WordPress Trac noreply at wordpress.org
Mon Nov 19 13:41:57 UTC 2018


#45377: Video Shortcode Ajax Issue
-----------------------------+------------------------------
 Reporter:  Nenad Obradovic  |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Shortcodes       |     Version:  5.0
 Severity:  minor            |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by swissspidy):

 As the name implies, `admin-ajax.php` runs in admin context. I'd recommend
 looking into using the superior REST API instead. For example, WordPress
 5.0 has a `WP_REST_Block_Renderer_Controller` class that you could use as
 inspiration for a shortcode renderer controller.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45377#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list