Giter Club home page Giter Club logo

search-analytics's People

Contributors

cornelraiu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

search-analytics's Issues

search bar shows results after 20 secs

Hello, I have the fallowing problem - I've been using your plugin for almost 5 mounths, with no problem until the last WordPress update (6.01), since the update the search bar shows results after 20 secs. If you need the site to check or other infos, pls let me know.

Menu "Search Analytics" is not showing for some administrators

I have two administrators accounts.
One can see the "Search Analytics" option in the menu, but for the other is not showing the menu.

I solved the problem changing one line inside the add_admin_menu() function inside the "admin/includes/class.stats.php" file. Line #98. My solution is not permanently, but works for me.

Original line:
add_submenu_page( 'index.php', __( 'Search Analytics', 'search-analytics' ), __( 'Search Analytics', 'search-analytics' ), $accepted_user_roles[0], FILE, array(

Modified line:
add_submenu_page( 'index.php', __( 'Search Analytics', 'search-analytics' ), __( 'Search Analytics', 'search-analytics' ), 'administrator', FILE, array(

I changed it because the $accepted_user_roles[0] doesn't have "0 position" in some cases.

Debug of the variables used in this function:

$this_user_role:
Array ( [1] => administrator )

$accepted_user_roles:
Array ( [1] => administrator )

$this->plugin_options['mwtsa_display_stats_for_role']:
Array ( [0] => administrator )

I hope it helps, thanks for creating the plugin.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.