Plugin Directory

Changeset 2869204


Ignore:
Timestamp:
02/22/2023 08:16:05 AM (3 years ago)
Author:
cultdevops
Message:

Upload filter bug fixed

Location:
fast-index
Files:
685 added
4 edited

Legend:

Unmodified
Added
Removed
  • fast-index/tags/1.2/view/settings.php

    r2868679 r2869204  
    127127                                    if(esc_attr($value['name']) =="post") {
    128128                                        $canSelectable = true;
     129                                        $options['post_type'][esc_attr($value['name'])] = "1";
    129130                                    } else {
    130131                                        $canSelectable = false;
     132                                        $options['post_type'][esc_attr($value['name'])] = "";
    131133                                    }
    132134                                    }
     
    160162                            </td>
    161163                            <td>
    162                                 <?php foreach ($postStatus as $value) {
     164                                <?php
     165
     166                                foreach ($postStatus as $value) {
    163167                                    $value = esc_attr($value);
    164168
     
    167171                                        if(esc_attr($value) =="publish") {
    168172                                            $canSelectable = true;
     173                                            $options['post_status'][esc_attr($value)] = "1";
    169174                                        } else {
    170175                                            $canSelectable = false;
     176                                            $options['post_status'][esc_attr($value)] = "";
    171177                                        }
    172178                                    }
  • fast-index/trunk/README.txt

    r2868686 r2869204  
    44Requires at least: 5.4
    55Tested up to: 6.1
    6 Stable tag: 1.2
     6Stable tag: 1.3
    77Requires PHP: 7.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 If you have indexing and listing problem on google, you have to use this plugin.
     11If you have indexing and listing problem on google, you have to use this plugin. This plugin working with google API and fasted every plugin or seo.
    1212
    1313== Description ==
  • fast-index/trunk/index.php

    r2868686 r2869204  
    44Plugin URI:
    55Description: <strong>Fast Index</strong> on google
    6 Version: 1.2
     6Version: 1.3
    77Author: Samet AKIN
    88Author URI: https://www.linkedin.com/in/samet-akin/
     
    359359            $uploadedFiles = $this->jsonUploader();
    360360
     361
    361362            if($this->canI ==false) {
    362363                if(is_array($uploadedFiles) and count($uploadedFiles)>0) {
     
    369370            }
    370371
     372
    371373            if($this->canI ==false) {
    372374                $_POST['fast_index_options']['old_post_number'] = 0;
     
    385387            $theData['old_post_number'] = sanitize_text_field($_POST['fast_index_options']['old_post_number']);
    386388            $theData['post_status'] = $this->fastIndexArraySanitizingRecursively($_POST['fast_index_options']['post_status']);
     389            $theData['json_file'] = $newFiles;
    387390
    388391            update_option('fast_index_options', $theData);
     
    418421    function jsonUploader()
    419422    {
     423       
     424        define('ALLOW_UNFILTERED_UPLOADS', true);
     425   
    420426        $files = $_FILES['jsons'];
    421427
     
    459465
    460466                    }
    461 
     467                   
    462468                }
    463469            }
     470
    464471
    465472        }
  • fast-index/trunk/view/settings.php

    r2868679 r2869204  
    127127                                    if(esc_attr($value['name']) =="post") {
    128128                                        $canSelectable = true;
     129                                        $options['post_type'][esc_attr($value['name'])] = "1";
    129130                                    } else {
    130131                                        $canSelectable = false;
     132                                        $options['post_type'][esc_attr($value['name'])] = "";
    131133                                    }
    132134                                    }
     
    160162                            </td>
    161163                            <td>
    162                                 <?php foreach ($postStatus as $value) {
     164                                <?php
     165
     166                                foreach ($postStatus as $value) {
    163167                                    $value = esc_attr($value);
    164168
     
    167171                                        if(esc_attr($value) =="publish") {
    168172                                            $canSelectable = true;
     173                                            $options['post_status'][esc_attr($value)] = "1";
    169174                                        } else {
    170175                                            $canSelectable = false;
     176                                            $options['post_status'][esc_attr($value)] = "";
    171177                                        }
    172178                                    }
Note: See TracChangeset for help on using the changeset viewer.