Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #16744, comment 5


Ignore:
Timestamp:
03/17/2011 06:48:22 PM (14 years ago)
Author:
officialjunk
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16744, comment 5

    v2 v3  
    2020it's around line 63, for me, just above the call to validate_file_to_edit().
    2121
    22 the problem is the path to a bp child theme's file path is already complete, and the path to the buddypress directory gets appended to the front of it, resulting in a path pointing to a non existent file. so, i just put in the test to see if the theme is not a child theme before appending the paths, and if it is a child theme, the $file variable is left alone.
     22the problem is the path to a bp child theme's file is already complete, and the path to the buddypress directory gets appended to the front of it, resulting in a path pointing to a non existent file. so, i just put in the test to see if the theme is not a child theme before appending the paths, and if it is a child theme, the $file variable is left alone.
    2323
    2424this works fine for all normal themes and all child themes of the bp-default theme. i would imagine that this would break the editing capabilities of a child theme of a normal theme, but as i don't have any to test with, so i'm unsure.