Support » Plugin: Dashboard Notes » Good but has bugs with URLs | Почти хорош, но с багом

  • Now I enjoy Dashboard Notes as well! But first I was have to find & fix a bug: the notes not appeared on specified URL.

    It seems like the plugins` author still has not fixed all the URL bugs, so, you can open the
    /wp-content/plugins/dashboard-notes/dashboard-notes.php
    file,

    find the following function:
    function check_widget_visibility( $widget_id ) {
    and replace the
    if($this->match_path( $this->get_current_url(), $vis_settings['url']['urls'] )...
    with something like
    if(strpos($this->get_current_url(), $vis_settings['url']['urls']) !== false)...
    I have done and enjoy as well!
    But… sice the moment, you MUST NOT update the plugin. To remebmer, I usually add “do not update!!!” after the ” * Plugin Name: ” at the start of the main plugin` file*.

    *the current plugin has one PHP file only, it is the main file.
    ======================
    Плагин отличный… будет. После того, как вы пофиксите в нём единственный баг.
    Похоже, автор плагина забил толстый болтец на доведение своего детища до ума, поэтому – берём в свои руки! Фиксим один единственный бажек, и наслаждаемся!
    Откройте единственный PHP-файл плагина,
    найдите код
    function check_widget_visibility( $widget_id ) {
    и замените в нём ниже
    if($this->match_path( $this->get_current_url(), $vis_settings['url']['urls'] )...
    чем-то вроде
    if(strpos($this->get_current_url(), $vis_settings['url']['urls']) !== false)...
    ???
    PROFIT

    • This topic was modified 1 year, 5 months ago by Andrews32.
  • The topic ‘Good but has bugs with URLs | Почти хорош, но с багом’ is closed to new replies.