Plugin Directory

Changeset 1858153


Ignore:
Timestamp:
04/14/2018 12:06:53 AM (8 years ago)
Author:
bdeleasa
Message:

Changing the doing_ajax constant to the new Wordpress function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-random-post-thumbnails/trunk/classes/class-wprpt.php

    r1842172 r1858153  
    2222        $this->init_options_page();
    2323
    24         if ( ! is_admin() || DOING_AJAX ) {
     24        if ( ! is_admin() || wp_doing_ajax() ) {
    2525            add_filter( 'post_thumbnail_id', array($this, 'set_post_thumbnail_id') );
    2626            add_filter( 'get_post_metadata', array($this, 'filter_get_post_metadata') , 10, 4);
Note: See TracChangeset for help on using the changeset viewer.