Plugin Directory

Changeset 1600892


Ignore:
Timestamp:
02/21/2017 09:13:27 PM (9 years ago)
Author:
somatic
Message:

php7 compatibility, no more split()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • somatic-framework/trunk/inc/somaFunctions.php

    r1359484 r1600892  
    978978    function wp_version_check() {
    979979        global $wp_version; #wp
    980         $new_admin_version = '3.3';
     980        $new_admin_version = '4.4';
    981981        $updateURL = "";
    982982        if (version_compare($wp_version, $new_admin_version, '<')) {
    983983            add_action( 'admin_notices', create_function('', "
    984                 echo '<div id=\"message\" class=\"error\" style=\"font-weight: bold\"><p>WORDPRESS 3.3 MINIMUM REQUIRED - please update WP or de-activate this plugin!</p></div>';
     984                echo '<div id=\"message\" class=\"error\" style=\"font-weight: bold\"><p>WORDPRESS 4.4 MINIMUM REQUIRED - please update WP or de-activate this plugin!</p></div>';
    985985            "));
    986986        }
     
    999999        $post_count = 0;
    10001000        $slug_where = '';
    1001         $catslugs_arr = split(',', $catslugs);
     1001        $catslugs_arr = explode(',', $catslugs);
    10021002
    10031003        foreach ($catslugs_arr as $catslugkey => $catslug) {
Note: See TracChangeset for help on using the changeset viewer.