Advertisement
Guest User

simple image sizes 3.2.0 patch for php 5.3

a guest
Feb 8th, 2018
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 16.94 KB | None | 0 0
  1. diff -r -u simple-image-sizes/classes/admin/main.php simple-image-sizes/classes/admin/main.php
  2. --- simple-image-sizes/classes/admin/main.php   2018-02-08 13:54:52.000000000 -0500
  3. +++ simple-image-sizes/classes/admin/main.php   2018-02-08 14:01:36.000000000 -0500
  4. @@ -3,7 +3,7 @@
  5.  Class SIS_Admin_Main {
  6.  
  7.     public function __construct() {
  8. -       add_action( 'admin_init', [ __CLASS__, 'register_assets' ] );
  9. +       add_action( 'admin_init', array( __CLASS__, 'register_assets' ) );
  10.     }
  11.  
  12.     /**
  13. @@ -12,18 +12,18 @@
  14.     public static function register_assets() {
  15.         $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG === true ? '' : '.min';
  16.         // Add javascript.
  17. -       wp_register_script( 'sis_js', SIS_URL . 'assets/js/dist/app' . $suffix . '.js', [
  18. +       wp_register_script( 'sis_js', SIS_URL . 'assets/js/dist/app' . $suffix . '.js', array(
  19.             'jquery',
  20.             'jquery-ui-button',
  21.             'jquery-ui-progressbar',
  22.             'underscore',
  23. -       ], SIS_VERSION );
  24. +       ), SIS_VERSION );
  25.  
  26.         // Add javascript translations.
  27.         wp_localize_script( 'sis_js', 'sis', self::localize_vars() );
  28.  
  29.         // Add CSS.
  30. -       wp_enqueue_style( 'sis_css', SIS_URL . 'assets/css/sis-style' . $suffix . '.css', [], SIS_VERSION );
  31. +       wp_enqueue_style( 'sis_css', SIS_URL . 'assets/css/sis-style' . $suffix . '.css', array(), SIS_VERSION );
  32.     }
  33.  
  34.  
  35. @@ -86,10 +86,10 @@
  36.  
  37.         // Check Id.
  38.         if ( (int) $att_id <= 0 ) {
  39. -           return [
  40. +           return array(
  41.                 'time'  => timer_stop( false, 4 ),
  42.                 'error' => __( 'No id given in POST datas.', 'simple-image-sizes' ),
  43. -           ];
  44. +           );
  45.         }
  46.  
  47.         // Get the path.
  48. @@ -98,7 +98,7 @@
  49.         // Regen the attachment.
  50.         if ( false !== $fullsizepath && file_exists( $fullsizepath ) ) {
  51.             if ( false == wp_update_attachment_metadata( $att_id, self::wp_generate_attachment_metadata_custom( $att_id, $fullsizepath, $thumbnails ) ) ) {
  52. -               return [
  53. +               return array(
  54.                     'src'     => wp_get_attachment_thumb_url( $att_id ),
  55.                     'time'    => timer_stop( false, 4 ),
  56.                     'message' => sprintf(
  57. @@ -106,10 +106,10 @@
  58.                         get_edit_post_link( $att_id ),
  59.                         get_the_title( $att_id )
  60.                     ),
  61. -               ];
  62. +               );
  63.             }
  64.         } else {
  65. -           return [
  66. +           return array(
  67.                 'src'   => wp_get_attachment_thumb_url( $att_id ),
  68.                 'time'  => timer_stop( false, 4 ),
  69.                 'error' => sprintf(
  70. @@ -117,16 +117,16 @@
  71.                     get_edit_post_link( $att_id ),
  72.                     get_the_title( $att_id )
  73.                 ),
  74. -           ];
  75. +           );
  76.  
  77.         }
  78.  
  79.         // Display the attachment url for feedback.
  80. -       return [
  81. +       return array(
  82.             'time'  => timer_stop( false, 4 ),
  83.             'src'   => wp_get_attachment_thumb_url( $att_id ),
  84.             'title' => get_the_title( $att_id ),
  85. -       ];
  86. +       );
  87.     }
  88.  
  89.     /**
  90. @@ -159,28 +159,28 @@
  91.  
  92.         // Return the only possible.
  93.         if ( version_compare( $wp_version, '3.9', '<' ) ) {
  94. -           return [];
  95. +           return array();
  96.         }
  97.  
  98. -       $x = [
  99. +       $x = array(
  100.             'left'   => __( 'Left', 'simple-image-sizes' ),
  101.             'center' => __( 'Center', 'simple-image-sizes' ),
  102.             'right'  => __( 'Right', 'simple-image-sizes' ),
  103. -       ];
  104. +       );
  105.  
  106. -       $y = [
  107. +       $y = array(
  108.             'top'    => __( 'top', 'simple-image-sizes' ),
  109.             'center' => __( 'center', 'simple-image-sizes' ),
  110.             'bottom' => __( 'bottom', 'simple-image-sizes' ),
  111. -       ];
  112. +       );
  113.  
  114.         /**
  115.          * Base crops
  116.          */
  117. -       $crops = [
  118. +       $crops = array(
  119.             0 => __( 'No', 'simple-image-sizes' ),
  120.             1 => __( 'Yes', 'simple-image-sizes' ),
  121. -       ];
  122. +       );
  123.  
  124.         foreach ( $x as $x_pos => $x_pos_label ) {
  125.             foreach ( $y as $y_pos => $y_pos_label ) {
  126. @@ -239,7 +239,7 @@
  127.  
  128.         $meta_datas = get_post_meta( $attachment_id, '_wp_attachment_metadata', true );
  129.  
  130. -       $metadata = [];
  131. +       $metadata = array();
  132.         if ( preg_match( '!^image/!', get_post_mime_type( $attachment ) ) && file_is_displayable_image( $file ) ) {
  133.             $imagesize          = getimagesize( $file );
  134.             $metadata['width']  = $imagesize[0];
  135. @@ -254,11 +254,11 @@
  136.             global $_wp_additional_image_sizes;
  137.  
  138.             foreach ( get_intermediate_image_sizes() as $s ) {
  139. -               $sizes[ $s ] = [
  140. +               $sizes[ $s ] = array(
  141.                     'width'  => '',
  142.                     'height' => '',
  143.                     'crop'   => false,
  144. -               ];
  145. +               );
  146.                 if ( isset( $_wp_additional_image_sizes[ $s ]['width'] ) ) {
  147.                     $sizes[ $s ]['width'] = intval( $_wp_additional_image_sizes[ $s ]['width'] );
  148.                 } // For theme-added sizes
  149. diff -r -u simple-image-sizes/classes/admin/media.php simple-image-sizes/classes/admin/media.php
  150. --- simple-image-sizes/classes/admin/media.php  2018-02-08 13:54:52.000000000 -0500
  151. +++ simple-image-sizes/classes/admin/media.php  2018-02-08 14:10:20.000000000 -0500
  152. @@ -7,26 +7,26 @@
  153.      *
  154.      * @var array
  155.      */
  156. -   public static $original = [
  157. +   public static $original = array(
  158.         'thumbnail',
  159.         'medium',
  160.         'large',
  161. -   ];
  162. +   );
  163.  
  164.     public function __construct() {
  165.         // Init.
  166. -       add_action( 'admin_menu', [ __CLASS__, 'init' ] );
  167. -       add_action( 'admin_enqueue_scripts', [ __CLASS__, 'enqueue_assets' ], 11 );
  168. +       add_action( 'admin_menu', array( __CLASS__, 'init' ) );
  169. +       add_action( 'admin_enqueue_scripts', array( __CLASS__, 'enqueue_assets' ), 11 );
  170.  
  171.         // Add ajax action.
  172. -       add_action( 'wp_ajax_sis_get_list', [ __CLASS__, 'a_get_list' ] );
  173. -       add_action( 'wp_ajax_sis_rebuild_images', [ __CLASS__, 'a_thumbnails_rebuild' ] );
  174. -       add_action( 'wp_ajax_sis_get_sizes', [ __CLASS__, 'a_get_sizes' ] );
  175. -       add_action( 'wp_ajax_sis_add_size', [ __CLASS__, 'a_add_size' ] );
  176. -       add_action( 'wp_ajax_sis_remove_size', [ __CLASS__, 'a_remove_size' ] );
  177. +       add_action( 'wp_ajax_sis_get_list', array( __CLASS__, 'a_get_list' ) );
  178. +       add_action( 'wp_ajax_sis_rebuild_images', array( __CLASS__, 'a_thumbnails_rebuild' ) );
  179. +       add_action( 'wp_ajax_sis_get_sizes', array( __CLASS__, 'a_get_sizes' ) );
  180. +       add_action( 'wp_ajax_sis_add_size', array( __CLASS__, 'a_add_size' ) );
  181. +       add_action( 'wp_ajax_sis_remove_size', array( __CLASS__, 'a_remove_size' ) );
  182.  
  183.         // Add link in plugins list.
  184. -       add_filter( 'plugin_action_links', [ __CLASS__, 'add_settings_link' ], 10, 2 );
  185. +       add_filter( 'plugin_action_links', array( __CLASS__, 'add_settings_link' ), 10, 2 );
  186.     }
  187.  
  188.     /**
  189. @@ -43,7 +43,7 @@
  190.             return;
  191.         }
  192.  
  193. -       $suffixes = [ 'options-media.php', 'settings_page_media' ];
  194. +       $suffixes = array( 'options-media.php', 'settings_page_media' );
  195.         if ( ! in_array( $hook_suffix, $suffixes, true ) ) {
  196.             return;
  197.         }
  198. @@ -55,7 +55,7 @@
  199.         wp_enqueue_style( 'sis_css' );
  200.  
  201.         // Add underscore template.
  202. -       add_action( 'admin_footer', [ 'SIS_Admin_Main', 'add_template' ] );
  203. +       add_action( 'admin_footer', array( 'SIS_Admin_Main', 'add_template' ) );
  204.     }
  205.  
  206.  
  207. @@ -115,15 +115,15 @@
  208.             $crop = isset( $_wp_additional_image_sizes[ $s ]['crop'] ) ? intval( $_wp_additional_image_sizes[ $s ]['crop'] ) : get_option( "{$s}_crop" );
  209.  
  210.             // Add the setting field for this size.
  211. -           add_settings_field( 'image_size_' . $s, sprintf( __( '%s size', 'simple-image-sizes' ), $s ), [
  212. +           add_settings_field( 'image_size_' . $s, sprintf( __( '%s size', 'simple-image-sizes' ), $s ), array(
  213.                 __CLASS__,
  214.                 'image_sizes',
  215. -           ], 'media', 'default', [
  216. +           ), 'media', 'default', array(
  217.                     'name' => $s,
  218.                      'width' => $width,
  219.                      'height' => $height,
  220.                      'c' => $crop,
  221. -                ]
  222. +                )
  223.              );
  224.         }
  225.  
  226. @@ -131,22 +131,22 @@
  227.         register_setting( 'media', SIS_OPTION );
  228.  
  229.         // Add the button.
  230. -       add_settings_field( 'add_size_button', __( 'Add a new size', 'simple-image-sizes' ), [
  231. +       add_settings_field( 'add_size_button', __( 'Add a new size', 'simple-image-sizes' ), array(
  232.             __CLASS__,
  233.             'addSizeButton',
  234. -       ], 'media' );
  235. +       ), 'media' );
  236.  
  237.         // Add php button.
  238. -       add_settings_field( 'get_php_button', __( 'Get php for theme', 'simple-image-sizes' ), [
  239. +       add_settings_field( 'get_php_button', __( 'Get php for theme', 'simple-image-sizes' ), array(
  240.             __CLASS__,
  241.             'getPhpButton',
  242. -       ], 'media' );
  243. +       ), 'media' );
  244.  
  245.         // Add section for the thumbnail regeneration.
  246. -       add_settings_section( 'thumbnail_regenerate', __( 'Thumbnail regeneration', 'simple-image-sizes' ), [
  247. +       add_settings_section( 'thumbnail_regenerate', __( 'Thumbnail regeneration', 'simple-image-sizes' ), array(
  248.             __CLASS__,
  249.             'thumbnailRegenerate',
  250. -       ], 'media' );
  251. +       ), 'media' );
  252.     }
  253.  
  254.     /**
  255. @@ -166,7 +166,7 @@
  256.         }
  257.  
  258.         // Get the options.
  259. -       $sizes = (array) get_option( SIS_OPTION, [] );
  260. +       $sizes = (array) get_option( SIS_OPTION, array() );
  261.  
  262.         // Get the vars.
  263.         $height = isset( $sizes[ $args['name'] ]['h'] ) ? $sizes[ $args['name'] ]['h'] : $args['height'];
  264. @@ -287,7 +287,7 @@
  265.         $nonce = isset( $_POST['nonce'] ) ? $_POST['nonce'] : '';
  266.  
  267.         // Get old options
  268. -       $sizes              = (array) get_option( SIS_OPTION, [] );
  269. +       $sizes              = (array) get_option( SIS_OPTION, array() );
  270.         $croppings          = SIS_Admin_Main::get_available_crop();
  271.         $croppings[ true ]  = '';
  272.         $croppings[ false ] = '';
  273. @@ -311,14 +311,14 @@
  274.         }
  275.  
  276.         // Make values
  277. -       $values = [
  278. +       $values = array(
  279.              'custom' => 1,
  280.              'w' => $width,
  281.              'h' => $height,
  282.              'c' => $crop,
  283.              's' => $show,
  284.              'n' => $cn,
  285. -        ];
  286. +        );
  287.  
  288.         // If the size have not changed return 2
  289.         if ( isset( $sizes[ $name ] ) && $sizes[ $name ] === $values ) {
  290. @@ -343,7 +343,7 @@
  291.     public static function a_remove_size() {
  292.  
  293.         // Get old options
  294. -       $sizes = (array) get_option( SIS_OPTION, [] );
  295. +       $sizes = (array) get_option( SIS_OPTION, array() );
  296.  
  297.         // Get the nonce and name
  298.         $nonce = isset( $_POST['nonce'] ) ? $_POST['nonce'] : '';
  299. @@ -424,7 +424,7 @@
  300.  
  301.         // Check the nonce
  302.         if ( ! wp_verify_nonce( $nonce, 'getList' ) ) {
  303. -           wp_send_json( [] );
  304. +           wp_send_json( array() );
  305.         }
  306.  
  307.         if ( isset( $_POST['post_types'] ) && ! empty( $_POST['post_types'] ) ) {
  308. @@ -436,7 +436,7 @@
  309.             }
  310.  
  311.             if ( empty( $_POST['post_types'][ $key ] ) ) {
  312. -               wp_send_json( [] );
  313. +               wp_send_json( array() );
  314.             }
  315.  
  316.             // Get image medias.
  317. @@ -454,19 +454,19 @@
  318.                     WHERE post_type IN ('" . implode( "', '", $_POST['post_types'] ) . "')
  319.                 )" );
  320.             // Return the Id's and Title of medias
  321. -           wp_send_json( [ 'total' => $attachments ] );
  322. +           wp_send_json( array( 'total' => $attachments ) );
  323.  
  324.         } else {
  325. -           $attachments = get_children( [
  326. +           $attachments = get_children( array(
  327.                 'post_type'      => 'attachment',
  328.                 'post_mime_type' => 'image',
  329.                 'numberposts'    => - 1,
  330.                 'post_status'    => null,
  331.                 'post_parent'    => null, // any parent
  332.                 'output'         => 'ids',
  333. -           ] );
  334. +           ) );
  335.             // Return the Id's and Title of medias
  336. -           wp_send_json( [ 'total' => count( $attachments ) ] );
  337. +           wp_send_json( array( 'total' => count( $attachments ) ) );
  338.         }
  339.  
  340.     }
  341. @@ -492,7 +492,7 @@
  342.  
  343.         // Check the nonce
  344.         if ( ! wp_verify_nonce( $nonce, 'regen' ) ) {
  345. -           wp_send_json( [ 'error' => __( 'Trying to cheat ?', 'simple-image-sizes' ) ] );
  346. +           wp_send_json( array( 'error' => __( 'Trying to cheat ?', 'simple-image-sizes' ) ) );
  347.         }
  348.  
  349.         if ( 'any' !== $post_types ) {
  350. @@ -504,7 +504,7 @@
  351.             }
  352.  
  353.             if ( empty( $_POST['post_types'] ) ) {
  354. -               wp_send_json( [] );
  355. +               wp_send_json( array() );
  356.             }
  357.  
  358.             // Get image medias
  359. @@ -525,22 +525,22 @@
  360.             ", $offset ) );
  361.  
  362.         } else {
  363. -           $attachment = get_posts( [
  364. +           $attachment = get_posts( array(
  365.                 'post_type'      => 'attachment',
  366.                 'post_mime_type' => 'image',
  367.                 'numberposts'    => 1,
  368.                 'post_status'    => 'any',
  369.                 'output'         => 'object',
  370.                 'offset'         => $offset,
  371. -           ] );
  372. +           ) );
  373.  
  374.             $attachment = ! empty( $attachment ) ? $attachment[0]->ID : 0;
  375.         }
  376.  
  377.         if ( empty( $attachment ) ) {
  378. -           wp_send_json( [
  379. +           wp_send_json( array(
  380.                 'message' => __( 'Regeneration ended', 'simple-image-sizes' )
  381. -           ] );
  382. +           ) );
  383.         }
  384.         wp_send_json( SIS_Admin_Main::thumbnail_rebuild( $attachment, $thumbnails ) );
  385.     }
  386. diff -r -u simple-image-sizes/classes/admin/post.php simple-image-sizes/classes/admin/post.php
  387. --- simple-image-sizes/classes/admin/post.php   2018-02-08 13:54:52.000000000 -0500
  388. +++ simple-image-sizes/classes/admin/post.php   2018-02-08 14:05:11.000000000 -0500
  389. @@ -3,24 +3,24 @@
  390.  Class SIS_Admin_Post {
  391.     public function __construct() {
  392.  
  393. -       add_filter( 'image_size_names_choose', [ __CLASS__, 'add_thumbnail_name' ] );
  394. +       add_filter( 'image_size_names_choose', array( __CLASS__, 'add_thumbnail_name' ) );
  395.  
  396. -       add_action( 'admin_enqueue_scripts', [ __CLASS__, 'enqueue_assets' ], 11 );
  397. +       add_action( 'admin_enqueue_scripts', array( __CLASS__, 'enqueue_assets' ), 11 );
  398.  
  399.         // Rebuilt the image.
  400. -       add_action( 'wp_ajax_sis_rebuild_image', [ __CLASS__, 'a_thumbnail_rebuild' ] );
  401. +       add_action( 'wp_ajax_sis_rebuild_image', array( __CLASS__, 'a_thumbnail_rebuild' ) );
  402.  
  403.         // Rebuild featured.
  404. -       add_action( 'wp_ajax_sis_rebuild_featured', [ __CLASS__, 'a_featured_rebuild' ] );
  405. +       add_action( 'wp_ajax_sis_rebuild_featured', array( __CLASS__, 'a_featured_rebuild' ) );
  406.  
  407.         // Add action in media row quick actions.
  408. -       add_filter( 'media_row_actions', [ __CLASS__, 'add_actions_list' ], 10, 2 );
  409. +       add_filter( 'media_row_actions', array( __CLASS__, 'add_actions_list' ), 10, 2 );
  410.  
  411.         // Add filter for the Media single.
  412. -       add_filter( 'attachment_fields_to_edit', [ __CLASS__, 'add_field_regenerate' ], 9, 2 );
  413. +       add_filter( 'attachment_fields_to_edit', array( __CLASS__, 'add_field_regenerate' ), 9, 2 );
  414.  
  415.         // Media regenerate on admin featured.
  416. -       add_filter( 'admin_post_thumbnail_html', [ __CLASS__, 'admin_post_thumbnail_html' ], 10, 2 );
  417. +       add_filter( 'admin_post_thumbnail_html', array( __CLASS__, 'admin_post_thumbnail_html' ), 10, 2 );
  418.     }
  419.  
  420.     /**
  421. @@ -69,13 +69,13 @@
  422.  
  423.         // Check the nonce.
  424.         if ( ! wp_verify_nonce( $nonce, 'sis-regenerate-featured-' . $id ) ) {
  425. -           wp_send_json( [ 'error' => __( 'Trying to cheat ?', 'simple-image-sizes' ) ] );
  426. +           wp_send_json( array( 'error' => __( 'Trying to cheat ?', 'simple-image-sizes' ) ) );
  427.         }
  428.  
  429.         $attachment_id = get_post_thumbnail_id( $id );
  430.  
  431.         if ( ! has_post_thumbnail( $id ) || is_null( $attachment_id ) ) {
  432. -           wp_send_json( [ 'error' => __( 'There is no media attached to this content.', 'simple-image-sizes' ) ] );
  433. +           wp_send_json( array( 'error' => __( 'There is no media attached to this content.', 'simple-image-sizes' ) ) );
  434.         }
  435.  
  436.         // Get the id.
  437. @@ -99,7 +99,7 @@
  438.         /**
  439.          * Enqueue the assets for the featured image only on the edit pages and the post types that supports it
  440.          */
  441. -       if ( in_array( $hook_suffix, [ 'post-new.php', 'post.php' ] ) ) {
  442. +       if ( in_array( $hook_suffix, array( 'post-new.php', 'post.php' ) ) ) {
  443.             if ( post_type_supports( get_post_type( get_post() ), 'thumbnail' ) ) {
  444.                 // Add javascript.
  445.                 wp_enqueue_script( 'sis_js' );
  446. @@ -111,7 +111,7 @@
  447.             wp_enqueue_script( 'sis_js' );
  448.  
  449.             // Add underscore template.
  450. -           add_action( 'admin_footer', [ 'SIS_Admin_Main', 'add_template' ] );
  451. +           add_action( 'admin_footer', array( 'SIS_Admin_Main', 'add_template' ) );
  452.         }
  453.     }
  454.  
  455. @@ -131,7 +131,7 @@
  456.  
  457.         // Check the nonce.
  458.         if ( ! wp_verify_nonce( $nonce, 'regen' ) ) {
  459. -           wp_send_json( [ 'error' => __( 'Trying to cheat ?', 'simple-image-sizes' ) ] );
  460. +           wp_send_json( array( 'error' => __( 'Trying to cheat ?', 'simple-image-sizes' ) ) );
  461.         }
  462.  
  463.         // Get the id.
  464. @@ -153,10 +153,10 @@
  465.      */
  466.     public static function add_thumbnail_name( array $sizes ) {
  467.         // Get options.
  468. -       $sizes_custom = get_option( SIS_OPTION, [] );
  469. +       $sizes_custom = get_option( SIS_OPTION, array() );
  470.  
  471.         // init size array.
  472. -       $add_sizes = [];
  473. +       $add_sizes = array();
  474.  
  475.         // check there is custom sizes.
  476.         if ( is_array( $sizes_custom ) && ! empty( $sizes_custom ) ) {
  477. @@ -248,7 +248,7 @@
  478.             return $fields;
  479.         }
  480.  
  481. -       $fields['sis-regenerate'] = [
  482. +       $fields['sis-regenerate'] = array(
  483.             'label'         => __( 'Regenerate Thumbnails', 'simple-image-sizes' ),
  484.             'input'         => 'html',
  485.             'html'          => sprintf( '
  486. @@ -262,8 +262,8 @@
  487.             ),
  488.             'show_in_edit'  => true,
  489.             'show_in_modal' => false,
  490. -       ];
  491. +       );
  492.  
  493.         return $fields;
  494.     }
  495. -}
  496. \ No newline at end of file
  497. +}
  498. diff -r -u simple-image-sizes/classes/main.php simple-image-sizes/classes/main.php
  499. --- simple-image-sizes/classes/main.php 2018-02-08 13:54:52.000000000 -0500
  500. +++ simple-image-sizes/classes/main.php 2018-02-08 13:57:13.000000000 -0500
  501. @@ -4,10 +4,10 @@
  502.  
  503.     public function __construct() {
  504.         // Make new image sizes.
  505. -       add_action( 'init', [ __CLASS__, 'after_setup_theme' ], 1 );
  506. +       add_action( 'init', array( __CLASS__, 'after_setup_theme' ), 1 );
  507.  
  508.         // Add translation.
  509. -       add_action( 'init', [ __CLASS__, 'init_translation' ], 2 );
  510. +       add_action( 'init', array( __CLASS__, 'init_translation' ), 2 );
  511.     }
  512.  
  513.     /**
  514. @@ -19,7 +19,7 @@
  515.      */
  516.     public static function after_setup_theme() {
  517.         // Get initial options.
  518. -       $sizes = get_option( SIS_OPTION, [] );
  519. +       $sizes = get_option( SIS_OPTION, array() );
  520.  
  521.         // Return false if empty.
  522.         if ( empty( $sizes ) || ! is_array( $sizes ) ) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement