Plugin Directory

Changeset 2092450


Ignore:
Timestamp:
05/21/2019 03:53:44 PM (7 years ago)
Author:
sparklit
Message:

Remove nullable parameter type hint for lower PHP version support

Location:
adbutler/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • adbutler/trunk/adbutler.php

    r2090069 r2092450  
    55Plugin URI: https://wordpress.org/plugins/adbutler
    66Description: AdButler ad management system integration plugin. Simplify deployment of your ad zones with this highly effective manner of deploying your publishing needs
    7 Version: 1.23
     7Version: 1.24
    88Author: AdButler
    99Author URI: http://www.adbutler.com
     
    2323define( 'ADBUTLER_CACHEURL', ADBUTLER_URLPATH . 'cache/' );
    2424define( 'ADBUTLER_ADSERVE_URL','https://adbutler.com/external_request.spark');
    25 define( 'ADBUTLER_PLUGIN_VERSION', '1.23');
     25define( 'ADBUTLER_PLUGIN_VERSION', '1.24');
    2626
    2727
  • adbutler/trunk/includes/adbutler_interval_ads.class

    r2090069 r2092450  
    2929     * @param WP_Query $wp_query the current query
    3030     */
    31     public static function adbutler_interval_ad(WP_Post $post, ?WP_Query $wp_query = null)
     31    public static function adbutler_interval_ad($post, $wp_query = null)
    3232    {
    3333        if (!empty($wp_query)) {
     
    4646     * @param WP_Query $wp_query
    4747     */
    48     public static function adbutler_interval_ad_last(?WP_Query $wp_query = null)
     48    public static function adbutler_interval_ad_last($wp_query = null)
    4949    {
    5050        if (!empty($wp_query)) {
     
    6565     * @param WP_Query $wp_query the current query
    6666     */
    67     private static function should_inject_ad($index, WP_Query $wp_query)
     67    private static function should_inject_ad($index, $wp_query)
    6868    {
    6969        // in_the_loop ensures that we only do actions when the theme is looping through posts to render
     
    8383    }
    8484
    85     private static function should_show_on_page(WP_Query $wp_query)
     85    private static function should_show_on_page($wp_query)
    8686    {
    8787        if ($wp_query->is_home() && self::should_show_on_home_page()) return true;
     
    113113    }
    114114
    115     private static function should_show_on_category_page(WP_Query $wp_query)
     115    private static function should_show_on_category_page($wp_query)
    116116    {
    117117        if (!self::is_restricted()) return true;
Note: See TracChangeset for help on using the changeset viewer.