• Custom_permalinks 0.7.20. – 0.8

    line 252 remove_filter( 'request', 'custom_permalinks_request', 'edit_files', 1 );

    line 256 add_filter( 'request', 'custom_permalinks_request', 'edit_files', 1 );

    Capability “edit_files” or what should this be? this is not needed for add_filter and remove_filter. Change it back to

    remove_filter( 'request', 'custom_permalinks_request', 10, 1 );
    add_filter( 'request', 'custom_permalinks_request', 10, 1 );

    like it was til 0.7.19.

    Regards,
    RS-Systems

    • This topic was modified 8 years, 2 months ago by RS-Systems.
Viewing 1 replies (of 1 total)
  • Thread Starter RS-Systems

    (@rs-systems)

    once again… remove_filter and add_filter dont need a capability like “edit_files” but maybe a priority like “10”

    https://developer.www.ads-software.com/reference/functions/add_filter/

    $priority
    (int) (Optional) Used to specify the order in which the functions associated with a particular action are executed. Lower numbers correspond with earlier execution, and functions with the same priority are executed in the order in which they were added to the action.
    Default value: 10

    its funny that you change the copyright year in the script but ignore this bug.

    Regards,
    RS

Viewing 1 replies (of 1 total)
  • The topic ‘Capability Bug in line 252 and 256?’ is closed to new replies.