Plugin Directory

Changeset 1702468


Ignore:
Timestamp:
07/25/2017 02:54:12 PM (9 years ago)
Author:
postpostmodern
Message:

v 0.6.0

Location:
admin-ajax-php-no-thank-you/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • admin-ajax-php-no-thank-you/trunk/_plugin.php

    r1690123 r1702468  
    88Plugin URI:     https://github.com/pinecone-dot-website/admin-ajax-dot-php-no-thank-you
    99Text Domain:   
    10 Version:        0.5.0
     10Version:        0.6.0
    1111*/
    1212
  • admin-ajax-php-no-thank-you/trunk/lib/Admin_Ajax/Admin.php

    r1690123 r1702468  
    77    public function __construct()
    88    {
     9        add_filter( 'admin_footer_text', array($this, 'admin_footer_text') );
    910        add_action( 'admin_menu', array($this, 'admin_menu') );
    1011        add_filter( 'plugin_action_links_admin-ajax-dot-php-no-thank-you/_plugin.php', array($this, 'plugin_action_links') );
     12    }
     13
     14    /**
     15    *
     16    *   @param string html
     17    *   @return string html
     18    */
     19    public function admin_footer_text($original = '')
     20    {
     21        return render( 'admin/options-general_footer', array(
     22            'version' => version()
     23        ) );
    1124    }
    1225
  • admin-ajax-php-no-thank-you/trunk/lib/Admin_Ajax/No_Thank_You.php

    r1690123 r1702468  
    7575    public function require_admin_ajax()
    7676    {
     77        require_once ABSPATH . 'wp-admin/includes/class-wp-screen.php';
     78        $GLOBALS['current_screen'] = \WP_Screen::get('no-thank-you');
     79
    7780        require ABSPATH.'/wp-admin/admin-ajax.php';
    7881        exit();
     
    8992    public function rewrite_ajax_admin_url($url, $path, $blog_id)
    9093    {
    91        
    9294        if (\stripos( $path, 'admin-ajax.php') !== 0) {
    9395            return $url;
     
    9698        $parsed = \parse_url( $url );
    9799       
    98 
    99100        if ((self::$settings['default'] == 'rest-api') && in_array('rest-api', self::$settings['enabled'])) {
    100101            $url = self::get_endpoint_rest( $blog_id );
  • admin-ajax-php-no-thank-you/trunk/readme.txt

    r1688551 r1702468  
    1919
    2020== Changelog ==
     21= 0.6.0 =
     22* set current_screen global so is_admin() returns true.
     23
    2124= 0.4.0 =
    2225* fix calls to admin_url('admin-ajax.php') with query vars in the string
Note: See TracChangeset for help on using the changeset viewer.